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 - Just need some help to create the INDEX column. It should be a sequence number sorted on Period but resets when Project Changes. Happy to use a calculated column or adding it to the Power Query table. Thanks!!
Project | Period | Index |
A | Jan-20 | 1 |
A | Feb-20 | 2 |
A | Mar-20 | 3 |
A | Apr-20 | 4 |
A | May-20 | 5 |
B | Mar-20 | 1 |
B | Apr-20 | 2 |
B | May-20 | 3 |
B | Jun-20 | 4 |
C | Apr-21 | 1 |
C | May-21 | 2 |
C | Jun-21 | 3 |
C | Jul-21 | 4 |
Solved! Go to Solution.
Hi @hackfifi ,
Would you please try to use
Index = RANKX(filter('Table','Table'[Project]=earlier('Table'[Project])),'Table'[Period],,ASC,Dense)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi @az38 - Thanks for respondng. but it did not work. I filtered on 1 Project, But the index column is giving me random values
So the tie break rule is when the project changes, the index resets. So what am i doing wrong? 🙂
Hi @hackfifi ,
Would you please try to use
Index = RANKX(filter('Table','Table'[Project]=earlier('Table'[Project])),'Table'[Period],,ASC,Dense)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
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 |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |