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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
rathnam_qv
Creator
Creator

Expression

Hi all,

i hv Quantity field with all +ve values.

Transaction Type field there.

i want to write like if(Transaction Type='SALESORD',Quantity)...but i want to show quantity as -ve.

please help me how to do that.

3 Replies
MK_QSL
MVP
MVP

if(Transaction Type='SALESORD',-Quantity)

alexandros17
Partner - Champion III
Partner - Champion III

if([Transaction Type]='SALESORD',-1*Quantity)

Not applicable

try this as well

Sum(if(Transaction Type='SALESORD',Quantity))* -1

thanks

Michael