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
Hi there,
I have a Line & Clustered Column Chart that details Sales by Month for each Financial Year. I'm able to use my Rank X Measure to show the top Sales Amount for each month rated by the Product Name which sold the most in that month..
However I would like the Name to be output also. Not sure how to do that! Here's my RANKX dax for the Top Ranked Product Amount Measure..
Solved! Go to Solution.
Try
Top Ranked Product Name =
VAR RankingContext =
VALUES ( Nav_Item[Product Name] )
RETURN
CONCATENATEX (
TOPN ( 1, RankingContext, [Amount Measure] ),
Nav_Item[Product Name],
", "
)
In the case where there are more than 1 product ranked #1 then it will return a comma separated list of each of them
Try
Top Ranked Product Name =
VAR RankingContext =
VALUES ( Nav_Item[Product Name] )
RETURN
CONCATENATEX (
TOPN ( 1, RankingContext, [Amount Measure] ),
Nav_Item[Product Name],
", "
)
In the case where there are more than 1 product ranked #1 then it will return a comma separated list of each of them
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 |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 13 | |
| 10 | |
| 8 |