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

Creating a "Total" box based on amount fields

I am new to Qlik so this may be simple...

I am looking to create a statistics box at the top that will show the total sum of a certain field given a condition. For example, I want to create a box that just has "Total Assets: $650.00", and another one that would say "Total Liabilities: $50.00". Hopefully this is a simple solution!

Account TypeAccount NumberAmount

Asset

1100$100.00
Asset1200$350.00
Liability2200$50.00
Equity3410$105.00
Asset1300$200.00
3 Replies
el_aprendiz111
Specialist
Specialist

Hi,

texbox1

=sum({<[Account Tpe={'Assent'}>}Ammount)

textbox2

=sum({<[Account Tpe={'Liability'}>}Ammount)

el_aprendiz111
Specialist
Specialist

Hi,

texbox1

=sum({<[Account Tpe]={'Assent'}>}Ammount)

textbox2

=sum({<[Account Tpe]={'Liability'}>}Ammount)

devarasu07
Master II
Master II

Hi,

Try like below,

Text Box object: 1

='Total Liabilities: '& num(sum({<[Account Type]={'Liability'}>}Amount),'$#,##0.00')

Text Box object: 2

='Total Assets: '& num(sum({<[Account Type]={'Asset'}>}Amount),'$#,##0.00')

1.png

Thanks,

Deva