Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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