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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
MKM
Helper II
Helper II

Need some clarrification on Relative Date Slicer

Hi Team,

 

Please check and give me details on the Relative Date Slicer.

If we select last 2 month In this Slicer how we can select only "May ". how we can select selective past month, kindly check and do the needful

MKM_0-1689270746988.png

 

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @MKM ,

It can't be achieved directly in relative slicer, here's my workaroud:

Create a measure as below:

Measure =
IF ( DATEDIFF ( MAX ( 'Table'[Date] ), TODAY (), MONTH ) = 2, 1, 0 )

Put it in the visual filter and select show items when the value is 1.

vyanjiangmsft_0-1689581609670.png

After click apply filter, get the correct result:

vyanjiangmsft_1-1689581680484.png

Best regards,

Community Support Team_yanjiang

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
v-yanjiang-msft
Community Support
Community Support

Hi @MKM ,

It can't be achieved directly in relative slicer, here's my workaroud:

Create a measure as below:

Measure =
IF ( DATEDIFF ( MAX ( 'Table'[Date] ), TODAY (), MONTH ) = 2, 1, 0 )

Put it in the visual filter and select show items when the value is 1.

vyanjiangmsft_0-1689581609670.png

After click apply filter, get the correct result:

vyanjiangmsft_1-1689581680484.png

Best regards,

Community Support Team_yanjiang

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

lbendlin
Super User
Super User

If you pick a particular month it is no longer a relative selection.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.