Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello All,
I am facing one issue while creating rank, I want to create rank based on job_qty orders for each row for each hour step.
Can anyone please help me?
Input:-
Hour_step | bi_jh_eq_no | job_qty | rank |
202309903 | 264 | 1 | 1 |
202309903 | 259 | 3 | 1 |
202309903 | 260 | 3 | 1 |
202309903 | 263 | 3 | 1 |
202309903 | 265 | 3 | 1 |
202309903 | 268 | 3 | 1 |
202309903 | 279 | 3 | 1 |
202309903 | 280 | 3 | 1 |
202309903 | 210 | 4 | 1 |
202309903 | 262 | 4 | 1 |
202309904 | 270 | 1 | 1 |
202309904 | 271 | 4 | 1 |
202309904 | 273 | 4 | 1 |
202309904 | 278 | 4 | 1 |
202309904 | 266 | 5 | 1 |
202309904 | 272 | 5 | 1 |
202309904 | 277 | 5 | 1 |
202309904 | 276 | 6 | 1 |
202309904 | 275 | 7 | 1 |
Output required:-
Hour_step | bi_jh_eq_no | job_qty | rank_job |
202309903 | 264 | 1 | 1 |
202309903 | 259 | 3 | 2 |
202309903 | 260 | 3 | 3 |
202309903 | 263 | 3 | 4 |
202309903 | 265 | 3 | 5 |
202309903 | 268 | 3 | 6 |
202309903 | 279 | 3 | 7 |
202309903 | 280 | 3 | 8 |
202309903 | 210 | 4 | 9 |
202309903 | 262 | 4 | 10 |
202309904 | 270 | 1 | 1 |
202309904 | 271 | 4 | 2 |
202309904 | 273 | 4 | 3 |
202309904 | 278 | 4 | 4 |
202309904 | 266 | 5 | 5 |
202309904 | 272 | 5 | 6 |
202309904 | 277 | 5 | 7 |
202309904 | 276 | 6 | 8 |
202309904 | 275 | 7 | 9 |
Solved! Go to Solution.
@Jessica_17 , Try new Rank function, assuming Job_qty is a meausre
Rank(dense, allselected(Table[Hour_step], Table[bi_jh_eq_no]), orderby([job_qty], desc, Table[bi_jh_eq_no], asc))
Power BI - New DAX Function: RANK - How It Differs from RANKX: https://youtu.be/TjGkF44VtDo
@Jessica_17 , Try new Rank function, assuming Job_qty is a meausre
Rank(dense, allselected(Table[Hour_step], Table[bi_jh_eq_no]), orderby([job_qty], desc, Table[bi_jh_eq_no], asc))
Power BI - New DAX Function: RANK - How It Differs from RANKX: https://youtu.be/TjGkF44VtDo
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |