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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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