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
i what to create a Mesure that rankink rows for groups of values order by number -
same as in sql row_number over (partition by X,Y,Z order by L)
is it possible?
thank you very mutch
oren
Solved! Go to Solution.
Please ignore the previous formula.
This one works:
Sorting_Rank = RANKX ( FILTER( ALL( 'Table'[A], 'Table'[B], 'Table'[C] ), 'Table'[A] = MAX('Table'[A]) && 'Table'[B] = MAX('Table'[B]) ), CALCULATE(SUM('Table'[C])), , ASC, Dense )
Please ignore the previous formula.
This one works:
Sorting_Rank = RANKX ( FILTER( ALL( 'Table'[A], 'Table'[B], 'Table'[C] ), 'Table'[A] = MAX('Table'[A]) && 'Table'[B] = MAX('Table'[B]) ), CALCULATE(SUM('Table'[C])), , ASC, Dense )
Try the following formula:
Sorting Rank = IF ( HASONEVALUE ( 'Table'[A]), RANKX ( ALL ( 'Table'[A], 'Table'[B] ), SUM('Table'[C]), , ASC, Dense) )
You may also try ISONORAFTER.
Never used ISONORAFTER before but will definately check. Thanks for Suggestion.
Please try like below.
Measure 11 = RANKX(FILTER(all(Table1),Table1[Column1] = max(Table1[Column1]) && Table1[Column2] = max(Table1[Column2])),CALCULATE(sum(Table1[Column3])),,ASC,Skip)
Regards
AJ
Do Like Post if response seems good and Worth liking.
Do Mark as Solution if response resolved your Issue.
it dosent work- i am getting only "1" ( but maybe i am doing somthing not right)
thanks
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |