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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
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
Greg_Deckler
Super User
Super User

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


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

@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.

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors