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 total costs for the current year compared to the prior year by month. (PR YEAR = CALCULATE(SUM(DATA[TOTAL]),PARALLELPERIOD(DATES[Date].[Date],-12,MONTH))
I would like to see this for the fiscal year. In my DATES table, I have: FiscalYearNumber = If( Month([Date]) >= 7 , Year([Date])+1,Year([Date]) ) and FiscalMonth = (If( Month([Date]) >= 7 , Month([Date]) - 6,Month([Date]) + 6 ))
How do I adjust the PR YEAR to calculate based on my new fiscal year and month?
Solved! Go to Solution.
Hi @Ria,
>>If my calendar date is Aug 28/YY then the fiscal date is 02/28/YY, but calendar date Aug 29/YY becomes 03/1/YY.
By default, the date function will auto convert the date calculation.
I also not found a better solution to solve this issue. In my opinion, I'd like to suggest you to ignore the "day" of fiscal date, only keep the year and month.
Notice: Fiscal date not the real date, you not need to care about the detail day of date. You only need to ensure the original data are in the same month.
Regards,
Xiaoxin Sheng
Hi @Ria,
You can add a calculage column to calculate the fiscal date, then modify your formula based on it.
Sample:
Fiscal Date = DATE(If( Month([Date]) >= 7 , Year([Date])+1,Year([Date])),If( Month([Date]) >= 7 , Month([Date]) - 6,Month([Date]) + 6 ),DAY([Date]))
Regards,
Xiaoxin Sheng
This mostly works except that it does not account for the fact that all months do not have the same number of days. If my calendar date is Aug 28/YY then the fiscal date is 02/28/YY, but calendar date Aug 29/YY becomes 03/1/YY. Is there a way to account for this?
Hi @Ria,
>>If my calendar date is Aug 28/YY then the fiscal date is 02/28/YY, but calendar date Aug 29/YY becomes 03/1/YY.
By default, the date function will auto convert the date calculation.
I also not found a better solution to solve this issue. In my opinion, I'd like to suggest you to ignore the "day" of fiscal date, only keep the year and month.
Notice: Fiscal date not the real date, you not need to care about the detail day of date. You only need to ensure the original data are in the same month.
Regards,
Xiaoxin Sheng
Good idea. I made the day the first day of the month so that the month is always correct.
Fiscal Date = DATE(if(month([Date].[Date]) >=7, Year([Date].[Date])+1,year([Date].[Date])),if(month([Date].[Date])>=7, month([Date].[Date]) - 6, Month([Date].[Date]) +6),1)
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 | |
96 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |