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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ShmuelM
Advocate II
Advocate II

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
Anonymous
Not applicable

@ShmuelM,

Create a measure using DAX below.


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

1.JPG2.JPG

Regards,

View solution in original post

2 REPLIES 2
ShmuelM
Advocate II
Advocate II

@Anonymous Great! That works thanks!

Anonymous
Not applicable

@ShmuelM,

Create a measure using DAX below.


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

1.JPG2.JPG

Regards,

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors