Forum Discussion
Change sum in Pivot-table
- 7 years ago
Hi Anonymous,
Sorry for my mistake. Here is the measure I refer to the measure2.
Measure = CALCULATE(SUM(Table1[Belopp]),ALLEXCEPT(Table1,Table1[K1 ID],Table1[Date]))
From your image, it seems that you have a date column in Column field in matrix, but I cannot find the date column in your sample data.
The attachment is the sample pbix which I tested to reproduce your scenario, please have a reference.
And when you say that the sum can not be shown where the grand total is shown, do you mean the subtotals as well then? (the marked numbers in the attached pictures)?Yes, we cannot show the measure to the position of subtotals in the matrix.
Best Regards,
Cherry
Hi Anonymous,
You could create the measure with the formula below to calculate the accumulate sum based on Kontokategori 1 ID.
Measure 2 =
CALCULATE (
[Measure],
FILTER (
ALLSELECTED ( 'Table1' ),
'Table1'[K1 ID] <= MAX ( 'Table1'[K1 ID] )
&& 'Table1'[Date] = MAX ( 'Table1'[Date] )
)
)
Here is the output.
However, if you want to show the accumulate sum in the position which should show grandtotal in the matrix, I'm afraid that we could not do that.
Best Regards,
Cherry
Hi! Thanks for you response! But I don't get the measure to work in my model. What is the measure you refer to in the formula?
And when you say that the sum can not be shown where the grand total is shown, do you mean the subtotals as well then? (the marked numbers in the attached pictures)?
- v-piga-msft7 years agoResident Rockstar
Hi Anonymous,
Sorry for my mistake. Here is the measure I refer to the measure2.
Measure = CALCULATE(SUM(Table1[Belopp]),ALLEXCEPT(Table1,Table1[K1 ID],Table1[Date]))
From your image, it seems that you have a date column in Column field in matrix, but I cannot find the date column in your sample data.
The attachment is the sample pbix which I tested to reproduce your scenario, please have a reference.
And when you say that the sum can not be shown where the grand total is shown, do you mean the subtotals as well then? (the marked numbers in the attached pictures)?Yes, we cannot show the measure to the position of subtotals in the matrix.
Best Regards,
Cherry