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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Edmi8
New Member

LookUpValue con filtro

Hola a todos

Estoy tratando de crear una nueva columna con LookUpValue, pero necesito que busque bajo cierta condición

Edmi8_0-1659487134687.png

 

Estoy usando esta funcion:

Cosecha 20220718 = LOOKUPVALUE('Modelo PY'[Fecha Cosecha],'Modelo PY'[cliente_id], 'Maestro clientes'[cliente_id])

 

Pero necesito que filtre 'Modelo PY'[Fecha Cosecha]="20220718" 

Al hacer el lookupvale de cliente_id Maestro Clientes con el id_cliente Modelo PY, necesito que solo busque con los que tienen por fecha cosecha "20220718"

 

 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Edmi8 , Try like

 

Maxx(filter( 'Modelo PY', 'Modelo PY'[cliente_id]=EARLIER('Maestro clientes'[cliente_id]) && 'Modelo PY'[Fecha Cosecha]="20220718" ) ,'Modelo PY'[Fecha Cosecha])

 

 

refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Edmi8 , Try like

 

Maxx(filter( 'Modelo PY', 'Modelo PY'[cliente_id]=EARLIER('Maestro clientes'[cliente_id]) && 'Modelo PY'[Fecha Cosecha]="20220718" ) ,'Modelo PY'[Fecha Cosecha])

 

 

refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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