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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Modify slicers defaults

Hello!

I need to modify slicers defaults. Don't know if it's possible.

I have 2 tables:

Table1:

bogachev_0-1604149092154.png

Table 2:

bogachev_1-1604149118817.png

 

And I have the slicer for field "Closed date" of Table 2:

bogachev_2-1604149170516.png

Slicer takes minimum and maximum date of column "Closed date" of Table 2.

I would like to replace these defaults with values of Table 1. Is it possible?

If required, I have uploded power bi file to Google Drive

Thank you!

 

1 ACCEPTED SOLUTION
CNENFRNL
Community Champion
Community Champion

Hi, @Anonymous , you might want to try it this way,

1. create a calculated column in Table2;

Closed date in between =
MIN ( Table1[Start] ) <= [Closed date]
    && [Closed date] <= MAX ( Table1[End] )

Screenshot 2020-10-31 180006.png

2. add this calculated column Table2[Closed date in between] to filter pane against slicer viz and tick True;

Screenshot 2020-10-31 180438.png

Then you get a date slicer corresponding to Table1.


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

3 REPLIES 3
CNENFRNL
Community Champion
Community Champion

Hi, @Anonymous , you might want to try it this way,

1. create a calculated column in Table2;

Closed date in between =
MIN ( Table1[Start] ) <= [Closed date]
    && [Closed date] <= MAX ( Table1[End] )

Screenshot 2020-10-31 180006.png

2. add this calculated column Table2[Closed date in between] to filter pane against slicer viz and tick True;

Screenshot 2020-10-31 180438.png

Then you get a date slicer corresponding to Table1.


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

sanalytics
Super User
Super User

@Anonymous 

Just create a table with your desired min date and max date then make virtual relationship.. refer the below file.. try the below measure

 

New Ticket = CALCULATE(SUM(Table2[Ticket #]),TREATAS(VALUES('New Table'[Value]),Table2[Closed date]) )
 
Attaching your file on below link
Hope it will help
 
Thanks
sanalytics
if it is your solution please accept it as solution and please like.

 

 

Anonymous
Not applicable

Hello @sanalytics ,

I need to "insert" default values to slicer based on Table 1.

Is it possible to modify slicers data?

Thank you!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.