Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hello community,
I'm having difficulties formulating my problem in a form to find the answer so I'll try to explain what I need help with.
I the following table:
Id | Category | Sub-category | Sub-sub-category | Count |
1 | A | AA | AAA | 1 |
2 | A | AB | ABA | 2 |
3 | B | BA | BAA | 1 |
This table is simplified and also contains +100 million rows.
I have two slicers for Sub-category and Sub-Sub-category. After I apply the slicers in the following configuration: Sub-category: AA and Sub-Sub-Category: AAA I want to be able to calculate the share AAA count accounts for of the Category A. In this case AAA 33%.
The only way I have been able to solve this is to duplicate the large table and create a relationship between Category columns. That way I can obtain the total count from secondary table. But due to the size of the table it is sluggish and heavy. Is there any way to solve this with a measure?
Thanks!
Solved! Go to Solution.
Hi @Anonymous ,
You can try this measure:
If I answered your question, please mark it as a solution to help other members find it more quickly.
Hi @Anonymous ,
You can try this measure:
If I answered your question, please mark it as a solution to help other members find it more quickly.
This did the trick. Thank you for the quick reply.
@Anonymous Do you have a star schema and Dim table for Product? The Dim table can contain Category, Sub-category and sub-subcategory, but should not contain the counts.
https://excelwithallison.blogspot.com/2020/08/its-complicated-relationships-in-power.html
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Yeah it is a star schema. The count column is a measure. I just wanted to simplify.
Thank you for the quick reply.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.