Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi guys,
I've got a table (Table1) where Scenario and Value are two columns (string and number respectively) and Ranking is a measure:
Ranking = RANKX(ALLSELECTED(Table1[Scenario]); CALCULATE(SUM(Table1[Value])); ;ASC;Dense)
In my Report I create this table with Scenario column and Ranking measure
Then I have another measure which gives me a specified ranking (specifiedRanking😞 I would like to create a new measure which returns the corresponding Scenario starting from this specifiedRanking, how could I write a dax expression for this goal?
Thanks a lot for any hint
Solved! Go to Solution.
Something like this may be
Measure = VAR myrank = [specifiedranking] RETURN MINX ( FILTER ( VALUES ( Table1[Scenario] ), [Ranking] = myrank ), [Scenario] )
Something like this may be
Measure = VAR myrank = [specifiedranking] RETURN MINX ( FILTER ( VALUES ( Table1[Scenario] ), [Ranking] = myrank ), [Scenario] )
I noticed that if I try to not use VAR myrank, directly using specifiedranking like this:
Measure = MINX ( FILTER ( VALUES ( Table1[Scenario] ), [Ranking] = [specifiedranking]), [Scenario] )
the measure isn't right computed any more...why must I use the local variable myrank?
thnaks
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
99 | |
82 | |
70 | |
63 |
User | Count |
---|---|
145 | |
111 | |
104 | |
84 | |
64 |