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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
rpavan17
Creator
Creator

Refer Calculated Dimension Value for Color Expression Qlik Sense Pie Chart

Hi,

Can i get help  to Refer Calculated Dimension Value for Color Expression Qlik Sense Pie Chart.

=if(Status_Name='Inflow',(IF(Workflow_Age1 >= 0 and Workflow_Age1 <= 3, '0-3 Days',

IF(Workflow_Age1 >=4 and Workflow_Age1 <= 6, '4-6 Days',

IF(Workflow_Age1 >=7 and Workflow_Age1 <= 9, '7-9 Days',

IF(Workflow_Age1 > 9,  '>=10 Days' )) ) )))

I would like to have if Dimension Value = '0-3 Days' then green color... etc..,

Thanks

7 Replies
agigliotti
MVP
MVP

what about this in color expression:

=if( Status_Name = 'Inflow' and ( Workflow_Age1 >= 0 and Workflow_Age1 <= 3 ), green(),

and so on...

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
priyalvp24
Creator
Creator

Use peek & match function.

rpavan17
Creator
Creator
Author

Could you please post the formula using this

priyalvp24
Creator
Creator

=IF(Workflow_Age1 >= 0 and Workflow_Age1 <= 3,

pick(match(Status_Name ,'Inflow' ),green()) and so on...

rpavan17
Creator
Creator
Author

Color not changed using this

priyalvp24
Creator
Creator

You have to use Status_Name as pie chart dimension

ChennaiahNallani
Creator III
Creator III

in Script table:

IF(Workflow_Age1 >= 0 and Workflow_Age1 <= 3, '0-3 Days',

IF(Workflow_Age1 >=4 and Workflow_Age1 <= 6, '4-6 Days',

IF(Workflow_Age1 >=7 and Workflow_Age1 <= 9, '7-9 Days',

IF(Workflow_Age1 > 9,  '>=10 Days' )) ) ) as Workflow_Age_Days

=if(Status_Name='Inflow',Workflow_Age_Days)

Create Master Dimension with Workflow_Age_Days field and use visual color like below exp..


Drag master dimension field in your chart.

Capture.PNG