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

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

Reply
Kees
Helper I
Helper I

Conditional Look Up / Search Date in other table

Hi,

 

I have tried several functions, lookupvalue, Max, Maxx and other options suggeted in this forum, but I seem not be able to find the right solution. 

In regard to the below screenshot:

I need in an other POWER BI Table/ Column ( WO[LAST_,PROD DEL DATE]  )  the CO[CO_PROD_DELIVERY_DATE], 

where the CO[CO_ESTIMATE_STATUS] not equal to "Cancelled"

 

Search Criteria from the other column is: WO[WO_NUMBER]


FYI the CO[CO_ESTIMATE_ID] is a uninque number.

 

This Table is CO

Kees_0-1660745004517.png

 

So I figured to search on WO[WO_NUMBER] in the CO[WO_NUMBER] and then via the highest CO[CO_ESTIMATE_ID] number selecting the CO_PROD_DATE I need.

So thought to find of conditional LOOKUPVALUE, but I cant get it working, probably that I'm just exploring PBI.

 

Any sugestions? 

 

Brgds Kees

1 ACCEPTED SOLUTION
Kees
Helper I
Helper I

Found via coworker the soution.

 

Create a Measure, content;

 

Last CO Prod Del Date = Calculate(
    LASTDATE(CO[CO Prod Delivery Date]),
    KEEPFILTERS(WO)
)
 
That did the trick

View solution in original post

3 REPLIES 3
Kees
Helper I
Helper I

Found via coworker the soution.

 

Create a Measure, content;

 

Last CO Prod Del Date = Calculate(
    LASTDATE(CO[CO Prod Delivery Date]),
    KEEPFILTERS(WO)
)
 
That did the trick
Hariharan_R
Solution Sage
Solution Sage

Hi @Kees 

Try the below

 

Search Date = 
var _Agg = SUMMARIZE(TestTable, TestTable[WONumber], "CO", MAX(TestTable[CONumber]), "ES", MAX(TestTable[EstimateID]), "DATE", max(TestTable[Date]))
RETURN
MAXX(_Agg, [DATE])

 

Thanks

Hari

Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


My Blog :: YouTube Channel :: My Linkedin


Could not get it working like this.

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.