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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors
Top Kudoed Authors