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
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors