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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Gauge Chart Expression not display the data

Hi community members,

I have the fields costs,sales,margin in my table, and when I am trying to create a gauge chart with the expression Sum({$<Years={2007}Sales)/Sum({$1}Sales), I am unable to get the gauge chart ,it displaying the not data to display .

In the same way Sum({$<Years={2007}Costs)/Sum({$1}Costs)

6 Replies
MayilVahanan

Hi

why you using $1 in Sum({$1}Sales)? Can you say it?

$1 -> previous selection value..

Edit:

Sum({$<Years={2007}Sales)/Sum(total Sales)

This will give result..

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

=Sum({$<Years={2007}Sales)/Sum(TOTAL Sales)

OR

=Sum({$<Years={2007}Sales)/Sum({1} Sales)

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

Hi I have done like this I got the below gauge chart, thanks ramasamy

Sum({$<Years ={2008}>}Sales)/Sum(Sales)

jagan
Partner - Champion III
Partner - Champion III

Hi Ramesh,

I think you missed TOTAL or {1} in the denominator of the expression.

Regards,

Jagan.

Not applicable
Author

Thanks jagan,but I got the gauge chart correct only......I have another doubt, I have Sales field and Bill field,

when I am taking a chart with dimension as year and expression as Sum(sales), the sales bar  is showing the data same as Bill field data, can you suggest me, where might be the problem

jagan
Partner - Champion III
Partner - Champion III

Hi,

Can you post sample file with explanation.

Regards,

Jagan.