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

Max of date from the column

I have created data and  Ticket number in my column as below

 

 Created DateTicket Number
March 19, 2022 INC1627413
March 18, 2022 INC1627413
March 17, 2022 INC1627413
March 16, 2022 INC1627413
March 15, 2022INC1637653
March 15, 2022INC1637653
March 14, 2022INC1637653
March 14, 2022INC1637653
March 13, 2022INC1637659
March 13, 2022INC1637659

 

i have to create nem column which has the maximum data for each ticket in all the rows examle as below


March 19, 2022 is the max date for INC1627413
March 15, 2022 is the max date for  INC1637653

 

 Created DateTicket NumberMax Date
March 19, 2022 INC1627413March 19, 2022
March 18, 2022 INC1627413March 19, 2022
March 17, 2022 INC1627413March 19, 2022
March 16, 2022 INC1627413March 19, 2022
March 15, 2022INC1637653March 15, 2022
March 15, 2022INC1637653March 15, 2022
March 14, 2022INC1637653March 15, 2022
March 14, 2022INC1637653March 15, 2022
March 13, 2022INC1637659March 13, 2022
March 13, 2022INC1637659March 13, 2022

 

 

1 ACCEPTED SOLUTION
v-rongtiep-msft
Community Support
Community Support

Hi @Anonymous ,

Please refer to my pbix file to see if it helps you.

Create a column.

max_ = CALCULATE(MAX('Table'[ Created Date]),FILTER('Table','Table'[Ticket Number]=EARLIER('Table'[Ticket Number])))

vpollymsft_0-1648518011453.png

If I have misunderstood your meaning, please provide your pbix file without privacy information and desired output.

 

Best Regards

Community Support Team _ Polly

 

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

3 REPLIES 3
v-rongtiep-msft
Community Support
Community Support

Hi @Anonymous ,

Please refer to my pbix file to see if it helps you.

Create a column.

max_ = CALCULATE(MAX('Table'[ Created Date]),FILTER('Table','Table'[Ticket Number]=EARLIER('Table'[Ticket Number])))

vpollymsft_0-1648518011453.png

If I have misunderstood your meaning, please provide your pbix file without privacy information and desired output.

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Tahreem24
Super User
Super User

@Anonymous Try this:

Measure  = CALCULATE(MAX(TicketTable[Created Date]),ALLEXCEPT(TicketTable,TicketTable[Ticket Number]))
 
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
mh2587
Super User
Super User

 

Max_date = DATEVALUE(MAX('Table'[DATE]))

 


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



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.