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
ShmuelM
Advocate I
Advocate I

Getting the Max Date For a Ticket Dynamically.

Hi Guys ,

I need your help in something , 

This is my dataset : 1.PNG

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:  2.PNG

 

 

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: 3.PNG

 

 

 

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. 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

@ShmuelM,

Create a measure using DAX below.


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

1.JPG2.JPG

Regards,

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
ShmuelM
Advocate I
Advocate I

@v-yuezhe-msft Great! That works thanks!

v-yuezhe-msft
Employee
Employee

@ShmuelM,

Create a measure using DAX below.


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

1.JPG2.JPG

Regards,

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.