Forum Discussion

Jaweed's avatar
Jaweed
Helper III
2 years ago
Solved

Help in matrix total

Hi all

Can you help me. I would like some columns to show the average, while others the sum. In the first column, I want the 'total' to appear as 7 ( ie average of 6 and 8 ), Whereas column No of Complaints should be the Sum, as it is now. How can I achieve so? I attacj my sample Excel sheet. There is a colum in the Excel cnamed Units, which determine if the aggregation is either Sum or Average. I added a clolum CFL in the pbix for the parent Company ( which holds CPYA and CPYB) to appear in the visual.  I will also use Filter as below.Many thanks.

 

 

Sample Data Sheet.

CompanyMonthMetricValueUnit of Measure
CPYA24-JanRevenue20000Units
CPYA24-Jan% Profit60%
CPYA24-JanNo of Complaints3Units
CPYA24-Jan% Leavers6%
CPYB24-JanRevenue25000Units
CPYB24-JanPercentage  Profit30%
CPYB24-JanNo of Complaints6Units
CPYB24-Jan% Leavers4%
CPYA24-FebRevenue10000Units
CPYA24-Feb% Profit20%
CPYA24-FebNo of Complaints2Units
CPYA24-Feb% Leavers8%
CPYB24-FebRevenue12000Units
CPYB24-Feb% Profit10Percentage
CPYB24-FebNo of Complaints1Units
CPYB24-Feb% Leavers2%