Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

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

ResolvedVersion 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:

Data Cleaning and Transformation

Ensure your data is clean and well-structured before importing it into Power BI. Use Power Query Editor to clean and transform your data. This tool allows you to perform various operations like filtering, merging, and reshaping data, ensuring it's in the right format for analysis.

View all Power BI hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.