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! Request now

Reply
subhashredz
Frequent Visitor

For a given date: Default: the slicer should default to show the last 14 days including today.

  • Default: the slicer should default to show the last 14 days including today.
  • Maximum Range: the slicer should have a maximum range of 90 days
  • Data should be pulled at a maximum of rolling three years prior from today
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @subhashredz ,

 

Requirement 1 and 2:

You can create a measure to filter your date slicer. You can create a date table by CALENDAR() date with maximum range of 90 days.

Date = CALENDAR(TODAY()-90+1,TODAY())
Selection = 
{"Maximum Range"}

Measure:

Measure = 
VAR _DATESTART = MIN('Date'[Date])
VAR _DATEEND = MAX('Date'[Date])
RETURN
IF(ISFILTERED(Selection[Value]),1,IF(_DATESTART > TODAY()-14 && _DATEEND<=TODAY(),1,0))

Result is as below.

By Default:

RicoZhou_0-1667285530686.png

Select "Maximum Range":

RicoZhou_1-1667285540535.png

Requirement 3:

You can try incremental refresh in Power BI.

For reference:

Incremental refresh and real-time data for datasets

 

Best Regards,
Rico Zhou

 

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

2 REPLIES 2
Anonymous
Not applicable

Hi @subhashredz ,

 

Requirement 1 and 2:

You can create a measure to filter your date slicer. You can create a date table by CALENDAR() date with maximum range of 90 days.

Date = CALENDAR(TODAY()-90+1,TODAY())
Selection = 
{"Maximum Range"}

Measure:

Measure = 
VAR _DATESTART = MIN('Date'[Date])
VAR _DATEEND = MAX('Date'[Date])
RETURN
IF(ISFILTERED(Selection[Value]),1,IF(_DATESTART > TODAY()-14 && _DATEEND<=TODAY(),1,0))

Result is as below.

By Default:

RicoZhou_0-1667285530686.png

Select "Maximum Range":

RicoZhou_1-1667285540535.png

Requirement 3:

You can try incremental refresh in Power BI.

For reference:

Incremental refresh and real-time data for datasets

 

Best Regards,
Rico Zhou

 

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

 

 

 

@Anonymous 

 

Thanks for the reply

The Requirment is that the user can select any 90 days of max range from last 3 years.

 

And can we achive all the 3 requirments in only one slicer without any aditional check box selection. 

 

Regards,

Subhash

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors