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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
SilviyaK
Contributor III
Contributor III

RangeSum with 2 dimensions does not work

Hi all,

I have a bar chart where I have the following two dimensions:

Month

ScoreType

and a Measure:

count(ContactID)

I need to see this as a stacked bar chart and cumulative. If I use the below expression and only the Month dimension, the chart is showing accumulated values:

RangeSum(above(count(ContactID), 0, rowno()))

The moment I add the ScoreType back though, it doesn't work anymore, it is not cumulative anymore and it shows incorrect numbers.

I tried all kinds of aggregations but they also seem to be not working at all (few examples below):

RangeSum(above(sum(aggr(count(ContactID),Month,ScoreType)), 0, rowno()))

RangeSum(above(sum(aggr(count(ContactID),Month,ScoreType)), 0, rowno(total)))

sum(aggr(RangeSum(above(count(ContactID), 0, rowno(total))),Month,ScoreType))

 

Could you please help? Thanks!

 

Labels (2)
2 Replies
MatheusC
Specialist II
Specialist II

maybe like this:

Aggr(RangeSum(Above(count(ContactID), 0, RowNo())),ScoreType, (Month, (Desc)))

- Regards, Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
marcus_sommer

You may try: RangeSum(above(TOTAL count(ContactID), 0, rowno()))