Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
keithblythe
Contributor
Contributor

Summarizing values in bar chart

I am new to Qlik Sense and struggling with the following concept:

I am producing a bar chart which has data similar to the following:

Month-YearCreate CountComplete Count
1/1/201753
2/1/201786
3/1/201741
4/1/201789

 

I want to create a 3rd measure which sums each count.  For example the calculated 3rd measure in 2/1/2017 will be:

Sum(CreateCount) - Sum(CompleteCount)

The value calculated in 1/1/2017 will be: 5-3

The value calculated in 2/1/2017 will be:  (5+8) - (3+6)

The value calculated in 3/1/2017 will be:  (5+8+4) - (3+6+1)

The value calculated in 4/1/2017 will be: (5+8+4+8) - (3+6+1+9)

How can I accomplish this in Qlik Sense?

Thanks

 

1 Solution

Accepted Solutions
sunny_talwar

Maybe this

RangeSum(
RangeSum(Above(Sum(CreateCount), 0, RowNo())),
-RangeSum(Above(Sum(CompleteCount), 0, RowNo()))
)

View solution in original post

3 Replies
sunny_talwar

Maybe this

RangeSum(
RangeSum(Above(Sum(CreateCount), 0, RowNo())),
-RangeSum(Above(Sum(CompleteCount), 0, RowNo()))
)
keithblythe
Contributor
Contributor
Author

Your suggestion worked.  Thank you!

ddpotato
Contributor
Contributor

Hi Keith, 

I think you can try this:

Add another measure with the following syntax:

RangeSum(Above(Sum(CreateCount), 0, RowNo()))-RangeSum(Above(Sum(CompleteCount), 0, RowNo()))

 

Hope it solves your question.