Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
rkspareek1992
Partner - Creator
Partner - Creator

Sum of Rows

Hi,

My expression is:

Sum({<LinkDate={'<=$(vDate)'}>}TSL)*only({<Date_Currency={'$(vMaxCurrencyDate)'}>}Rate_Currency1)

and I am  not getting sum of expression.

vDate is DataIland Date,


only({<Date_Currency={'$(vMaxCurrencyDate)'}>}Rate_Currency1)

is for selected Date_Currency and by default should show rate of max of Date_Currency.

Kindly suggest change in my expression.

14 Replies
sunny_talwar

You mean you are unable to get the correct totals or you are not getting a number on any row?

rkspareek1992
Partner - Creator
Partner - Creator
Author

I am not getting total.

Capture2.PNG

sunny_talwar

May be this

Sum(Aggr(Sum({<LinkDate={'<=$(vDate)'}>}TSL)*only({<Date_Currency={'$(vMaxCurrencyDate)'}>}Rate_Currency1), YourChartDimensionsHere))

rkspareek1992
Partner - Creator
Partner - Creator
Author

Its not working....

Showing 0 as total.

sunny_talwar

Is this a straight table? Set Total Mode to Sum of rows on the expression tab to see if that works

rkspareek1992
Partner - Creator
Partner - Creator
Author

Currently I am using straight table, but  I want to  use this expression in qliksense charts.

I have tried in  expression  tab by selection sum of  rows, then its  showing, But I wants same numbers in expression total.

Kindly suggest.

sunny_talwar

What all are your dimensions?

rkspareek1992
Partner - Creator
Partner - Creator
Author

I can select any dimension for ex. Co.Code, Plant, Country etc.

sunny_talwar

Dimension in your straight table chart