March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
RankX measure in card visual is showing a different number to the rank displayed in a table visual,
Is there any solution for this?
Solved! Go to Solution.
@Anonymous
I have attached a file for you, please check. It works for me.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
I tried the following but am getting blank appear in the visual.
Note the premium amount is a DAX measure that has been used.
In the card visual I am adding a filter to select only one category.
Example Data as below
Rank Category Premium
1 Food £100
2 Lifestyle £80
3 Transport £60
4 Education £20
When I put transport in a card it gives the rank as 4 when it should be 3 as shown in the table.
@Anonymous
I have attached a file for you, please check. It works for me.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Anonymous
Yes that's correct, it all depends on the context on which the calculation happens. Please provide some data and the expected results.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
I am using the RANKX(ALL(Category[Category Names]), [Premium]) formula in the table and card visual. When I filter for a specific category it gives a different result in the table and card visual.
Do I need to use a different measure for the card visual?
@Anonymous
You can use the same measure for both as follows. Change DESC to ASC if needed.
Rank Category =
RANK(
DENSE,
ALL(Category[Category Names],
ORDERBY( [Premium], DESC )
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
15 | |
7 | |
6 |
User | Count |
---|---|
33 | |
29 | |
16 | |
13 | |
12 |