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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
jwi1
Post Patron
Post Patron

Find most recent date

Hi all,

I am looking for a solution to calculate the most recent_ready_date if the LOCATION and the PARTNUMBER_SUP is the same

In the last column I mentioned the outcome of the calculation.

Thanks for your help!

John

 

locationready_datpartnumber_supmost_recent_ready_date
City12/28/2021AM17108120112/28/2021
City9/23/2021AM17108120112/28/2021
Holland11/12/2021120039501SV11/12/2021
Holland7/20/2021120039501SV11/12/2021
America12/27/2021AM17108120112/27/2021
America6/3/2021AM17108120112/27/2021

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@jwi1 , Try a new column like

 

maxx(filter(Table, [location] = earlier([location]) && [PARTNUMBER_SUP] = earlier([PARTNUMBER_SUP])), [ready_dat])

 

a nw measure like

 

maxx(filter(allselected(Table), table[location] = max(table[location]) && table[PARTNUMBER_SUP] = max(table[PARTNUMBER_SUP])), table[ready_dat])

View solution in original post

Jihwan_Kim
Super User
Super User

Picture1.png

 

most recent ready date: =
IF (
ISINSCOPE ( Data[location] ),
IF ( COUNTROWS ( Data ) > 1, MAX ( Data[ready_dat] ) )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Picture1.png

 

most recent ready date: =
IF (
ISINSCOPE ( Data[location] ),
IF ( COUNTROWS ( Data ) > 1, MAX ( Data[ready_dat] ) )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


amitchandak
Super User
Super User

@jwi1 , Try a new column like

 

maxx(filter(Table, [location] = earlier([location]) && [PARTNUMBER_SUP] = earlier([PARTNUMBER_SUP])), [ready_dat])

 

a nw measure like

 

maxx(filter(allselected(Table), table[location] = max(table[location]) && table[PARTNUMBER_SUP] = max(table[PARTNUMBER_SUP])), table[ready_dat])

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.