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
Edmi8
New Member

LookUpValue with filter

Hello everyone

I am trying to create a new column with LookUpValue, but I need it to search under certain condition

Edmi8_0-1659487982333.png

I am using this function: Cosecha 20220718 = LOOKUPVALUE('Modelo PY'[Fecha Cosecha],'Modelo PY'[cliente_id], 'Maestro clientes'[cliente_id]) But I need you to filter 'Modelo PY'[Fecha Cosecha]="20220718" When doing the lookupvale of cliente_id Master Clients with the id_client Model PY, I need to only search with those with harvest date "20220718"

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Edmi8 ,

You can create a calculated column as below in the table 'Maestro clientes':

Cosecha 20220718 =
CALCULATE (
    MAX ( 'Modelo PY'[Fecha Cosecha] ),
    FILTER (
        'Modelo PY',
        'Modelo PY'[cliente_id] = 'Maestro clientes'[cliente_id]
            && 'Modelo PY'[Fecha Cosecha] = "20220718"
    )
)

Best Regards

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Edmi8 ,

You can create a calculated column as below in the table 'Maestro clientes':

Cosecha 20220718 =
CALCULATE (
    MAX ( 'Modelo PY'[Fecha Cosecha] ),
    FILTER (
        'Modelo PY',
        'Modelo PY'[cliente_id] = 'Maestro clientes'[cliente_id]
            && 'Modelo PY'[Fecha Cosecha] = "20220718"
    )
)

Best Regards

amitchandak
Super User
Super User

@Edmi8 , You can bring column one table to another like

 

Table 1 new column, data from Table 2

 

Maxx(filter(Table2 , Table1[Client] = Table2[Client] && Table1[Month] = Table2[Month]) ), Table2[Value])

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.