The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Have struggled with this for ages so really could do with some advice;
I am trying to create a measure to report the prevous 5 year average. I have tried different measure combinations with parallel period, same period last year, etc but it doesnt work in one way or another with either monthly aggregation working but yearly not working or a fiscal year to date slicer not affecting the data when in a table.
What I am trying to get to is to create a table with the below headings using measures
*Sum column in the deliberate fires table is a column of value 1 for each row. I use this for the calculations, but maybe count rows better?
*Fiscal Year in calendar table is text format with format like 2024/25.
*I have a fiscal year to date measure in my calendar table which when toggled to FYTD limits current/previous years to dates between 1st April and todays day of year. I would like to be able to toggle this on and off to view the measures against yearly totals and just for fiscal year to date.
At present, my measures are as follows;
Slicer Previous year selection =if(isblank(Calculate(SUM('Deliberate Fires'[Sum]),SAMEPERIODLASTYEAR('Calendar'[Date]))),0,Calculate(SUM('Deliberate Fires'[Sum]),SAMEPERIODLASTYEAR('Calendar'[Date])))
Hi @gc27 ,
Based on the information you have provided, you can follow the steps below:
How to Get Your Question Answered Quickly - Microsoft Fabric Community
If it does not help, please provide more details with your desired out put and pbix file without privacy information.
Best Regards,
Ada Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for the reply and apologies for the delay in mine.
I found a article online that discussed the differences between sameperiodlastyear, datediff and parallel period.
I cant remember which one i used but it produced the correct answer
Glad to hear you have resolved the issue.
Best Regards,
Ada Wang