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 Power BI Gurus,
I have below set of data
Customer Id | Calendar Date | Sale Id | Standing Order Id |
123 | 14-NOV-13 00:00:00 | 15264717659 | 11674594922 |
123 | 05-DEC-13 00:00:00 | 15285099070 | 11674594922 |
123 | 16-DEC-13 00:00:00 | 15292036294 | 11674594922 |
123 | 03-JAN-14 00:00:00 | 15301803017 | 15474692288 |
123 | 17-JAN-14 00:00:00 | 15312660566 | 15474692288 |
123 | 31-JAN-14 00:00:00 | 15324696479 | 15474692288 |
123 | 14-FEB-14 00:00:00 | 15337592777 | 15474692288 |
123 | 28-FEB-14 00:00:00 | 15349170494 | 15474692288 |
123 | 14-MAR-14 00:00:00 | 15361461738 | 15474692288 |
Now I want an additionla column say SO Instance with value like below, its almost ranking Customer on the base of its SO ID ,Sale ID and Calendar Date
Customer Id | Calendar Date | Sale Id | Standing Order Id | SO Instance |
123 | 14-NOV-13 00:00:00 | 15264717659 | 11674594922 | 1 |
123 | 05-DEC-13 00:00:00 | 15285099070 | 11674594922 | 2 |
123 | 16-DEC-13 00:00:00 | 15292036294 | 11674594922 | 3 |
123 | 03-JAN-14 00:00:00 | 15301803017 | 15474692288 | 1 |
123 | 17-JAN-14 00:00:00 | 15312660566 | 15474692288 | 2 |
123 | 31-JAN-14 00:00:00 | 15324696479 | 15474692288 | 3 |
123 | 14-FEB-14 00:00:00 | 15337592777 | 15474692288 | 4 |
123 | 28-FEB-14 00:00:00 | 15349170494 | 15474692288 | 5 |
123 | 14-MAR-14 00:00:00 | 15361461738 | 15474692288 | 6 |
The data has mumtiple customer IDs with respective Sae and SO IDs.
Appreciate yor help in this.
Thanks
Swapnil
Solved! Go to Solution.
Hi @srlabhe123
Try this calculated column
What is the role of Sale ID in RANKING?
SO_Instance = RANKX ( FILTER ( ALL ( TableName ), TableName[Customer Id] = EARLIER ( TableName[Customer Id] ) && TableName[Standing Order Id] = EARLIER ( TableName[Standing Order Id] ) ), TableName[Calendar Date], , Asc, DENSE )
check this post
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hi @srlabhe123
Try this calculated column
What is the role of Sale ID in RANKING?
SO_Instance = RANKX ( FILTER ( ALL ( TableName ), TableName[Customer Id] = EARLIER ( TableName[Customer Id] ) && TableName[Standing Order Id] = EARLIER ( TableName[Standing Order Id] ) ), TableName[Calendar Date], , Asc, DENSE )
Great it worked like charm... but not surehow ?
May I have to read more article about Earlier...do you have any that explains in detail
Thanks
Swapnil
Hi @srlabhe123
This was a little web post I wrote on EARLIER few months back
http://www.excelnaccess.com/earlier-in-dax/
Thanks Zubair
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 |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |