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

Displaying Value on Text Object

Hi Qlikview Community,

I need to display the total of my Current Tax and Penalty on a Text Object but I don't know how.

I also attached the table.

Thanks in Advance Qlikview Community

Untitled.png

1 Solution

Accepted Solutions
sunny_talwar

Try this in a text box object:

Current Tax Total: =Sum(Aggr(YourCurrentTaxExpression, Year, Quarter, Payor))

Penalty Total  =Sum(Aggr(YourPenaltyExpression, Year, Quarter, Payor))

HTH

Best,

Sunny

View solution in original post

6 Replies
danieloberbilli
Specialist II
Specialist II

try sth like

=sum([Current Tax])

or

=sum({1} [Current Tax])    

if you want to ignore any user selections


if you would like to show both in the same text box then maybe sth like:

='Current Tax: '& sum([Current Tax])  & ' | ' & 'Penalty: '& sum(Penalty)

Anonymous
Not applicable
Author

If you want to show both in the same text object, use this text there:

='Current Tax: ' & <expression for the current tax, same is in the table> & chr(10) & 'Penalty: ' & <expression for Penalty>

sunny_talwar

Try this in a text box object:

Current Tax Total: =Sum(Aggr(YourCurrentTaxExpression, Year, Quarter, Payor))

Penalty Total  =Sum(Aggr(YourPenaltyExpression, Year, Quarter, Payor))

HTH

Best,

Sunny

Not applicable
Author

Hi Qlikview Community,

Thanks for helping me.

jagan
Luminary Alumni
Luminary Alumni

Hi,

You can directly use Sum without Aggr() like below

Current Tax Total: =Sum([Current Tax])

Penalty Total  =Sum(Penalty)


Aggr() will have performance issues, also there is no necessity of using in the current scenario.


Hope this helps you.


Regards,

Jagan.



Not applicable
Author

Hi Jagan,

Thanks for sharing your idea and giving some advice to me