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