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 Community
I have an order history table that shows the order per customer and the corresponding date of order
I want to create a rank for each customer order to know which was the first order of that customer, second, etc..
I've managed to do that using the following Dax formula
The problem is that I have a date slicer filter and I want these ranks to be recalculated based on the filtered data
whenever I'm trying to change the date range, the ranks will never change, and it will be calculated based on the whole data, I want to recalculate the rank based on the specified date range
for example in the following to show 1 and 2 for "ivan" as per the specified date this was his first and second order
I tried multiple solutions but nothing seemed to work
I appreciate your help guys,
Thanks in advance
@Ritaf1983 , it works thanks for your effort
Proud to be a Super User! |
|
Hi @ivan_abboud
Please refer to the linked pbix and recreate a logic , for your data.
Note, that you have to use the "Dim date" table.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi @Ritaf1983
Thanks for the solution, but, actually this is not what I'm looking for
I need to rank orders based on their date, per customer
so for each customer, I want to see his first purchase, second, and so on... and I managed to do this using a calculated column and dax as I explained previously.
My problem now is that I want to get this data filtered by date and recalculate the ranks based on that
Hi,
If you still need help, then share the download link of the PBI file.
Hi @Ashish_Mathur
please check the pbix file, it's just a simplified version of the original data
Dynamic Rank with Slicer
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
123 | |
78 | |
48 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |