The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Good morning
I have a chart in which I show all the printing expenses that my company has since January 2020.
I would like to calculate the total for the same period (January-June) but last year.
Using this formula still gives me error.
I'm sorry but I don't calculate it well either, it gives me the total of the previous year but not as I want, from January to June.
Does anyone know how it works?
What visuals do you put this measure in? Measures are calculated according to the context they are in, so we need to take care of the effect other columns in the same visual may have.
Regards,
Community Support Team _ Jing
This seems like fine
Total previous year period = CALCULATE(SUM('Printer Expenses'[Total(€)]),SAMEPERIODLASTYEAR(Calendar[Date]))
try like Total previous year period = CALCULATE(SUM('Printer Expenses'[Total(€)]),dateadd(Calendar[Date],-1,year))