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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
KH_Mike
Helper III
Helper III

Fiscal Year, Calender Year calculation

Hi All,

 

I have a set of data like below. Right now, all the calculation is based on Fiscal Year like below Year on Year Comparsion. Now, I need to add the [Year] slicer as well. May I know if there is any way to shift all the calculation from Fiscal Year to Calendar Year?

 

One of my DAX is as follow.

YOY=
VAR LY=SELECTEDVALUE(Table[Fiscal Year])-1
VAR TY=SELECTEDVALUE(Table[Fiscal Year])
VAR _Month = SUMMARIZE (FILTER (Table,Table[Fiscal Year] = TY),Table[Month])

Return

sum(Table[Volume])
-
CALCULATE(sum(Table[Volume]),Table[Fiscal Year]=LY,Table[Month] in _Month)

 

Fiscal YearYearMonthVolume
20192020Jan1
20192020Feb2
20192020Mar3
20202020Apr4
20202020May5
20202020Jun6
20202020Jul7
20202020Aug8
20202020Sep9
20202020Oct10
20202020Nov11
20202020Dec12
20202021Jan13
20202021Feb14
20202021Mar15

 

3 REPLIES 3
KH_Mike
Helper III
Helper III

Anyone can help me?

amitchandak
Super User
Super User

@KH_Mike , if you have date with help from date table

or create with help from year month and day

 

example

Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR('Date'[Date]))

 

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

 

 

//Only year vs Year, not a level below

This Year = CALCULATE(sum('order'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])))
Last Year = CALCULATE(sum('order'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])-1))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak 

 

Thank you for your reply. Except creating a date table, any chance to acheive it by pure DAX formula? Thank you.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.