Forum Discussion
Sum per Week and Location
Hi can any one help me on my calculated column and also for measure. on my table i want the sum of countMax per week
Week 35: Sum Max= 254 which is from (159 + 13 + 82)
Week 35: Sum Max= 214 which is from (86 + 110 + 18)
and fro Sum MaxandLocation/Vessel
Week 35: 241 which is from Location South and 159 + 82
Week 35: 82 which is from Location East and 82, no other East value on week 35
Week 35: 13 which is from Location North and 13, no other North value on week 35
Same on Week 34
DESIRED OUTPUT
| DATE | Location/Vessel | Week No: | CountMAX | Sum Max | Sum MaxandLocation/Vessel |
| 8/25/2025 | South | 35 | 159 | 254 | 241 |
| 8/25/2025 | South | 35 | 159 | ||
| 8/25/2025 | South | 35 | 159 | ||
| 8/25/2025 | North | 35 | 13 | 13 | |
| 8/26/2025 | North | 35 | 13 | ||
| 8/27/2025 | North | 35 | 13 | ||
| 8/29/2025 | East | 35 | 82 | 82 | |
| 8/29/2025 | South | 35 | 82 | ||
| 8/29/2025 | East | 35 | 82 | ||
| 8/29/2025 | East | 35 | 82 | ||
| 8/29/2025 | East | 35 | 82 | ||
| 8/21/2025 | East | 34 | 86 | 214 | 104 |
| 8/21/2025 | East | 34 | 86 | ||
| 8/21/2025 | East | 34 | 86 | ||
| 8/21/2025 | East | 34 | 86 | ||
| 8/21/2025 | East | 34 | 86 | ||
| 8/18/2025 | West | 34 | 110 | 128 | |
| 8/18/2025 | West | 34 | 110 | ||
| 8/18/2025 | West | 34 | 110 | ||
| 8/18/2025 | West | 34 | 110 | ||
| 8/18/2025 | West | 34 | 110 | ||
| 8/22/2025 | East | 34 | 18 | ||
| 8/22/2025 | North | 34 | 18 | 18 | |
| 8/22/2025 | North | 34 | 18 | ||
| 8/23/2025 | North | 34 | 18 | ||
| 8/18/2025 | West | 34 | 18 | ||
| 8/18/2025 | North | 34 | 18 | ||
| 8/18/2025 | North | 34 | 18 |
Hi AllanBerces
Are you sure you want calculated colums? You'll have to have a criteria which row to applied the sum of max but as measures, try these:
Sum of Max = SUMX ( SUMMARIZECOLUMNS ( 'Table'[Week No:], 'Table'[Location/Vessel], "@max", CALCULATE ( MAX ( 'Table'[CountMAX] ) ) ), [@max] ) Sum of MaxandLocation/Vessel = SUMX ( SUMMARIZECOLUMNS ( 'Table'[Week No:], 'Table'[Location/Vessel], 'Table'[CountMAX] ), [CountMAX] )
2 Replies
- danextianSuper User
Hi AllanBerces
Are you sure you want calculated colums? You'll have to have a criteria which row to applied the sum of max but as measures, try these:
Sum of Max = SUMX ( SUMMARIZECOLUMNS ( 'Table'[Week No:], 'Table'[Location/Vessel], "@max", CALCULATE ( MAX ( 'Table'[CountMAX] ) ) ), [@max] ) Sum of MaxandLocation/Vessel = SUMX ( SUMMARIZECOLUMNS ( 'Table'[Week No:], 'Table'[Location/Vessel], 'Table'[CountMAX] ), [CountMAX] )- AllanBercesPost Prodigy
Hi danextian thank you very much big help, very much appreciated