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

Qlik Sense: sum()

Hello everyone,

Currently, I'm encountering an issue with the function sum() with the "indicator".

With the dynamic table, we have "Total function" and I don't this issue because with "Total function" the table is capable to sum each line and ignoring null values:

QlikSense-pic1.PNGQlikSensepic2.PNG

function: if(Amount_Eur = Solde, null(), sum(Solde))

But when I try to make this same sum with "indicator", I don't get the same sum because this function still summing null value:

QlikSensepic3.PNG

Do we have something like "Total function" with the "indicator"?

Thanks in advance.

Regards

6 Replies
OmarBenSalem
Partner - Champion II
Partner - Champion II

Try soMething like this:


Sum({<dimension-={"null()"}>}measure)

Not applicable
Author

Hello Omar Bensalem,

Thank for your answer.

It's the first time I saw a function like that.

what's mean: {<dimension-={"null()"}>}

Until now, I always used some simple function with: if()

Thank in advance.

Regards

OmarBenSalem
Partner - Champion II
Partner - Champion II

Did it do the trick for you?

jugrimault
Partner - Contributor III
Partner - Contributor III

This is a Set Analysis expression, it is powerful. In this example you calculate your formula but you don't take care about null values.

Documentation on the help:

https://help.qlik.com/en-US/sense/3.1/Subsystems/Hub/Content/ChartFunctions/SetAnalysis/set-analysis...

Or helpful doc:

https://community.qlik.com/docs/DOC-4951

Rgds.

brunobertels
Master
Master

Hi Kenny

What's Omar gave you is called a Set Analysis

see this doc for further information.

https://community.qlik.com/blogs/qlikviewdesignblog/2015/02/16/set-analysis

I see your qlik sense version is in french ; you can also post your question in the french forum

regards

vinieme12
Champion III
Champion III

That is expression search

The Expression Search

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.