Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Is it possible to have the below Rankx formula filtered on specific peer without the rank showing up as 1?
This is the data set for example, with Peer and Monthly Return being the load from external source.Rank of Total Peers QTD and Total Return QTD being the two measures above.
In PowerBI when using the Dax code below to show just the Target QTD Rank which should show 3, it shows 1.
Is there a solution to filter Target and have the rank show as 3?
Thank you!
Solved! Go to Solution.
Hi,
I am not sure how you will present the end result, but please try something like below if it suits your requirement.
Target Rank =
MAXX (
FILTER (
ADDCOLUMNS (
ALLSELECTED ( 'Import to Powerbi'[Peer] ),
"@rank", [Rank of Total Peers QTD]
),
'Import to Powerbi'[Peer] = "Target"
),
[@rank]
)
Hi,
I am not sure how you will present the end result, but please try something like below if it suits your requirement.
Target Rank =
MAXX (
FILTER (
ADDCOLUMNS (
ALLSELECTED ( 'Import to Powerbi'[Peer] ),
"@rank", [Rank of Total Peers QTD]
),
'Import to Powerbi'[Peer] = "Target"
),
[@rank]
)
Hi Jihwan,
That is perfect, giving the correct result! I appreciate it! 🙂
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 8 | |
| 8 | |
| 7 |