Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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 🙂
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
58 | |
55 | |
54 | |
38 | |
29 |
User | Count |
---|---|
78 | |
62 | |
45 | |
40 | |
40 |