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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Select value for chart by GetFieldSelections()

Hi there,

I am quiet new to qlickview hence i got a question..

I have got two items in my sheet

a. Listbox: $Field

b. Chart

The user should be able to select a field in the listbox over which the graph will be calculated.

eg. the listbox contains the values

grand_total

grand_total_net

subtotal

If the user selects grand_total, the graph shows grand_total over time.

I have tried to put in the expression field of the graph the following expression:

SUM(GetFieldSelections($Field))

but it says "No data to display"

Anyone can help? thanks in advance!

Labels (1)
1 Solution

Accepted Solutions
Miguel_Angel_Baeyens
Support
Support

Hi,

Try the following instead:

Sum($(=GetFieldSelections($Field)))

Hope that helps.

Miguel

View solution in original post

2 Replies
Miguel_Angel_Baeyens
Support
Support

Hi,

Try the following instead:

Sum($(=GetFieldSelections($Field)))

Hope that helps.

Miguel

Not applicable
Author

Hi,

Try using variable

DocumentProperties --> Variables --> New --> vTest

In vTest give value = GetFieldSelection($(Field))

In Chart expression take =Sum($(vTest))

May be this helps you.

Thanks & Regards,

Satish.A