Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!
SOLVED

How to set up future kpi's by use of calculated metric?

Avatar

Level 4

Hi there,

We are trying to set up a calculated metric representing a target KPI which is different for each month of the year, and used the IF-condition (see screenshot).

Variable target - if condition.png

We notice that it only works for past/current month(s) but not for future months since the # of visits = 0 there (see screenshot).

Variable target - result table.png

Does someone has an idea about how to set this up?

Thanks in advance,

Sarah

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

I think it isn't easy to create a metric like this. the problem is that the dimension used as rows filters the data and does not allow to check outside...

I once saw a possible way to go but can't find it anymore. however, maybe you can use some fancy "cumulative sum" (where you look back for the last x month) and segments for last/previous month to find out in what month you might be.

One idea: why don't you use the dimension "month of year" which would allow to check data (month) of "last year" to figure out in which row you are. the display something based on current year. to achieve this, you need to have full data of last 2 years in the table (or in the metric)... never tried it but might work

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

I think it isn't easy to create a metric like this. the problem is that the dimension used as rows filters the data and does not allow to check outside...

I once saw a possible way to go but can't find it anymore. however, maybe you can use some fancy "cumulative sum" (where you look back for the last x month) and segments for last/previous month to find out in what month you might be.

One idea: why don't you use the dimension "month of year" which would allow to check data (month) of "last year" to figure out in which row you are. the display something based on current year. to achieve this, you need to have full data of last 2 years in the table (or in the metric)... never tried it but might work

Avatar

Level 4

Thanks! Your idea worked well for us.