Forum Discussion
marcio_fornari
Resolver I
6 years agoCumulative Sum with Duplicate Date
Hello, I have a problem to sum a Cumulative Measure. Maybe this is happening because there duplicate Dates? If don't have duplicate dates: It's OK But, if have a "RAZAO SOCIAL" value in...
- 6 years ago
Hi marcio_fornari ,
Sorry for our mistake in the formula, we can use the following measure to meet your requirement:
Acumulado Saldo = CALCULATE ( [Saldo do Dia]; FILTER ( ALL ( fDADOS ); fDADOS[DATA VENCIMENTO] < MAX ( fDADOS[DATA VENCIMENTO] ) || ( fDADOS[DATA VENCIMENTO] = MAX ( fDADOS[DATA VENCIMENTO] ) && fDADOS[RAZÃO SOCIAL] <= MAX ( fDADOS[RAZÃO SOCIAL] ) ) ) )
Best regards,
v-lid-msft
Community Support
6 years agoHi marcio_fornari ,
We can try to use the following measure to meet your requirement:
Acumulado Saldo =
CALCULATE(
[Saldo do Dia];
FILTER(
All(fDADOS); fDADOS[DATA VENCIMENTO] <= MAX(fDADOS[DATA VENCIMENTO]) && fDADOS[RAZÃO SOCIAL] <= MAX(fDADOS[RAZÃO SOCIAL])
)
)
If it doesn't meet your requirement, Could you please show the exact expected result based on the Tables that you have shared?
Best regards,
marcio_fornari
Resolver I
6 years ago- v-lid-msft6 years ago
Community Support
Hi marcio_fornari ,
Sorry for our mistake in the formula, we can use the following measure to meet your requirement:
Acumulado Saldo = CALCULATE ( [Saldo do Dia]; FILTER ( ALL ( fDADOS ); fDADOS[DATA VENCIMENTO] < MAX ( fDADOS[DATA VENCIMENTO] ) || ( fDADOS[DATA VENCIMENTO] = MAX ( fDADOS[DATA VENCIMENTO] ) && fDADOS[RAZÃO SOCIAL] <= MAX ( fDADOS[RAZÃO SOCIAL] ) ) ) )
Best regards,- marcio_fornari6 years ago
Resolver I
Hello v-lid-msft
Perfect! Thanks for All.