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

Announcements
Recent discussions are temporarily down — we're working on it and will be back shortly.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Conditional Sum

Hi,

Can somebody assist me with the correct syntax for the following expression, I have an error in the expression:

If(Sum(([Bales Loaded])-Sum([Bales Delivered]))<=0,0,Sum([Bales Loaded])-Sum([Bales Delivered]))

Thank you

Labels (1)
1 Solution

Accepted Solutions
PrashantSangle
MVP
MVP

Hi,

Use this,

If((Sum([Bales Loaded])-Sum([Bales Delivered]))<=0,0,(Sum([Bales Loaded])-Sum([Bales Delivered])))

regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

2 Replies
PrashantSangle
MVP
MVP

Hi,

Use this,

If((Sum([Bales Loaded])-Sum([Bales Delivered]))<=0,0,(Sum([Bales Loaded])-Sum([Bales Delivered])))

regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

Thank you, works perfectly