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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all,
I have a simple table which currently is set to show me the TOP 10 markets according to annual sales.
However, I would like to force the inclusion of a specific market (example: Russia) that does never appear on that TOP 10, regardless of the year.
Is there anyway that I can always show the TOP according to a value and ALWAYS force the inclusion of this specific market?
Thank you!
Hi @aicms
Create measures to exclude the specific market.
annual value =
CALCULATE (
SUM ( 'Table'[sales] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[market] <> "a"
&& 'Table'[year]
= MAX ( 'Table'[year] )
&& 'Table'[market]
= MAX ( 'Table'[market] )
)
)
rank = IF([annual value]<>BLANK(),RANKX(ALL('Table'[market]),[annual value],,DESC,Dense))
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-juanli-msft,
Thank you very much for your kind help! I did not try your solution because it is designed to "exclude" a specific market and I really wanted to "force"/include always.
Hi @aicms
Have a look at my example, do you want to include one specific market or exclude?
You can provide an example and give your desired result based on my example.
Best Regards
Maggie
Hi @amitchandak ,
Thank you for your help!
It's not working but it must be something that I'm doing wrong (I am kinda new at this). I am using the following formula (excluding Russia for now):
= CALCULATE([Euros_Sales]; filter(Geography; [Euros_Rank {Geography}] <= 10))
where
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 38 | |
| 38 | |
| 28 | |
| 27 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 73 | |
| 66 | |
| 65 |