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 this chart showing the water consumption for the last 15 days (red marking):
I would like to add a chart for the same 15 days last year (blue line). Can someone please explain to me how to do that? 🙂
Hi @MRN8840
You can use Measure like below.
Sales Last Year =
CALCULATE(
[Sales],
SAMEPERIODLASTYEAR( 'Calendar'[Date] )
)
Thank you so much for you reply!
It almost works - I would like it to automatically show the same day last year (today 21. of january), and the previous 15 days - just like the chart. How to write that in DAX? 😕
Thanks again 🙂
I'm not completely understanding. You wrote that I should use my Previous 15 day measure as an argument, but the the 15 day measure in my screenshot is just a filter on the trend? 🙂
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 | |
82 | |
70 | |
49 |
User | Count |
---|---|
143 | |
123 | |
107 | |
61 | |
55 |