Forum Discussion
How do I assemble a column from a table that queries data from another table?
- Anonymous1 year ago
Hi Syndicate_Admin ,
Thank you for reaching out to the Microsoft Fabric Community.
We have reviewed your inquiry regarding the requirement to retrieve the corresponding INPO detail from the ‘Detalle INPOs’ table into the ‘Ejecución sin OC’ table, based on the shared INPO number. This is a common lookup scenario in Power BI, and we appreciate the clarity with which you’ve described your objective.
We would like to confirm that both community responses provided by DataInsights and Ashish_Mathur technically correct:
For your reference, here is the recommended formula:
Detalle de INPO = LOOKUPVALUE( 'Detalle INPOs'[Detalle], 'Detalle INPOs'[Numero de Inpo], 'Ejecución sin OC'[INPO] )Please ensure that the data types of both columns involved in the comparison (INPO and Numero de Inpo) are consistent (preferably whole numbers), and confirm that no ambiguity exists in the matching logic.
If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.
Thankyou.
Try this calculated column in the "Execution without CO" table:
Detalle de INPO =
VAR vINPO =
CONVERT ( 'Ejecución sin OC'[INPO], INTEGER )
VAR vResult =
MAXX (
FILTER ( 'Detalle INPOs', 'Detalle INPOs'[Numero de Inpo] = vINPO ),
'Detalle INPOs'[Detalle]
)
RETURN
vResult