Creating Traffic lights in Qliksense Table-
I have some data of Sales and Product.
Step1- Select the Table from the charts
Step2- From the data select the Product Group as dimension and Expression like as to calculate Profit-
=(sum(Sales)-Sum(Cost))/Sum(Sales)
Step3- Change the properties of Measure as like below-
This formatting will help you to show profit in %.
Step4- Create another measure and insert the Unicode symbol for Black circle i.e. Chr(11044).
=if(((Sum(Sales)-Sum(Cost))/Sum(Sales))>0.6,lightgreen(),
if(((Sum(Sales)-Sum(Cost))/Sum(Sales))>0.4 and ((Sum(Sales)-Sum(Cost))/Sum(Sales))<0.6, Yellow(),
if(((Sum(Sales)-Sum(Cost))/Sum(Sales))<0.4, lightRed()
)
)
)
You will get result as-
This is created by expression as conditional, so it is not possible to select direct from table. You have to create some flag for this and take that flag in filter pane to filter the traffic light.
How can we filter the traffic lights in the table?
This is created by expression as conditional, so it is not possible to select direct from table. You have to create some flag for this and take that flag in filter pane to filter the traffic light.