Forum Discussion
sokg
Solution Supplier
9 years agoHelp with Line chart shows current TOTALQTD and Last Year same TOTALQTD
Hello to all, I have Sales = SUM(SalesValue). I have a date table with dates from 1/1/2016. I have created QTDSales= TOTALQTD([Sales],DATESQTD(dCalendar[Date])) and PY QTDSales = CALCULATE(...
- 9 years ago
I fix it using these formulas:
QTDSales = CALCULATE(TOTALQTD([Sales];DATESQTD(dCalendar[Date]));dCalendar[Quarter No]=ROUNDUP(MONTH(TODAY())/3;0);dCalendar[Year]=YEAR(TODAY()))
and
PY QTDSales = CALCULATE([Sales];DATEADD(DATESQTD(dCalendar[Date]);-1;YEAR);dCalendar[Quarter No]=ROUNDUP(MONTH(TODAY())/3;0);dCalendar[Year]=YEAR(TODAY())-1)
Thank you all, for your replies.
vanessafvg
Community Champion
9 years ago- sokg9 years ago
Solution Supplier
I want to see only the last quarter. The part from 1/4/2017 till today.
- vanessafvg9 years ago
Community Champion
- sokg9 years ago
Solution Supplier
Yes i know that, but i there any way to show only the last quarter?