Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
deanbland
Helper III
Helper III

Calculating Percentages

Hi, 

 

deanbland_0-1613042427684.png

 

I am trying to calculate percentages based off of the total pre row. So, in row ADS, next to number 20, there would be a % value of 25% (as 25% of 79 is 20 when rounded up). I want to do this for all columns in all rows. 

 

The dataset I have looks like this (See below) and all current attempts at writing DAX formulas and calculations have failed...

deanbland_1-1613042668169.png

 

 

Your help would be greatly appreciated. 

 

Thanks!

 

 

1 ACCEPTED SOLUTION
jaideepnema
Solution Sage
Solution Sage

@deanbland 
Create a Measure like this 

Percentage % = 

var countnum=CALCULATE(COUNT(Data[KPI Checklist Outcome]),ALLEXCEPT(Data,Data[Sector]))

return DIVIDE(COUNT(Data[KPI Checklist Outcome]),countnum,BLANK())

Here is the link in case you want to download the file
 
Please accept this as a solution if this answers your question !!
Appreciate a Kudos 😀

View solution in original post

4 REPLIES 4
jaideepnema
Solution Sage
Solution Sage

@deanbland 
Create a Measure like this 

Percentage % = 

var countnum=CALCULATE(COUNT(Data[KPI Checklist Outcome]),ALLEXCEPT(Data,Data[Sector]))

return DIVIDE(COUNT(Data[KPI Checklist Outcome]),countnum,BLANK())

Here is the link in case you want to download the file
 
Please accept this as a solution if this answers your question !!
Appreciate a Kudos 😀
jaideepnema
Solution Sage
Solution Sage

Hi @deanbland ,

Basis the information provided by you in your query. I tried replicating the scenario with the sample data as shown below:

jaideepnema_1-1613043586743.png

 

Is this what you are trying to achieve ?

 

jaideepnema_0-1613043564711.png

 

Hi @jaideepnema

 

That is exactly what I am trying to do! How did you go about doing this? 

 

Thanks you 🙂 

Pragati11
Super User
Super User

Hi @deanbland ,

 

Can you attach your sample data in a file please? Screenshot doesn't help.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.