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: 
Not applicable

Chart Problem

I have a trellis chart that simply shows sales by month by Salesman. The chart works fine. As soon as I add a cummulative sales line using:

rangesum(top(Sales, 1, RowNo() -0))

all Salesman show up even when they do not have any sales.

Why?

Thanks,

Stephen

Labels (1)
1 Reply
hdonald
Creator
Creator

Hi,

The 'Top(Sales,1,RowNo()-0)' bit seems to force every Salesman/Month combination to be displayed, overriding the chart settings for suppress zero/null values.

Adding a further aggregation e.g. aggr(  rangesum(top(Sales, 1, RowNo() -0))  ,Salesman,Month) may solve the problem,

Regards,

HD