Forum Discussion

AMS_Pag's avatar
AMS_Pag
Frequent Visitor
6 years ago

Getting upper date value in a slicer

Hi,

I have a date slicer which filters the data based on two dates. 
I wanted to get the upper value selected in the slicer but I've not been able to get it.

 

I tried this formula, picking it from previous messages on Power BI Community but it doesn't work:

CALCULATE ( MAX ( MyDateTable[Date] ), ALLSELECTED ( MyDateTable[Date] ) )

 

Can you help me?

 

Thanks! 

4 Replies

    • AMS_Pag's avatar
      AMS_Pag
      Frequent Visitor

      Yes, I tried it, but also after setting the relative filtering I can't get the "upper" date.

      I need to get the upper date dynamically, as it is changed (e.g. if the upper date is changed I need to get the new value, obviously). 😋

      • amitchandak's avatar
        amitchandak
        Super User

        On a slicer date I typically able to get date

        Date= MAXX (MyDateTable,ALLSELECTED ( MyDateTable[Date] ) )