The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
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? 🙂
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
81 | |
75 | |
52 | |
47 |
User | Count |
---|---|
133 | |
124 | |
78 | |
64 | |
61 |