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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
dsandip
Frequent Visitor

How to show Total and Percentage in 2 2 different columns for a category?

Hi,

How to show % in Colullumn C like below:

Complaints TypeNo Of ComplaintsPercnt%
A1228%
B1433%
C1740%

I have created a measure like below:

No Of Complaints = SUM(Complaint_NO) and place it in column B, but I have to show Cercentage in collumn C(in Percnt%) with below formulla:

for like

 Complaint type= A, it will be 12/(12+14+17) [means total Complaint], so it will be 28%

and  Complaint type= b, it will be 14/(12+14+17) [means total Complaint], so it will be 33%

So, how can I achieve that? or what will be the DAX for this? please help me.

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Write this measure

Measure = divide([No of complaints],calculate([No of complaints],all(Data[Complaints Type]))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Write this measure

Measure = divide([No of complaints],calculate([No of complaints],all(Data[Complaints Type]))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Daniel29195
Super User
Super User

@dsandip 

 

 

%measure = 

var current_sum = SUM(Complaint_NO) 
var total =  calculate ( SUM(Complaint_NO) ,  removefilters(table_name[Complaints_col_name]))

 

return

divide ( current_sum, total,  0 ) 

 

 

If my answer helped sort things out for you, feel free to give it a thumbs up and mark it as the solution! It makes a difference and might help someone else too. Thanks for spreading the good vibes! 👍🤠

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors