I have a question to ask about summing distinct sums. I have a table as below which is coming from a database
ID |Activity |Rank| Max Rank|Health Aggregated_$ Tiering Engaged Quarter
1 |Activty3 |3 |8 |1 100 4 - Lowest Y FY18 Q4
1 |Activty3 |3 |8 |2 100 4 - Lowest Y FY18 Q1
1 |Activty4 |4 |8 |1 100 4 - Lowest Y FY18 Q4
1 |Activty2 |2 |8 |1 100 4 - Lowest Y FY18 Q3
1 |Activty8 |8 |8 |1 100 4 - Lowest Y FY18 Q3
I am trying to get the sum distinct $ in each activity. Therefore, what I am trying to achieve is something like this in a pivot. The reason why I have to use the pivot is because Quarter is used as a filter to get only certain quarters (FY 18 and beyond for example)
Activity | 100
Activity2 | 100
Activity3 | 100
Activity4 | 100
Activity8 | 100
My pivot looks like this now. Was wondering if a sumproduct would work on this?