Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Black_Hole
Creator II
Creator II

Box Chart with expression 'Sum'

Hello all,

I would like to put in my QlikView dashboard a "box chart" using an expression.

The expression is detailed below:

=if(Len(InvoiceNo)=0, sum(CreditsAmount),sum(DeditsAmount))

(The result to display is equal to the sum of Debits and Credits.

Please could you tell me if I can do that using just a box and not a table box.

Thank you in advance for your help.

Labels (1)
3 Replies
martinpohl
Partner - Master
Partner - Master

with your expression there is a problem that the if-condition is a geenral condition (not addressed to one line)

so you need to calculate this line by line (invoiceno by invoiceno)

=sum(aggr(if(Len(InvoiceNo)=0, sum(CreditsAmount),sum(DeditsAmount)),InvoiceNo))

Regards

Black_Hole
Creator II
Creator II
Author

Hello @martinpohl ,

Thank you for your reply.

So, If I have an general conditional  then I cannot use a box to display the total reusult of this expression.

Is it that ?

Thank you in advance for your help.

Brett_Bleess
Former Employee
Former Employee

You can try the Text Object, but you likely need to make a selection somewhere to get the expression you have to calculate, whereas the one the partner gave you is based upon Set Analysis, so things will calculate with no selections...

Here is a Design Blog post on Set Analysis as well as the Help link below that:

https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344

https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/ChartFunctions/...

Hopefully this helps a bit more.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.