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 Cmcmahan
This didnt work for me, see my measure below amended to suit my dataset
When I do this I get the following:
My dataset is called 'Actual v Expected' and i mention about the measure I am using for the PercentageClosed column.
Any ideas why this isn't working as required ?
Hi Arranafc19 ,
Could you please share your sample data to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.
- Arranafc197 years agoHelper IV
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
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] ))))This is calculating the cumulative percentage correct but it is including my null month which I want to exclude.I need the measure to only start a running total on the rows where the month of closure is not null.See below the expected outcome:As you can see , i need only from 0.4 down on the percentage close to total up , and I cant exclude the top row as I need them in the percetnage calculation.- Cmcmahan7 years agoResident Rockstar
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()) ) ))