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

Variable as expression in Chart

Dear Experts,

I am storing a values in Variable says Total Sale and now I have to use this variable as expression in Bar Chart as expression across a Dimension say Zone wise...

But when I am using in Bar Chart taking dimension Zone and expression as VTotalSales...

It is showing me same figure across all zones...

Pls suggest, why it is?

Regards,

Balraj

4 Replies
arulsettu
Master III
Master III

HI

check your variable

and expression should be $(VTotalSales)

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Of your expression is Sum(Total Sales), then you are telling QV to ignore the chart dimensions, so it will be the same for all dimension values

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable
Author

Jonathan,

Is it solvable??

SunilChauhan
Champion II
Champion II

in variable expression itselef write

aggr(Sum(Total Sales),Zone )


or simply use sum(Sales) as variable expression

Sunil Chauhan