March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi All,
I'm trying to create a new ranked column based on a few if rules that need to be looped over.
The data looks like this with the ApplicationCycle column being the desired ranked column:
TABLE1
InteractionKey | Interaction | CourseTitle | Application Cycle |
7 | Application made | Master of Arts in Digital Asset and Media Management | 1 |
9 | Conditional Offer | Master of Arts in Digital Asset and Media Management | 1 |
7 | Application made | 6-week Combined Pre-sessional Programme | 2 |
15 | Firmly accpt offer | Master of Arts in Digital Asset and Media Management | 1 |
14 | Enrolled | Master of Arts in Digital Asset and Media Management | 1 |
21 | Reject | 6-week Combined Pre-sessional Programme | 2 |
7 | Application made | Pre-Sessional Course in English and Study Skills for Academic Purposes Stage 3 | 3 |
23 | Unconditional Offer | Pre-Sessional Course in English and Study Skills for Academic Purposes Stage 3 | 3 |
15 | Firmly accpt offer | Pre-Sessional Course in English and Study Skills for Academic Purposes Stage 3 | 3 |
8 | ATRd | Pre-Sessional Course in English and Study Skills for Academic Purposes Stage 3 | 3 |
14 | Enrolled | Pre-Sessional Course in English and Study Skills for Academic Purposes Stage 3 | 3 |
7 | Application made | Master of Arts in Digital Asset and Media Management | 4 |
9 | Conditional Offer | Master of Arts in Digital Asset and Media Management | 4 |
8 | ATRd | Master of Arts in Digital Asset and Media Management | 4 |
15 | Firmly accpt offer | Master of Arts in Digital Asset and Media Management | 4 |
14 | Enrolled | Master of Arts in Digital Asset and Media Management | 4 |
So far, from my understanding the code should be something like this:
ApplicationCycle=
Start LOOP from first unranked row in [ApplicationCycle] :
Foreach(row in [InteractionKey]):
IF([InteractionKey]= "7") START RANKX (TABLE1 , [InteractionKey])
IF([InteractionKey]= "7") again SKIP RANKX
IF([InteractionKey]= " 6,10,21,24,14") STOP RANKX
End LOOP
Any advice, tips and pointers to this will be much appriciated.
Thanks,
Hi @Anonymous ,
Could you please clarify what's the logic for the other InteractionKey Except the number "7, 6,10,21,24,14"?
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
132 | |
90 | |
88 | |
64 | |
58 |
User | Count |
---|---|
203 | |
141 | |
107 | |
73 | |
70 |