Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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? 🙂
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.