Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi,
I am trying to get top-3 brands according to the price band I've set. Whenever I put in a filter of top n or try to select the brands, calculation for % Vol MS changes according to the selection. Dax for % Vol MS is: SUM('all-categories'[Sales units])/ CALCULATE(SUM('All-Categories'[Sales units]),ALL('All-categories'[BRANDS]))*100.
Hi @Arpit_Jain ,
Please try ALL('all-categories') instead.
Or try this formula:
SUM('all-categories'[Sales units])/SUMX(ALL('all-Categories'),'all-Categories'[Sales units])*100
If it still doesn't work, please share sample data.
Best Regards,
Jay
hi @Arpit_Jain,
did you try using ALLSELECTED instead of ALL? I think it might solve your issue. If it doesn't work, can you give us some screenshots how when it doesn't work and what would be the right behavior?
I want % Vol MS to be constant and not change if we change the number of brands
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
6 | |
4 | |
3 | |
3 |
User | Count |
---|---|
13 | |
11 | |
8 | |
8 | |
8 |