Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
HI All,
How to acheive the below desired output using DAX. Please help.
Actual Data | Actual Data | Actual Data | Actual Data | Actual Data | Expected Output |
year | cycle | type | rnr_sequence | Rank | |
2021 | 4 | A | 1 | 1 | |
2021 | 4 | B | 12 | 2 | |
2021 | 4 | C | 3 | 3 | |
2021 | 4 | D | 4 | 4 | |
2021 | 4 | E | 5 | 5 | |
2021 | 4 | F | 6 | 6 | |
2021 | 4 | G | 7 | 7 | |
2021 | 4 | H | 8 | 8 | |
2021 | 4 | I | 10 | 9 | |
2021 | 4 | J | 11 | 10 | |
2020 | 1 | A | 1 | 1 | |
2020 | 1 | B | 4 | 2 | |
2020 | 1 | C | 3 | 3 | |
2020 | 1 | D | 2 | 4 | |
2020 | 1 | E | 5 | 5 |
Solved! Go to Solution.
Hi, @prakash11440278
According to your needs, I think you can create a column.
Like this:
Rank =
RANKX (
FILTER (
'Table',
[year] = EARLIER ( 'Table'[year] )
&& [cycle] = EARLIER ( 'Table'[cycle] )
),
[type],
,
ASC
)
Did I answer your question? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.
Best Regards,
Community Support Team _Janey
Hi, @prakash11440278
According to your needs, I think you can create a column.
Like this:
Rank =
RANKX (
FILTER (
'Table',
[year] = EARLIER ( 'Table'[year] )
&& [cycle] = EARLIER ( 'Table'[cycle] )
),
[type],
,
ASC
)
Did I answer your question? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.
Best Regards,
Community Support Team _Janey
Try This Measure
Rank =
RANKX (
FILTER (
ALL ('Table'[YEAR],'Table'[type] ),
'Table'[YEAR] = MAX ( 'Table'[YEAR] )
),
CALCULATE (MAX( ( 'Table'[type] ) )
),,ASC)
@prakash11440278 , Assume you need a column rank
rankx(filter(Table, [Year] =earlier([Year]) ), [type],,asc,dense)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
81 | |
52 | |
39 | |
35 |
User | Count |
---|---|
95 | |
79 | |
52 | |
49 | |
47 |