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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
megan_deboer
Partner - Contributor II
Partner - Contributor II

Sum If Formula

Hi Everyone:

I'm trying to write a sum if formula to add up the total number that has a quarter equal to Q2 2016.

This is what I have so far and its saying error because If need 2-3 parameters. Any help would be appreciated. Thank you!

=Sum(if(Quarter='Q2 2016'),Number)

This is what my data looks like:

QuarterDescriptionNumber

Q1 2016

MTR130
Q2 2016Rule463
Q1 2016Rule150
Q3 2016MTR105
1 Solution

Accepted Solutions
Anil_Babu_Samineni

May be this?

Sum({<Quarter = {'Q2 2016'}>}Number)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

4 Replies
Anil_Babu_Samineni

May be this?

Sum({<Quarter = {'Q2 2016'}>}Number)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anil_Babu_Samineni

Or this, In your way

=Sum(if(Quarter='Q2 2016',Number))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
megan_deboer
Partner - Contributor II
Partner - Contributor II
Author

Yes! Thank you so much!

megan_deboer
Partner - Contributor II
Partner - Contributor II
Author

This worked as well! Thank you!