How to set up future kpi's by use of calculated metric? | Community
Skip to main content
Level 3
June 17, 2019
Solved

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

  • June 17, 2019
  • 2 replies
  • 2065 views

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).

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

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

Thanks in advance,

Sarah

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Urs_Boller

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

2 replies

Urs_Boller
Community Advisor
Urs_BollerCommunity AdvisorAccepted solution
Community Advisor
June 17, 2019

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

BYOIDAuthor
Level 3
June 20, 2019

Thanks! Your idea worked well for us.