Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All,
I have monthly sales from Jan 2021 untill Aug 2022 for 5 stores, and I'm trying create a chart that display current year sales & previous year sales for each store.
I created two measure as below and added these two along with Store dimension.
Solved! Go to Solution.
Hi @rapingali ,
Your Sales_PreviousYear is including the full year because (I am assuming), there's a full year's worth of data last year. If you want your last year's YTD sale instead, you can follow this structure below:
TOTLAYTD LY =
CALCULATE ( [Sales_CurrentYear], SAMEPERIODLASTYEAR ( Table.[Invoice_date] ) )
Proud to be a Super User!
Hi @rapingali ,
Your Sales_PreviousYear is including the full year because (I am assuming), there's a full year's worth of data last year. If you want your last year's YTD sale instead, you can follow this structure below:
TOTLAYTD LY =
CALCULATE ( [Sales_CurrentYear], SAMEPERIODLASTYEAR ( Table.[Invoice_date] ) )
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |