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 IX
Super User IX

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
Meet the 2020 Season 2 Power BI Super Users!

Meet the 2020 Season 2 Power BI Super Users!

Find out who's part of the program this season, and welcome the new Super Users.

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.

Featured Data Story of The Month

Featured Data Story of The Month

All Data Stories Gallery contributions are reviewed for each month. We select a contribution and feature the community member the following month.

Power BI Dev Camp - Developing with .NET Core

Power BI Dev Camp - Developing with .NET Core

Learn how to develop custom web applications for Power BI using .NET Core 3.1 and .NET 5.

Top Solution Authors
Top Kudoed Authors