percentage total string column

Forum home » Delegate support and help forum » Microsoft Power BI training and help » Percentage of total for string column

Percentage of total for string column

resolvedResolved · Medium Priority · Version 365

Percentage of total for string column

Hi,

I have a data set where I need to calculate the inspection rate of "No" (the other option being "yes") by the total number of inspections each year. I know the quick excel calulation would be:

count of "No"/Total inspections*100 but I don't know how to do this in power BI, please help!

Best

RE: Percentage of total for string column

Hi Georgia,

Thank you for the forum question.

If you want to display the percentage of NO out of all


Count no = DIVIDE(COUNTAX(filter(the name of your table,[inspection]="No"),counta(the name of your table[inspection])),counta(the name of your table[inspection]),0)

You will need to change the DAX to your table and column names.


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

 

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:

Create Interactive Dashboards

Build interactive dashboards by leveraging features like slicers, drill-through, and bookmarks. Slicers allow users to filter data dynamically, while drill-through enables detailed exploration of specific data points. Bookmarks help you save the current view, making it easy to switch between different states of your report.

View all Power BI hints and tips


Server loaded in 0.06 secs.