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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
tloup
Frequent Visitor

YoY calculation by changing values problem

Good morning community 

 

I have a problem to do with a measure that I can't solve. Thanks in advance for the help! 

 

I'm trying to make a measure that compares YoY differences but based on dimensions within my data that change from one year to the next. I have a matrix which shows how I am displaying my data for one year with the revenue numbers split up into different seasons depending on the order.

 

tloup_2-1710409823813.png

 

For the YoY comparison I want to compare seasons against the same season from last year (i.e. if I'm looking at AW24 Main in the current year, the last year comparison should be against AW23 Main). I can't work out how to dynamically select 'active' seasons in one year vs the active seasons from last year. 

 

tloup_3-1710409846063.png

 

Any help would be v much appreciated! 

 

 

 

4 REPLIES 4
tloup
Frequent Visitor

Transaction Season is a stand alone table because it's not like each day represents a given season. There are some days which have orders for three different seasons or more. Is there no way to code a dax formula that uses the fields SeasonCode and SubSeason Code and Year that takes the same season and subseason but subtracts 1 on the year field and then selects the returned season? 

 

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Report Copy.pbix is a link to the sample data

 

I want to create a measure that compares season CY vs season LY (i.e. SS24 Main vs SS23 Main). This field is taken from TransactionSeasonFinal from the TransactionSeasons table which filters data from the Sales table 

What do we need a TransactionSeason for? You already have a calendar table? Would they correlate via the year or is the transaction season in a different timeframe?

lbendlin_0-1710594844540.png

With this structure you cannot get any dynamic YoY  calculation.

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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