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.
I have sales data for all of 2016 and up to September for 2017. I am trying to get the 2016 sales up to the last date in 2017.
YTD Sales = TOTALYTD(SUM('Sales History'[Sales Amount]), 'Date'[Date])
-- this correctly sums up all of 2017
YTD Sales LY = CALCULATE ([YTD Sales], SAMEPERIODLASTYEAR('Date'[Date] ))
-- expecting SUM('Sales History'[Sales Amount]) for 2016 up until September but returns sum of all rows for 2016.
I am sure my understanding is incorrect somewhere, please help.
Solved! Go to Solution.
Hi @sanimesa,
What about testing this following formulae (replace TOTALYTD with calculate):
YTD Sales = CALCULATE(SUM('Sales History'[Sales Amount]), DATESYTD('Date'[Date])) YTD Sales LY = CALCULATE ([YTD Sales], SAMEPERIODLASTYEAR('Date'[Date] ))
Thx
Ninter
Hi @sanimesa,
What about testing this following formulae (replace TOTALYTD with calculate):
YTD Sales = CALCULATE(SUM('Sales History'[Sales Amount]), DATESYTD('Date'[Date])) YTD Sales LY = CALCULATE ([YTD Sales], SAMEPERIODLASTYEAR('Date'[Date] ))
Thx
Ninter
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 |
---|---|
114 | |
100 | |
81 | |
70 | |
62 |
User | Count |
---|---|
148 | |
116 | |
104 | |
90 | |
65 |