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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
sdtfll
Contributor III
Contributor III

how to write the sum+condition chart formula?

there are two columns:

column: group (some cells with value, but some without value and is null)

column: amount (numbers)

 

now want to sum the amount for group which the value is not null,

how to write the chart formula?

I tried like this but failed:

sum({isnull(group)=-1}amount)

Labels (1)
  • Chart

1 Solution

Accepted Solutions
BrunPierre
Partner - Master II
Partner - Master II

Perhaps with Sum(IF()) expression or Set Analysis like this

Sum(IF(Not IsNull(group),amount))

or

Sum({$<group={"=Len(Trim(group))=0"}>} amount)

View solution in original post

3 Replies
BrunPierre
Partner - Master II
Partner - Master II

Perhaps with Sum(IF()) expression or Set Analysis like this

Sum(IF(Not IsNull(group),amount))

or

Sum({$<group={"=Len(Trim(group))=0"}>} amount)

sdtfll
Contributor III
Contributor III
Author

Thanks so much!

Alagumurugan
Contributor
Contributor

Hi @sdtfll,
Please Structure the formula correctly. It will work.

Thanks,
Murugan