98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Power BI training and help » DAX formula
DAX formula
Resolved · Low Priority · Version 365
Lisa has attended:
Power BI Modelling, Visualisation and Publishing course
DAX formula
I have a spreadsheet detailing whether a training event has been completed or not. One column has a name and other has either 'complete' or 'incomplete'. I want to work out the percentage to show how many have completed and how many have not. What formula should I use please to create a DAX column?
RE: DAX formula
Hi Lisa,
Thank you for the forum question.
You do not have to do DAX to visualize this.
Drag the field (column) to the value in a visual. Click on the down arrow next to the field name in the value box. Select count. Click again on the own arrow next to the field name in the value box and click Show value as and select Percent of column total.
If you want to calculate it, you cannot do it in a column. You will have to do it as a measure:
% of complete=Divide(Countax(Filter("your table name",["your column name"]="complete"),Countrows("your table name")),Countrows("your table name"),0)
Kind regards
Jens Bonde
Microsoft Office Specialist Trainer
Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us
London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector
Sat 8 Jul 2023: Automatically marked as resolved.
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Power BI tip:Report and Visualization ShortcutsCtrl + Shift + P: Enter or exit Presentation mode. |