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
Anonymous
Not applicable

Creating a year vs. year sales curve for multiple events

Our organisation has multiple events at our venue throughout the year. Each event has a different event date and a different sales period e.g. October-March (for a March event), February-September (for a September event, and so on) and we are looking to build a sales curve that can be sliced by any fixture and display sales for its sales period vs. the same time in the previous year.

 

The issue we are finding is that we slice by event year to choose the event whose sales curve we wish to display, but we also have a transaction date on our x-axis and not all transactions are in the event year. We only have one date table. 

 

Through various ways we have formed a sales curve that is continuous (for each annual iteration of the event it adds previous years' sales onto the current year and also a variation that drops to 0 on the 1 Jan each year (but with some sales periods spanning October-March this is not ideal). 

 

Is the community aware of any solutions that would give us our desired sales curve?

1 REPLY 1
sturlaws
Resident Rockstar
Resident Rockstar

Hi @Anonymous 

 

Power BI cannot separate filter context coming from e.g. the transaction date on the x-axis from the filter context coming from year in a slicer.

 

You will need to create two new tables, each of the tables with a single column:
dimYear = Values('SomeTable[Year])
dimFixture = Values('SomeTable'[Fixture])

 

Use these columns as slicer-values.

 

Then write your measures like this

measure =
CALCULATE (
    SUM ( SomeTable[SomeColumn] );
    FILTER ( SomeTable; SomeTable[Fixture] IN dimFixture[ColumnName] )
)

 

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.