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
Anonymous
Not applicable

Get selected dates from a relative date slicer

Hi Everyone,

I'm trying to get the values of a date slicer using SELECTEDVALUE. Does anyone know how I can go about this especially for relative dates selection (see below). 

Essentially i would like to control the selection so for example when a user switches the Year drop down to Day/Week/Month I should get different results.


md_1234_0-1654665995709.png

 

Is this possible using dax?

 

Appreciate your Help!

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

I have created a simple sample, please refer to it to see if it helps you.

Create a measure first.

Measure = SELECTEDVALUE('Table'[date])

Measure cannot be displayed separately in the visuals. So we can create a column.

Column = [Measure]

vpollymsft_0-1655084419081.png

If I have misunderstood your meaning, please provide your desired output with more details and you sample pbix file without privacy information.

 

Best Regards

Community Support Team _ Polly

 

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 @Anonymous is there a way you can select the items on the left side selection box with Last, Next and This? I would like to have my users only view the "This" category and the others to not be seen when you selct that box.

Best,

Marlon 

Anonymous
Not applicable

Hi @Anonymous ,

I have created a simple sample, please refer to it to see if it helps you.

Create a measure first.

Measure = SELECTEDVALUE('Table'[date])

Measure cannot be displayed separately in the visuals. So we can create a column.

Column = [Measure]

vpollymsft_0-1655084419081.png

If I have misunderstood your meaning, please provide your desired output with more details and you sample pbix file without privacy information.

 

Best Regards

Community Support Team _ Polly

 

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

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.