Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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!
Solved! Go to Solution.
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] ) )
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] ) )
Solved this by adding cause to Allselected...
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 98 | |
| 72 | |
| 50 | |
| 48 | |
| 42 |