Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
Currently I have this two metrics for having a top 10:
Rank:=RANKX(ALL('Table A'[column table A]),[metric])
Top 10 := IF(Rank] <= 10,[metric],IF(HASONEVALUE(Table A'[column table A]),IF(VALUES('Table A'[column table A]) = "Others",SUMX(FILTER(ALL(Table A'[column table A]),[Rank] > 10),[metric]))))
And it works well. But if I filter by another dimension I always get the same rank and consequently not having the top 10.
How can I make this work with another dimensions?
Thanks in advance.
You may try using ALLSELECTED Function.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
8 | |
4 | |
2 | |
2 |
User | Count |
---|---|
4 | |
3 | |
3 | |
3 | |
2 |