Forum Discussion
Cumulative Percentage
- 7 years ago
So you're very close. ALLSELECTED returns all values that are currently being used in the table. You just need to add an extra filter statement that specifically calls out blank month of closure as something you don't want included in this measure.
Cumulative Total = CALCULATE ( COUNT ( 'Actual v Expected'[Count] ), FILTER ( ALLSELECTED ( 'Actual v Expected' ), ('Actual v Expected'[MONTH_OF_CLOSURE] <= MAX ( 'Actual v Expected'[MONTH_OF_CLOSURE] ) &&
('Actual v Expected'[MONTH_OF_CLOSURE] <> BLANK()) ) ))
hi v-frfei-msft Cmcmahan ,
i have managed to make progress
I am working on calculating the cumulative percentage for a set of data , however I only want the percentage to start totalling after the first row.
At present , I am getting the below:
The current measure I am using is
So you're very close. ALLSELECTED returns all values that are currently being used in the table. You just need to add an extra filter statement that specifically calls out blank month of closure as something you don't want included in this measure.
Cumulative Total =
CALCULATE (
COUNT ( 'Actual v Expected'[Count] ),
FILTER (
ALLSELECTED ( 'Actual v Expected' ),
('Actual v Expected'[MONTH_OF_CLOSURE] <= MAX ( 'Actual v Expected'[MONTH_OF_CLOSURE] ) &&
('Actual v Expected'[MONTH_OF_CLOSURE] <> BLANK()) )
))