Hey guys,
I'm trying to have my gallery read from two SQL tables by establishing a LOOKUP in the Items property. My two data sources are already established in the data tab:
The item property in its entirety looks like this:
Filter(
AddColumns(
SALESORD_LINES,
"ORDERDATE",
LookUp(
SALESORD_HDR,
SEQNO = 'SALESORD_LINES'[@HDR_SEQNO]
)
),
HDR_SEQNO > 0 && STOCKCODE <> Blank() && STOCKCODE <> " " && HDR_STATUS = 0
)
The problem I have is that this returns a completely blank gallery, despite no formula problems or delegation issues.
I tried troubleshooting:
I created this based of this example from this video from Krishna Vandanapu - MVP . Granted, his example was referencing Sharepoint data sources, but the example should apply to SQL sources as well right?
Any help would be greatly appreciated.
Solved! Go to Solution.
Hi @Sveygal ,
To prevent performance issue, when using SQL Server tables as the data source, you will only get data in the column that you just added. You may test this with a collection to check the result value of AddColumns:
ClearCollect(colTest,
AddColumns(
SALESORD_LINES,
"ORDERDATE",
LookUp(
SALESORD_HDR,
SEQNO = 'SALESORD_LINES'[@HDR_SEQNO]
)
)
)
Please use ShowColumns function to add value to all the data columns you need.
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
Hi @Sveygal ,
To prevent performance issue, when using SQL Server tables as the data source, you will only get data in the column that you just added. You may test this with a collection to check the result value of AddColumns:
ClearCollect(colTest,
AddColumns(
SALESORD_LINES,
"ORDERDATE",
LookUp(
SALESORD_HDR,
SEQNO = 'SALESORD_LINES'[@HDR_SEQNO]
)
)
)
Please use ShowColumns function to add value to all the data columns you need.
Hope this helps.
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
190 | |
52 | |
51 | |
36 | |
33 |
User | Count |
---|---|
268 | |
97 | |
83 | |
68 | |
68 |