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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
HI!
Could you please help me with filtering:
I have theese measures: Country; Producer; Category; SubCategory; Month.
I have calculated Market Share of Producers, where I take for base 1Month and all brands.
The main problem is when using filter TOP N, the base is (denominator) is changing too, but in reality it should show all sales (depending on what data type is choosing user, in my case - category).
Maybe there is another way of top filtering. For example, Is it possible to put top 5 only in numerator? But there will be one condition - it shouls show the same top5 producers during the all time periods, (top5 filtered by last period of time)
Hi @Anonymous ,
You can try to use following measure formula, it will summary all filtered(topn and other filters) records and grouped by current month:
All Sales Grouped by month = CALCULATE ( SUM ( db[Volume] ); ALLSELECTED ( db ); VALUES ( db[Month] ) )
Regards,
Xiaoxin Sheng
@Anonymous ,
Tahnk you for helping me!
Unfortunately thre result is wrong. Because using formula "allselected" it calculates base only for top5 producers. For example, sales sum of top5 producers are 219kg, but full sales are 279kg - so fo calcalating for market share of top5 it will take 279kg, not 219). in the picture you can see the result of your formula - first column means sales by Producer, second column meanstotal sales of top5, but there shoul be 279kg.
I hope this try will not stop you in helping me)))))))))))))))))
Hi @Anonymous ,
You can try to use below formula to get percent of all sales based on current month group:
Percent of all sales grouped by month =
DIVIDE (
CALCULATE (
SUM ( db[Volume] );
ALLSELECTED ( db );
VALUES ( db[Month] );
VALUES ( db[Producer] )
);
CALCULATE ( SUM ( db[Volume] ); ALL ( db ); VALUES ( db[Month] ) );
BLANK ()
)
Regards,
Xiaoxin Sheng
@Anonymous ,
Thank you, but unfortunately it does not solve my question.
Please, read my comment below, maybe you have a solution))))
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 |
|---|---|
| 104 | |
| 81 | |
| 66 | |
| 50 | |
| 45 |