Hello,
I have two columns in the sp list as below.
| Month | Total Cost |
| Jun | 150 |
| Jun | 100 |
| Mar | 50 |
| Oct | 60 |
| Nov | 80 |
| Nov | 120 |
| Nov | 130 |
| Apr | 40 |
| May | 30 |
When I try to visualize this table in the ColumnChart, it shows each month separately.
I need to show, "Total Cost" data by grouping these months. I write a code but it didn't work.
AddColumns(
GroupBy('MyDataSource', "Month", "GroupData"),
"Total Cost",
Sum(GroupData, "Total Cost")
)
How can I do this grouping?
Thanks,

Report
All responses (
Answers (