Forum Discussion
Cumulative SUM group by date
- Anonymous8 years ago
Bian,
You can create the measure using dax below.Measure = CALCULATE(DISTINCTCOUNT(CustomerDetail[account]),FILTER(ALL(CustomerDetail),CustomerDetail[Month]<=MAX(CustomerDetail[Month])))
Regards,
Lydia - 8 years ago
Thank you Lydia.
Managed to find a similiar solution and this is my final measure:
[Measure] = CALCULATE(DISTINCTCOUNT(CustomerDetail[account]);Account[IsCustomer] = TRUE;filter(all(CustomerDetail[todate])CustomerDetail[todate]<=max(CustomerDetail[todate]));all(DimDate))
Where:
CustomerDetail is my table for customer deals.
Account is my customer table
CustomerDetail[todate] is my date for when the deal ends.
DimDate is my date table that I use on the X axis on the Chart.
Bian,
You can create the measure using dax below.
Measure = CALCULATE(DISTINCTCOUNT(CustomerDetail[account]),FILTER(ALL(CustomerDetail),CustomerDetail[Month]<=MAX(CustomerDetail[Month])))
Regards,
Lydia
Thank you Lydia.
Managed to find a similiar solution and this is my final measure:
[Measure] = CALCULATE(DISTINCTCOUNT(CustomerDetail[account]);Account[IsCustomer] = TRUE;filter(all(CustomerDetail[todate])CustomerDetail[todate]<=max(CustomerDetail[todate]));all(DimDate))
Where:
CustomerDetail is my table for customer deals.
Account is my customer table
CustomerDetail[todate] is my date for when the deal ends.
DimDate is my date table that I use on the X axis on the Chart.