I want to create a bar chart in Power Apps, but I'm having typing issues.
AddColumns(
GroupBy(Expenses, Category, gbCategory),
Total,
Sum(gbCategory, Value)
)
Copilot returns the following log:
The expression was intended to group the 'Expenses' table by the 'Category' column, create a new column named 'gbCategory' for the nested grouped data, and then calculate the sum of the 'Value' column within each group. However, the errors in the expression are that the 'GroupBy' function is being used incorrectly, and the 'Sum' function is expecting a numeric value but is receiving a table instead.
I believe the issue is with 'Category' since it comes from a SharePoint list of type 'Choice', so it is probably not converting to a string.
Is there any way to solve this?
Thank you for your attention.

Report
All responses (
Answers (