AddColumns is just filling my collection with the columns included in the formula but dismissing the already existing columns of my table. This happens arbitrarily, sometimes it works as intended, sometimes it messes up the whole collection.
Note: The formula is the same for both cases, that´s why i say it works arbitrarily
I don´t know if its my formula that´s causing this issue.
I was trying to recreate this SQL query into powerapps
SELECT
P.planta as Planta,
C.[nombre_cliente] as Cliente,
EIG.[ID_INFORMACION],
AMS.FOLIO_COTIZACION + ' - ' + EIG.Part_Description as [FOLIO_COTIZACION],
AMS.ANIO,
AMS.MES,
AMS.DESCRIPCION,
AMS.NUM_RECLAMOS_OF,
AMS.NUM_RECLAMOS_NOF
FROM
[PCP_ALERTAS_AMS] as AMS
LEFT JOIN EPCP_INFORMACION_GENERAL as EIG ON EIG.[ID_INFORMACION] = AMS.ID_INFORMACION
left join [dbo].[COT_CLIENTES] AS C on EIG.id_cliente = C.[id_cliente]
left join [DW_PCP].[dbo].[COT_PLANTAS] as P on P.id_planta = EIG.PCPPlant
This is the current formula in my powerapp:
ClearCollect(
colGridData,
AddColumns(
AddColumns(
PCP_ALERTAS_AMS As AMS,
"id_planta_p",
LookUp(
EPCP_INFORMACION_GENERAL,
FOLIO_COTIZACION = AMS.FOLIO_COTIZACION,
PCPPlant
),
"id_cliente_c",
LookUp(
EPCP_INFORMACION_GENERAL,
FOLIO_COTIZACION = AMS.FOLIO_COTIZACION,
id_cliente
)
),
"Planta",
LookUp(
COT_PLANTAS,
id_planta = id_planta_p,
planta
)
,
"Cliente",
LookUp(
COT_CLIENTES,
id_cliente = id_cliente_c,
nombre_cliente
)
)
)

Report
All responses (
Answers (