Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
ipsita26
Partner - Contributor
Partner - Contributor

Determine the Final RAG color based on multiple RAG calculated in the UI

Hi,

I have a straight table with 5 rows and 3 column. 

Below is the example of 1 of the straight table. 

Metriccolumn 1column 2RAG
Metric 1sum({<month={'mar', 'APR'}>}Sales)sum({<month={'Jan', 'Feb'}>}Sales)column 1/column 2
Metric 2count({<month={'mar', 'APR'}>}sales)count({<month={'Jan', 'Feb'}>}Sales)column 1/column 2
Metric 3avg({<month={'mar', 'APR'}>}sales)avg({<month={'Jan', 'Feb'}>}Sales)column 1/column 2
Metric 4max({<month={'mar', 'APR'}>}sales)max({<month={'Jan', 'Feb'}>}Sales)column 1/column 2

 

Like this we have 5 straight tables. 

Once we get the RAG value, we need to assign color to it.

Once the RAG of each cell has been determined, we need to calculate the overall RAG based on the maximum number of Green cell, Orange cell and Red cell.

for e.g: from all the straight table ,we have 10 Green RAG, 6 Orange RAG and 4 Red RAG. so the overall RAG should be Green. The Overall RAG can be shown as a text object.

Please help.

Note: We have around 5 million records in the measure table, so the solution needs to be optimised.

3 Replies
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

There you go:

MC.PNG

Create your logics at script level will do.

For the text box, use mode to identify the color to be displayed. 

Refer qvw attached to view the logics.

Thanks and regards,

Arthur Fong  

ipsita26
Partner - Contributor
Partner - Contributor
Author

hi, i do not have any facility to see the QVW which you have shared, as I have desktop version and we work on QlikSense enterprise version. Can you please write the solution here.

Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Refer qvf attached below as reference.

Thanks and regards,

Arthur Fong