Forum Discussion

ShmuelM's avatar
ShmuelM
Advocate II
9 years ago
Solved

Getting the Max Date For a Ticket Dynamically.

Hi Guys ,

I need your help in something , 

This is my dataset : 

As You can see I added a calculated column that will calculate the Max Handled Timestamp for each Ticket Id.

There is one thing I cannot figure out is that when I try to exclude the Max Date:  

 

 

After Excluding the row with the max date I would like to get the next availible max date that is: 08/06/2017 06:09:29

but it still stays the excluded one: 

 

 

 

I Hope I explained myself clearly. 

Here is the calculation of MaxDate - Calculated column: 

Max Date =
CALCULATE(
MAX(Page2[Handled Timestamp]),
FILTER(ALLSELECTED(Page2), Page2[Ticket ID]=EARLIER(Page2[Ticket ID]))
)

 

-It is only one table 

- I belive it is related to the issue that it is a calculated column and not a meause. 

 

Thanks for your help. 

 

 

 

 

 

 

 

  • Anonymous's avatar
    Anonymous
    9 years ago

    ShmuelM,

    Create a measure using DAX below.


    MaxDateMeasure = CALCULATE(MAX(Page2[Handled Timestamp]),ALLSELECTED(Page2[Handled Timestamp]))



    Regards,

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    ShmuelM,

    Create a measure using DAX below.


    MaxDateMeasure = CALCULATE(MAX(Page2[Handled Timestamp]),ALLSELECTED(Page2[Handled Timestamp]))



    Regards,