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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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