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
Anonymous
Not applicable

using DAX to calculate % of column total

Hi,

 

I looked at other similar posts but could not see an answer for this particular query. I am using DAX to calculate % of column total (it has to be done using DAX).

 

However the percentage is a result of division by the grand total, not the sub-total!

 

For example I have 7 subcategories as columns which are split by row categories and there are 1534 items in total overall - for the first subcategory column there are 36 items, a particular row has 14. Therefore I am looking to see 14/36 = 38.89%. But instead I get 0.91% which is 14/1534.

 

%Required = [EOMCount12]/calculate([EOMCount12],ALLSELECTED())

Cause is the row of table

Subcategory is column of table

EOMCount12 is the values

 

Please help!

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @Anonymous 

I would need more info but you probably need to include the subcategory column in the ALLSELECTED( ) if that's the total you want to compute the % over:

%Required = [EOMCount12]/calculate([EOMCount12], ALLSELECTED( Table1[Subcategory] ) )

   

View solution in original post

2 REPLIES 2
AlB
Community Champion
Community Champion

Hi @Anonymous 

I would need more info but you probably need to include the subcategory column in the ALLSELECTED( ) if that's the total you want to compute the % over:

%Required = [EOMCount12]/calculate([EOMCount12], ALLSELECTED( Table1[Subcategory] ) )

   

Anonymous
Not applicable

Solved this by adding cause to Allselected...

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