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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

How to retrieve a value based on the max date of another column which is mapped to multiple entries

Hi there,

How to retrieve a value based on the max date of another column which is mapped to multiple entries which in trur is mapped to a single value.

The question may be confusing. Pleae refer the below snap that would help.

This is my table. One IB name has many document name that has its date and companyname

.snap of table which has IBname with multiple document name and its dates reported and  company namesnap of table which has IBname with multiple document name and its dates reported and company nameNow i want just the company name of the latest document name for the IBname. Pleae I want the recent company name of the IB nam alone hereI want the recent company name of the IB nam alone here

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hey Thanks for your quick response.  Your solution will work fine. But i did not want a fitler to arrive at the value.

Tried a simple measure finally. Surprisingly it worked fine.

 

last_service_company = CALCULATE(FIRSTNONBLANK('ML test'[CompanyName],1),FILTER('ML test','ML test'[DocumentDate]=MAX('ML test'[DocumentDate])))

View solution in original post

2 REPLIES 2
belisqui
Advocate IV
Advocate IV

 

No sure if this will help but you can create a column to use as a filter:

 
In the pic below you would use the [MAX Date By Customer] calculated column as a filter for your table.

 

Reference.PNG

Anonymous
Not applicable

Hey Thanks for your quick response.  Your solution will work fine. But i did not want a fitler to arrive at the value.

Tried a simple measure finally. Surprisingly it worked fine.

 

last_service_company = CALCULATE(FIRSTNONBLANK('ML test'[CompanyName],1),FILTER('ML test','ML test'[DocumentDate]=MAX('ML test'[DocumentDate])))

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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
Top Kudoed Authors