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
I have a problem that i cant solve.
I have a tabel with dates and sales, and i want to be able to see the sales with a lag of 5 days.
So the the sales on 2023-09-01 should be counted shown on 2023-09-06 as shown in the picture (red column).
It needs to be a measure.
Thx so much for any help or suggestion .
Solved! Go to Solution.
Two measure will do it. The first one to sum the sale amount
Sales Amount = SUM ( YourTable[Sales] )
Then one to offset the calculation by 5 days
Sales +5 days =
CALCULATE ( [Sales Amount], DATEADD ( YourTable[Date], -5, DAY ) )
.
Two measure will do it. The first one to sum the sale amount
Sales Amount = SUM ( YourTable[Sales] )
Then one to offset the calculation by 5 days
Sales +5 days =
CALCULATE ( [Sales Amount], DATEADD ( YourTable[Date], -5, DAY ) )
.
Thx so much for the help . Works perfect 🙂
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 |
---|---|
108 | |
105 | |
87 | |
74 | |
66 |
User | Count |
---|---|
124 | |
112 | |
96 | |
80 | |
72 |