dax formula

Forum home » Delegate support and help forum » Microsoft Power BI training and help » DAX formula

DAX formula

resolvedResolved · Low Priority · Version 365

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.

 

Training courses

 

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
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Power BI tip:

Report and Visualization Shortcuts

Ctrl + Shift + P: Enter or exit Presentation mode.
Ctrl + Shift + V: Toggle between different visualization types.
Ctrl + G: Group selected visuals.
Ctrl + Shift + H: Hide or unhide selected visuals.
Ctrl + Shift + L: Lock or unlock selected visuals.

View all Power BI hints and tips


Server loaded in 0.07 secs.