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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Esef
Frequent Visitor

Basic Date Slicer Used on One Page to Drive Relative Dates on Another Page

Hello,

I am working on report where the first page is a summary page and is driven by a basic date selection. Elsewhere in the report I am showing trends. I would like for the selected date from the summary page to be the basis for the relative date on the trends page.

 

For Example

Summary page slicer selection = 7/31/2021 to drive trends page data to be <=7/31/2021

 

What is the best way to accomplish this? ideally, I would like the user to only have to filter in one place.

 

Thanks in advance for any help.

 

 

 

  

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @Esef ,

I created some data:

vyangliumsft_0-1627624886240.png

Here are the steps you can follow:

1. Create calculated table.

Slice date =
CALENDARAUTO()

2. Use the [date] column of the Slice date table as the slicer in Page1 and Page2 respectively.

3. Select Sync slicers in View, so you can select the slicer of Page1, which will be synchronized to the slicer of Page.

vyangliumsft_1-1627624886246.png

4. Create measure.

Flag =
var _select=SELECTEDVALUE('Slice date'[date])
return
IF(MAX('Table'[date])<_select,1,0)

5. Place Measure[Flag] in the Filter in Page2, set is=1, and apply filter.

vyangliumsft_2-1627624886249.png

6. Result.

Select 2021.7.31 in Page1, and display data less than 201.7.31 in Page2.

vyangliumsft_4-1627625050312.png

 

Best Regards,

Liu Yang

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

View solution in original post

1 REPLY 1
v-yangliu-msft
Community Support
Community Support

Hi  @Esef ,

I created some data:

vyangliumsft_0-1627624886240.png

Here are the steps you can follow:

1. Create calculated table.

Slice date =
CALENDARAUTO()

2. Use the [date] column of the Slice date table as the slicer in Page1 and Page2 respectively.

3. Select Sync slicers in View, so you can select the slicer of Page1, which will be synchronized to the slicer of Page.

vyangliumsft_1-1627624886246.png

4. Create measure.

Flag =
var _select=SELECTEDVALUE('Slice date'[date])
return
IF(MAX('Table'[date])<_select,1,0)

5. Place Measure[Flag] in the Filter in Page2, set is=1, and apply filter.

vyangliumsft_2-1627624886249.png

6. Result.

Select 2021.7.31 in Page1, and display data less than 201.7.31 in Page2.

vyangliumsft_4-1627625050312.png

 

Best Regards,

Liu Yang

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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