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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Date slicer advanced sync

Hi all,

 

I am currently working on a Power BI report and need a little bit of assistance in regards to a date slicer.

 

So I am looking at sales of items and want one of my tabs to be a selected time frame, for example a week. I then would like to have another tab that has sales for the 3 weeks prior to the one selected on the first tab. Is there a way to do this?

 

For example, I would like to select say Sep 9, 2024 - Sep 15, 2024 on the first tab to see those sales, but then I would like the second tab to sum up sales from August 19th, 2024 - September 8th, 2024 automatically. 

 

Thanks!

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_1-1728402448812.png

 

 

Jihwan_Kim_0-1728402406221.png

 

Sales: = 
SUM( sales[sales] )

 

 

Sales 3 weeks prior: = 
CALCULATE (
    [Sales:],
    'calendar'[date]
        >= MIN ( 'calendar'[date] ) - 27,
    'calendar'[date]
        <= MAX ( 'calendar'[date] ) - 27
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

 

Jihwan_Kim_1-1728402448812.png

 

 

Jihwan_Kim_0-1728402406221.png

 

Sales: = 
SUM( sales[sales] )

 

 

Sales 3 weeks prior: = 
CALCULATE (
    [Sales:],
    'calendar'[date]
        >= MIN ( 'calendar'[date] ) - 27,
    'calendar'[date]
        <= MAX ( 'calendar'[date] ) - 27
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Anonymous
Not applicable

This is really good, but is there a way for me to have two tabs, one with the selected date range on a slicer that is linked with another slicer on the second tab that has the last 3 weeks. 

 

Here is example:

 

Tab 1:

Jacobmiller23_0-1728407920886.png

Tab 2:

Jacobmiller23_1-1728408069955.png

 

 

Anonymous
Not applicable

Thanks for the reply from @Jihwan_Kim , please allow me to provide another insight.
Hi @Anonymous ,

Do you mean that after the slicer in Tab 1 selects the values, the slicer in Tab 2 automatically selects the corresponding values?

If so, then it is impossible.

A slicer can only filter other slicers and cannot control the selection of other slicers.

 

Best Regards,
Dengliang Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.