Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
flemmingbj
Contributor III
Contributor III

"Indexed values"

Hi,

I want to make a chart, with  YearMonth on the X-axis showing "indexed" values, that is the count per month compared with a baseline (in this example January 2019).

I use this formula to show the values per YearMonth: 

count(distinct Id)

But when I try to compare all the values to January 2019 with the formula below, it only shows the value for January 2019 divided by the value for January 2019 - all the other YearMonth's  are 0...!

(count(distinct Id)) Count(distinct if(YearMonth='jan.-2019', Id)) 

1 Solution

Accepted Solutions
chrismarlow
Specialist II
Specialist II

Hi,

Maybe try a total in the denominator? So;

 (count(distinct Id)) / Count(total distinct if(YearMonth='jan.-2019', Id)) 

Cheers,

Chris.

View solution in original post

2 Replies
chrismarlow
Specialist II
Specialist II

Hi,

Maybe try a total in the denominator? So;

 (count(distinct Id)) / Count(total distinct if(YearMonth='jan.-2019', Id)) 

Cheers,

Chris.

flemmingbj
Contributor III
Contributor III
Author

Yes, that works! Thanks! I tried it, but I must have misplaced the "total" 🙂