Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have a requirement,
We should have 3 views that needs to be implemented, in the config file
Or else only 2 values in Config file
Below is the color logic, for Monthly data
if(Sales > Target, vRed,
if(Sales <Target, vAmber,vGreen))
Requirements:
Monthly View | ||||
Month | Target | Sales | Colour Code Logic - 2023 | |
JAN | 41 | 41 | Green | |
FEB | 41 | 35 | amber | |
MAR | 41 | 45 | red | |
APR | 41 | No Colour code | ||
MAY | 41 | No Colour code | ||
JUN | 41 | No Colour code | ||
JUL | 41 | No Colour code | ||
AUG | 41 | No Colour code | ||
SEP | 41 | No Colour code | ||
OCT | 41 | No Colour code | ||
NOV | 41 | No Colour code | ||
DEC | 41 | No Colour code | ||
Quarter View | ||||
Quarter | Target | Sales | Colour Code Logic - 2023 | Notes |
Q1 | 125 | 150 | as 2023 Q1 has completed, it should RED | for 2022, it should be Red |
Q2 | 125 | 150 | as 2023 Q2 has not completed, it should not Colour code | Color logic to be implemented on JULY for Q2 |
Q3 | 125 | 112.5 | as 2023 Q3 has not completed, it should not Colour code | Colour Logic to be implemented on OCT for Q3 |
Q4 | 125 | 112.5 | as 2023 Q4 has not completed, it should not Colour code | Colour Logic to be implemented on JAN for Q4 |
Half Year View | ||||
Half year | Target | Sales | Colour Code Logic - 2023 | Notes |
H1 | 500 | 600 | as 2023 half year has not completed, it should not Colour code | for 2022, it should be Red |
H2 | 500 | 450 | as 2023 half year has not completed, it should not Colour code | for 2022, it should be amber |
Based on the Config File, These has to been reflected has anyone help me on this please.
either inline table or an expression - if(right(Quarter,1)<3,'H1','H2') as HalfYear
compare the end date of Q and H with today() and if today is greater, apply colourcode, if not apply white()
For Quarter End we have Quarterend() function, how to get Half year end ?
either inline table or an expression - if(right(Quarter,1)<3,'H1','H2') as HalfYear