Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

YTD With Conditional Coluring

Hi,

i am struckid in creating ytd with conditional coluring .Kindly help me

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

Use this expression in

Text Object Properties -> Font -> Color -> Calculated and give expression below

=If(Sum({$<Year={$(=Max(Year)-1)}>} Sale) < Sum(Sale), Red(), Green())

Note: In qlikview Dimension names are case sensitive, sales and Sales both are different, in YTD expression you have given sales but it should be Sales.

Regards,

Jagan.

View solution in original post

2 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Use this expression in

Text Object Properties -> Font -> Color -> Calculated and give expression below

=If(Sum({$<Year={$(=Max(Year)-1)}>} Sale) < Sum(Sale), Red(), Green())

Note: In qlikview Dimension names are case sensitive, sales and Sales both are different, in YTD expression you have given sales but it should be Sales.

Regards,

Jagan.

Not applicable
Author

Thanks  u  Bro.