web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / [HELP] AddColumns is w...
Power Apps
Unanswered

[HELP] AddColumns is working arbitrarily

(0) ShareShare
ReportReport
Posted on by 411

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
 )
 )
)

 

 

 

 

 

 

POWERAPP_AMS.png

 

POWERAPP_AMS_2.png

 

POWERAPP_AMS.png
POWERAPP_AMS_2.png
Categories:
  • HectorOlivos Profile Picture
    411 on at

    c

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard