Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Change Fiscal Year in TOTALYTD

Hi All,

 

I am calculating Year to Date sum of specific category using TOTALYTD function. Result I got is based on Calendar Year Start of Jan and Finish on Dec, i want to change it to April to March.

 

pls help.

 

MonthSum Result by Power BIDesired Result
Jan-19101010
Feb-19102020
Mar-19103030
Apr-19104010
May-19105020
Jun-19106030
Jul-19107040
Aug-19108050
Sep-19109060
Oct-191010070
Nov-191011080
Dec-191012090
Jan-201010100
1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

Create a fis_month column.

fis_month = EDATE('Table'[month],-3)

Column = CALCULATE(SUM('Table'[sum]),FILTER('Table',YEAR('Table'[fis_month])=YEAR(EARLIER('Table'[fis_month]))&&MONTH('Table'[fis_month])<=MONTH(EARLIER('Table'[fis_month]))))

3.PNG

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

Create a fis_month column.

fis_month = EDATE('Table'[month],-3)

Column = CALCULATE(SUM('Table'[sum]),FILTER('Table',YEAR('Table'[fis_month])=YEAR(EARLIER('Table'[fis_month]))&&MONTH('Table'[fis_month])<=MONTH(EARLIER('Table'[fis_month]))))

3.PNG

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
amitchandak
Super User
Super User

@Anonymous , Use FY end date in datesytd ot totalytd

 

example

 


YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"3/31"))
Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"3/31"))

 

Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.