Hello,
I’m looking to create a cumulative line graph of distinct values. I’m aware of the Running_total() function as well as Count_distinct() function.
Example:
My table have 4 days
Day 1 - A,B,C
Day 2 - A,B,D
Day 3 - B,C
Day 4 - E
My results should be
Day 1: 3
Day 2: 4
Day 3: 4
Day 4: 5
I’ve nested Count_distinct within running_total but its returning:
Day 1: 3
Day 2: 6
Day 3: 8
Day 4: 9
The Table Calculation: running_total(id_count})
The Measure:
measure: id_count {
type: count_distinct
sql: ${TABLE}.“ID” ;;
}
Any suggestions? Much appreciated!
Cheers,
Andrew