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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
adiarnon
Creator III
Creator III

expression inline

hi,

im tring to add an expression inline-

DEL_INLINE:
LOAD * INLINE
[_DEL_View,_DEL,_Del_Measure
Quantity,1,num(sum({<SO_DELIVERED_STATUS=,[DELIVERY STATUS]=,SO_TYPE-={'1SLS','SRV'}>}SO_QTY_DEL),'#,##0')
Sale (K$),2,num(sum({<SO_DELIVERED_STATUS=,[DELIVERY STATUS]={'Delivered but Late','Delivered on time'},SO_TYPE-={'1SLS','SRV'}>}SO_LINE_SALES_VALUE_USD)/1000,'#,##0')
STD (K$),3,num(sum({<SO_DELIVERED_STATUS=,[DELIVERY STATUS]={'Delivered but Late','Delivered on time'},SO_TYPE-={'1SLS','SRV'}>}SO_LINE_STD_VALUE_USD)/1000,'#,##0')
]
;

i have two problem:

1. in my expression i have , so its taking the expression until the ,

2. i have in my set analysis field with space so i added [ ] and  its taking the expression until the ]

what can i do?

adi

4 Replies
Frank_Hartmann
Master II
Master II

try to set the expression in between quotation marks.

hope this helps

gautik92
Specialist III
Specialist III

I dont think you can use set analysis in scripting

adiarnon
Creator III
Creator III
Author

tnx,

its resolve the , problem

but not the []

sunny_talwar

Try this may be:

DEL_INLINE:

LOAD * INLINE "

_DEL_View|_DEL|_Del_Measure

Quantity|1|num(sum({<SO_DELIVERED_STATUS=,[DELIVERY STATUS]=,SO_TYPE-={'1SLS','SRV'}>}SO_QTY_DEL),'#,##0')

Sale (K$)|2|num(sum({<SO_DELIVERED_STATUS=,[DELIVERY STATUS]={'Delivered but Late','Delivered on time'},SO_TYPE-={'1SLS','SRV'}>}SO_LINE_SALES_VALUE_USD)/1000,'#,##0')

STD (K$)|3|num(sum({<SO_DELIVERED_STATUS=,[DELIVERY STATUS]={'Delivered but Late','Delivered on time'},SO_TYPE-={'1SLS','SRV'}>}SO_LINE_STD_VALUE_USD)/1000,'#,##0')

" (delimiter is |);