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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
firdows_2407
Frequent Visitor

2 slicers of same dates with different formats on same page.

I have 2 slicers of same date on same page, 
one date is vertical list with single select slicer
and other date is in before date slicer format
If I select one date in first slicer, the other slicer should start from min(Selecteddate) and 
End date should be Max(Selecteddate)
like 
CalendarTable = CALENDAR(DATE(2009,4,2), TODAY())
this is my table.
For Example,
in first slicer, I select 18-07-2024
In second slicer, it should take from 02-04-2009 to 18-07-2024

its coming like this

firdows_2407_0-1721287905268.png

 

But, I want like this but with interactions

firdows_2407_1-1721287905271.png

 

Is there any possible way to sync both the slicers?

Please suggest any solution to this.
Thanks in advance!!

 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

Here, I have not used the slicer options instead i have made some changes in logic level by using my tables.

Actually I'm creating an aging report for that purpose, I want this second slicer. Now instead of using slicer option, I have used like this

 

0 - 7 Days =
VAR SelectedDate = MAX('DateTable'[Date])
VAR StartDate = DATE(2009, 4, 2)
RETURN
    SUMX(
        FILTER(
            'AGING_TABLE', 
            'AGING_TABLE'[Posting Date] <= SelectedDate &&
            'AGING_TABLE'[Posting Date] >= StartDate &&
            DATEDIFF('AGING_TABLE'[Due Date], SelectedDate, DAY) >= 0 &&
            DATEDIFF('AGING_TABLE'[Due Date], SelectedDate, DAY) <= 7
        ),
        'AGING_TABLE'[Amt in LC]
    )
 
Here I took direct start date to select date, and it is working fine.
Thanks & Regards
Firdows

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

Hi @firdows_2407 ,

The slicer visual before date can not be filtered by another slicer. Based on my testing, please try the following as workaround:

1.Create the two calendar table.

 

Table = CALENDAR(DATE(2009,4,2), TODAY())

 

2.Create the new table 2.

 

Table 2 = {"True","False"}

 

3.Create the new measure to filter the date.

 

Measure 3 = 
VAR _Slicer = MAX('Table'[Date])
RETURN 
IF(MAX('SlicerTable'[Date]) <= _Slicer,TRUE(),FALSE())

 

4.Drag the measure into the Preselected visual.

vjiewumsft_0-1721376705483.png

5.Select the date in the first slicer. The result is shown below.

vjiewumsft_1-1721376774610.png

You can also raise a new idea and add the comment.

Home (microsoft.com)

 

Best Regards,

Wisdom Wu

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

@Anonymous , Can you please explain me what is this value in the below screenshot refers to?

firdows_2407_0-1721713006499.png

 

Anonymous
Not applicable

Hi @firdows_2407 ,

The value is table 2 column.

vjiewumsft_0-1721713884275.png

vjiewumsft_1-1721713899474.png

The Preselected visual requires a login to power bi. Can not upload the pbix file.

 

Best Regards,

Wisdom Wu

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

Thank you for your quick response, I've tried your technique, but it's still not working as expected. 

I've tried another solution and it is working fine.

Thanks @Anonymous 

 

Anonymous
Not applicable

Hi @firdows_2407 ,

Based on the description, you have solved the problem.

You can share the solution and please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Wisdom Wu

Hi @Anonymous ,

Here, I have not used the slicer options instead i have made some changes in logic level by using my tables.

Actually I'm creating an aging report for that purpose, I want this second slicer. Now instead of using slicer option, I have used like this

 

0 - 7 Days =
VAR SelectedDate = MAX('DateTable'[Date])
VAR StartDate = DATE(2009, 4, 2)
RETURN
    SUMX(
        FILTER(
            'AGING_TABLE', 
            'AGING_TABLE'[Posting Date] <= SelectedDate &&
            'AGING_TABLE'[Posting Date] >= StartDate &&
            DATEDIFF('AGING_TABLE'[Due Date], SelectedDate, DAY) >= 0 &&
            DATEDIFF('AGING_TABLE'[Due Date], SelectedDate, DAY) <= 7
        ),
        'AGING_TABLE'[Amt in LC]
    )
 
Here I took direct start date to select date, and it is working fine.
Thanks & Regards
Firdows
bhanu_gautam
Super User
Super User

@firdows_2407 , You can use DAX to acheive this

Create a Measure for the Selected Date:

   SelectedDate = SELECTEDVALUE(CalendarTable[Date])
 
Create a Measure for the Min Date:
   MinDate = MINX(ALL(CalendarTable), CalendarTable[Date])
 
Create a Measure for the Max Date:
MaxDate = IF(ISBLANK([SelectedDate]), MAXX(ALL(CalendarTable), CalendarTable[Date]), [SelectedDate])
 
Then create a new table 
DynamicDateRange =
   VAR MinDate = MINX(ALL(CalendarTable), CalendarTable[Date])
   VAR MaxDate = IF(ISBLANK([SelectedDate]), MAXX(ALL(CalendarTable), CalendarTable[Date]), [SelectedDate])
   RETURN
   CALENDAR(MinDate, MaxDate)
 
Use the DynamicDateRange table for the second slicer. This table will dynamically adjust its range based on the selection in the first slicer.



Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






@bhanu_gautam I tried using this technique, however the second slicer does not function based on the first slicer's selection.

firdows_2407_0-1721306462715.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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