Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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? 🙂
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
145 | |
87 | |
66 | |
51 | |
45 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |