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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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 II
Resolver II

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 II
Resolver II

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.