Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
How to get this measure on the card total? I am only looking to get 27 on card visual but it comes blank. I tried aggregation on top of this "Rank Ongoing Selected" but it did not work.
I am looking to show Rank of Avg Ongoing Cost where Z_highlight = 1. There are also slicer changing the filter context hence I am using ALLSELECTED for Rank.
Solved! Go to Solution.
I just found the solution, sharing for the community. The final step was to get Rank 27 from the last column onto the card. I am using the below DAX to create a final summary of the last column.
I just found the solution, sharing for the community. The final step was to get Rank 27 from the last column onto the card. I am using the below DAX to create a final summary of the last column.
Thanks for the response Amit. but if we use ALL in RANK then we will lose the filter context set by the slicers. There are slicers on page that reduces the data set to few brands only. Rank is calculated based on selected values.
@Anonymous , That is a problem, when selecting a brand in visual, you have only that brand. so allselected will be given Rank 1.
Interaction off - it will not work
removefilters, all I tried a few more combinations, but they remove the brand from the context. So did not work for me.
Wait for other users to provide some solution
@Anonymous , assume you create a rank like
Rank Brand = Rankx(ALL('Item'[Brand]),[Net]) // using all
Then this measure can give selected rank for brand
Rank M = maxx(VALUES('Item'[Brand]), [Rank Brand])
User | Count |
---|---|
17 | |
14 | |
13 | |
13 | |
11 |
User | Count |
---|---|
19 | |
15 | |
15 | |
11 | |
10 |