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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors