Forum Discussion
Anonymous
6 years agoNot applicable
Cumulative Total with Breakdown
Hi,
I am currently creating a visual where I am taking the cumulative total of the count distinct of bills. This calculation works as expected & displays the numbers as expected:
Cumulative Bill Count =
CALCULATE(
DISTINCTCOUNT(Fact_Legislation_Unpivot[BillID]),
FILTER(
ALLSELECTED(Fact_Legislation_Unpivot),
Fact_Legislation_Unpivot[Legislation Date] <= MAX(Dim_Date[Date])))
However, when I try and colour this by using a category, the values are all duplicated and the visual breaks:
Does anything think they can help?
Anonymous , try like
Cumulative Bill Count =
CALCULATE(
DISTINCTCOUNT(Fact_Legislation_Unpivot[BillID]),
FILTER(
ALLSELECTED(Dim_Date),
Dim_Date[Date] <= MAX(Dim_Date[Date]))