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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
jimmy69
Frequent Visitor

Columna calculada con retorno erroneo

Hola,

 

Tengo la siguiente medida calculada en una tabla y no me devuelve correctament el valor deseado:

LatOrigen =
VAR DireccionBuscada = 'Any2023'[Dirección de llegada]
VAR LatitudEncontrada = LOOKUPVALUE(ParadesGPS[Lat], ParadesGPS[Adreça], DireccionBuscada)
RETURN
IF(ISBLANK(LatitudEncontrada), "No encontrado", LatitudEncontrada)

 

Y necesito que devuelca de la tabla "ParadesGPS" el campo [Lat] de la tabla "ParadesGPS".

 

Gracias

Need Help Tips and Tricks

 

2 REPLIES 2
v-xinruzhu-msft
Community Support
Community Support

Hi @jimmy69 

Please consider that:

1.If the data type of the ParadesGPS[Adreça] is same as the 'Any2023'[Dirección de llegada]. if the data type is not the same, it cannot reutrn the correct value.

2.If there are multiple related values in ParadesGPS, you cannot use the lookupvalue function, lookupvalue function  will return single value that meet the condition,  you can refer to the following link to view the description of this function. 

LOOKUPVALUE function (DAX) - DAX | Microsoft Learn

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.