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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
SuperFanBoy
Frequent Visitor

User changes the comparison date in table or matrix

 

Hi,

 

I have the below fixed table in a dashboard, it shows the previous 6 weeks sales values and compares that with the equivilant week from last year (for example for 2023/W05 the Sales Value LY should read as 2022/W05). I have had a couple of requests one I am struggling to find a solution for.

 

If the user wants to compare the Easter weeks for example how can this be done?  For instance Easter in 2023 would be weeks 2 and 3, however in 2022 it would be weeks 4 and 5. With the numbers looking more like the second screen grab.

 

Can this be done?

 

 

 

SuperFanBoy_0-1682414538989.png

 

SuperFanBoy_1-1682418097986.png

 

 

1 REPLY 1
lbendlin
Super User
Super User

Use a custom Calendar table that identifies "like for like" periods for each year.  (Simplest would be to add a "holiday" column that calls out "Easter period", "Thanksgiving", "Festivus"  etc.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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