Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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 Year | Year | Month | Volume |
| 2019 | 2020 | Jan | 1 |
| 2019 | 2020 | Feb | 2 |
| 2019 | 2020 | Mar | 3 |
| 2020 | 2020 | Apr | 4 |
| 2020 | 2020 | May | 5 |
| 2020 | 2020 | Jun | 6 |
| 2020 | 2020 | Jul | 7 |
| 2020 | 2020 | Aug | 8 |
| 2020 | 2020 | Sep | 9 |
| 2020 | 2020 | Oct | 10 |
| 2020 | 2020 | Nov | 11 |
| 2020 | 2020 | Dec | 12 |
| 2020 | 2021 | Jan | 13 |
| 2020 | 2021 | Feb | 14 |
| 2020 | 2021 | Mar | 15 |
Anyone can help me?
@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))
Hi @amitchandak
Thank you for your reply. Except creating a date table, any chance to acheive it by pure DAX formula? Thank you.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 19 | |
| 17 | |
| 11 |