Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
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 🙂
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
86 | |
81 | |
70 | |
49 |
User | Count |
---|---|
143 | |
124 | |
107 | |
60 | |
55 |