Hi everyone,
I’m trying to build a pie chart in Power Apps that shows how my company’s expenses are split across different categories.
My sharepoint list:
1. Category (choice column)
2. Amount (currency column)
What i tried:
ClearCollect(
colExpensesSummary,
ForAll(
Distinct(Expenses, Category.Value),
{
Category: Result,
TotalAmount: Sum(Filter(Expenses, Category.Value = Result), Amount)
}
)
)
Pie chart Items = colExpensesSummary
Label= Category
Series= TotalAmount
Problem: The chart doesn’t display and I get errors like Name isn’t valid / Result not recognized.
What’s the simplest way to summarize expenses by category and show them in a pie chart?
Thanks!