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 » Percentage of total for string column
Percentage of total for string column
Resolved · Medium Priority · Version 365
Georgia has attended:
Power BI Modelling, Visualisation and Publishing course
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
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:Create Interactive DashboardsBuild 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. |