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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

YTD & YTG calculation with new header

I am trying to calculate YTG and  YTD calculation  like new header  2022-2021 ,2023-2022,2024-2023,2025-2024.I have posted sample Data for reference 

 

(previousyear -Currentyear)/Currentyear

 

Region      Date        -    Year                      Value        

west        Jan-2021       2021                        250

west        Jan-2022       2022                        350

west        Jan-2023       2023                        420

west        Jan-2024       2024                        460

west        Jan-2025       2025                        440

 

Expected Output :       

                                            '

2022-2021           40%

2023-2022          -17%

2024-2023           -9%

2025-2024           5%

 I want to show above result in the Group .

 

Looking for support . thanks in  advance

 

 

2 REPLIES 2
Anonymous
Not applicable

@amitchandak  created the column  when i was apply the column its not showing the value .  when i use orignal column use its showing the value 

amitchandak
Super User
Super User

@Anonymous , You have to create a new column

 

Year name = [Year] & "-" &[Year] -1

 

and measure like diff % can be used

 

//Only year vs Year, not a level below

This Year = CALCULATE(sum('Table'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])))
Last Year = CALCULATE(sum('Table'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])-1))
diff = [This Year]-[Last Year ]
diff % = divide([This Year]-[Last Year ],[Last Year ])

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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