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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.