Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

need help


Hi I have a requirement like below

CountrySTARTTIMEENDTIMESALES/ORDERS
SALES_US06/24/1406/24/14100
ORDERS_US06/24/1406/24/14200
SALES_UK06/24/1406/23/14150
ORDERS_UK06/23/1406/24/14250
SALES_IN06/24/1406/23/1480
ORDERS_IN06/24/1406/24/14120

output looks like below

CountrySalesOrdersSalesStatus(If STARTTIME=ENDTIME I need to display Green Traffic light else red Red Traffic light)
US100200
  • (green color Traffic light)
UK150250
  • (red color)
IN80120
  • (redcolor)

same logic as for Order Status also.

Can any one help me out thanks in advance

10 Replies
MarcoWedel

Hi,

even if your thread is already answered, just another solution:

LOAD SubField(Country, '_', 2) as Country,

     SubField(Country, '_', 1) as Type,

     STARTTIME = ENDTIME as Status,

     [SALES/ORDERS]

FROM [http://community.qlik.com/thread/122988] (html, codepage is 1252, embedded labels, table is @1);

pivot table:

QlikCommunity_Thread_122988_Pic1.JPG.jpg

created like this:

QlikCommunity_Thread_122988_Pic3.JPG.jpg

QlikCommunity_Thread_122988_Pic4.JPG.jpg

QlikCommunity_Thread_122988_Pic5.JPG.jpg

'qmem://<bundled>/BuiltIn/led_'&If(Status,'g','r')&'.png'

QlikCommunity_Thread_122988_Pic6.JPG.jpg

hope this helps

regards

Marco