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,
My model has 3 tables Sales, Date and Customer. Sales table has relationship with Customer and Date.
I want to calculate customer wise no. of days since they given their last order. I tried few measures to calculate the last order date but they are giving future date as my date dimenison has future dates.
please suggest how to get this.
Thanks
Solved! Go to Solution.
Hi,
This was due to single cross filter direction from date to sales table. Here trying to slice the date with customers, so setting up cross filter direction as both solved the problem.
thanks
Hi,
This was due to single cross filter direction from date to sales table. Here trying to slice the date with customers, so setting up cross filter direction as both solved the problem.
thanks
I see that you are picking the columns from Date Table though it should be:
LastOrderDate=MAXX( FILTER( 'Sales','Sales'[Sales order date] <= TODAY() ), 'Sales'[Sales order date])
or
This should give the right result.
If you are looking for something else, please shout out
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 | |
94 | |
80 | |
67 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |