cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

How to get Top Date selection of a Slicer

I was asked to try to calculate the number of days between a date in a table and the higher date in a slicer.

 

Is this possible?

 

I manage to get the dates present in the slicer, by using a measure with values. But I can not get the MAX to calculate the diference.

 

Thanks

3 REPLIES 3
Highlighted
Super User IV
Super User IV

Re: How to get Top Date selection of a Slicer

Would need to see a sample of your data and how you are using it.


---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Resolver IV
Resolver IV

Re: How to get Top Date selection of a Slicer

Did not do this with Dates but with some other thing recently

 

Selected Duck + Details = IF(COUNTROWS(ALLSELECTED(Ducks))=1, LOOKUPVALUE(Ducks[Duck Number],Ducks[Duck Number and Details],
ALLSELECTED(Ducks[Duck Number and Details])),"default duck details")

 

Can't share the thing as its customer data so I replaced it with Ducks.

No idea if this is of any help to you but sounded kind of similar.

Highlighted
Anonymous
Not applicable

Re: How to get Top Date selection of a Slicer

@Greg_Deckler

 

image.png

 

In this example the idea is to get the difference between each Start Date and in this example: 27-02-2017. In the case that the End Date is empty.

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

July 2020 Community Highlights

July 2020 Community Highlights

Learn about the exciting things that happened in July.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors
Top Kudoed Authors