Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi Community,
it would be Awsome if some one could Help me!
I try to Calculate the Previos last 7 days to caculate at the end an Day over day Calculation. At the end I wanted to see how high the Sales have increased oder decreased in the last seven day from today on.
Thanks for Help Guys
Boni
It is difficult to answe while you are not sharing anything about the model or the fields.
In general, you need to filter the data field so you will probably use a formula like this:
Last 7 Days Sales =
CALCULATE (
SUM ( [Sales] ),
FILTER ( ALL ( [Date Field] ), [Date Field] >= [Date Field] - 7 )
)
User | Count |
---|---|
59 | |
22 | |
18 | |
18 | |
16 |
User | Count |
---|---|
85 | |
54 | |
45 | |
39 | |
21 |