cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors