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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Data being displayed using background colour in expession.

Hi

9 Replies
raghavsurya
Partner - Specialist
Partner - Specialist

can u pls elaborate your question

Not applicable
Author

Sorry

Will post correctly

I have a Table similar to below

Type  Objective   Value 

A             2            3       

B             2            1        

C             1            1

TOTAL     2            1.66

The value column contains a calculated percentage. The objective total is displayed using Max Of Rows.

I have set the background colour in the expression to be

if(sum(Value) <= sum(Obective), green(), red()).

The if statement sees the Total Objective as 5 rather than the the displayed value. It is possible for it to look at the dispalyed value rather than the sum?

raghavsurya
Partner - Specialist
Partner - Specialist

Hi,

Try using RangeMax functionality.

if(Sum(Value)<=RangeMax(Objective),Green(),Red().

Regards,

Raghav

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi

    As per my understanding of your problem i am here by sending you an example

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Hi

This does quite work but I may have not been clear initially. I hae re attachd the document highlighting what is happening.

The total is a calculated expression and the objective total displays the MAX value of that column. The value column is showing in Blue because it is less than the sum of the objective which is 7. However I want to look at the displayed value of 2 so it shows in red.

Apprieciate your help so far.

Not applicable
Author

I have posted the example again with RangeMax and it does the same as before.

Thanks

raghavsurya
Partner - Specialist
Partner - Specialist

Hi,

Use Only Max instead of Rangemax.  Its working for me.

Regards,

Raghav

Not applicable
Author

Thank You

It works in the demo doc but still does not quite work in mine. I will see if I am missing something.

montubhardwaj
Specialist
Specialist

HI,

Please find the attached file.Hope this is helpful. I have made few chanegs in the attached by Kaushik.

Regards,

Sharma