I am able to see the table is generated successfully though the addColumns() generated columns (total_aum, total_income) couldn’t be displayed in a gallery or anywhere in the canvas app.
fx: First(table).total_income should display 0 not blank().
Same when I try to retrieve data within a gallery.
Has anyone faced a similar situation? I’m stuck 😵
Even weirder now when I tested it with Label. In the Ideas, it showed Current formate xxxxxx.xx means the data was fetched successfully. But it just wouldn’t show. So confused 😵
Solution
Then I found the problem is because of the Explicit column selection feature again.
When I tried to calculate the total_income number in the gallery.
1
2
3
Sum(
Thisitem.rest, revenue
)
The data was able to be retrieved and displayed successfully. So I figured the problem would be
AddColumns() wouldn’t be considered
when you have Explicit column selection ticked.
Below is the trick I used to retrieve the needed data at the first steps of With() instead of using ShowColumns() to explicitly select columns but still able to tell the power apps to load the data.
Notice, I use fetch_Final_Rev_gb: First(WAM_Trade_Summarizes).Final_Rev_gb, fetch_Total_amount_gb: First(WAM_Trade_Summarizes).Total_amount_gb to achieve the goal.