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
AllanBerces
Post Prodigy
Post Prodigy

Lookup with filter

Hi good day,

Can anyone help me on my lookup value. I have two table and i want to look up the value from table 2 but filter by year. Pls refer below.

 

AllanBerces_0-1750663412912.png

AllanBerces_1-1750663449670.png

RESULT

AllanBerces_2-1750663739238.png

Thank you

1 ACCEPTED SOLUTION
Demert
Resolver III
Resolver III

Hi @AllanBerces ,

 

What I suggest is creating a new column in table01 and using calculate instead of lookup value. See below:

Demert_0-1750664527184.png

Progress2023 = CALCULATE(MAX(Table2[Daily Progress]), Table2[Year]=2023 , Table2[Work]=Table2[Work])

For every year we are creating a new column to calculate the max value to the corresponding work column and year 

 

View solution in original post

2 REPLIES 2
Demert
Resolver III
Resolver III

Hi @AllanBerces ,

 

What I suggest is creating a new column in table01 and using calculate instead of lookup value. See below:

Demert_0-1750664527184.png

Progress2023 = CALCULATE(MAX(Table2[Daily Progress]), Table2[Year]=2023 , Table2[Work]=Table2[Work])

For every year we are creating a new column to calculate the max value to the corresponding work column and year 

 

Hi @Demert thank you very much, its working

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.