Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Changing background colour of a chart based on a expression

Dear Community,

I have been struggling with the following problem for some time now and I hope someone can provide support on the following:

I am building a KPI  chart (see below) and I am trying to create an expression which will trigger the background to change green if below budget and red if above budget.  Unfortunately I am finding it a bit challenging due to the complexity of the chart itself.  Each colour in the chart below has its own expression (therefore sum if is required).

I have added the expression that I am trying to create, the first section gives a value.  I am stuck one the second part of the formula.  Below you can find the tables that I am using to assemble the rest of the formula.  "Budget houder" needs to be kept in because it used to filter a list of Cost Centres..

What I need the formula ((if([Budget Houder]='QC',[Budget 2016]*[Current Month])), ) to do is based on the current month (example: 9) needs to sum up the total budget up to Period 9.

Any help will be much appreciated!!!!!!

(sum(if([Site GRP Rapport]='Quality Control' ,[Val.in rep.cur.])) < (if([Budget Houder]='QC',[Budget 2016]*[Current Month])), RGB(121 ,217, 124), RGB(236 ,166, 152)) 

kpi.JPG

Hard coded formula in excel: =MONTH(TODAY())-1

Current Month

9

PeriodBudget 2016Budget Houder
1159309.83Test 1
2159309.71Test 1
3159309.83Test 1
4159309.83Test 1
5159309.71Test 1
6159309.83Test 1
7159309.83Test 1
8159309.71Test 1
9159309.83Test 1
10368609.83Test 1
11159309.71Test 1
12159309.83Test 1
1109678.09Test 2
2109678.2Test 2
3109678.09Test 2
4347778.09Test 2
5109678.2Test 2
6109678.09Test 2
7109678.09Test 2
8109678.2Test 2
9109678.09Test 2
10109678.09Test 2
11109678.2Test 2
12109178.09Test 2
0 Replies