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

Click here to schedule a short Teams meeting to discuss your question.

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

Click here to schedule a short Teams meeting to discuss your question.
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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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