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: 
desert_dweller
Contributor
Contributor

Line Chart with selectable measures

Hello-I'm wondering if it is possible to have user select which measures to populate in a line chart? So if I create a line chart that has 8-9 possible measures user could someone toggle which specific measures they wanted displayed on line chart. I've read this is possible with Vizlib but not seeing the option.

Thanks!

Labels (2)
1 Solution

Accepted Solutions
rubenmarin
MVP
MVP

Hi, I dont know with vizlib, maybe there is a 'Show codition' option like the default table.

With default line chart you can add a variable object and add diffrent buttons, each one makes the variable to store the variable of an expression previously loaded.

In example having a variable Amount that stores Sum(Amount) and a variable Customer that stores Count(Customer).

A variable vChartExpression in a variable object with 2 button, one that set the variable to Amount and another to Customer.

The expression on the line chart may be: $($(vChartExpresssion))

 

Or another option to set the varible just with numbers, 1 for first button and 2 for the 2nd button and the line chart expression like:

Pick($(vChartExpresssion),Sum(Amount),Count(Customer))

View solution in original post

2 Replies
rubenmarin
MVP
MVP

Hi, I dont know with vizlib, maybe there is a 'Show codition' option like the default table.

With default line chart you can add a variable object and add diffrent buttons, each one makes the variable to store the variable of an expression previously loaded.

In example having a variable Amount that stores Sum(Amount) and a variable Customer that stores Count(Customer).

A variable vChartExpression in a variable object with 2 button, one that set the variable to Amount and another to Customer.

The expression on the line chart may be: $($(vChartExpresssion))

 

Or another option to set the varible just with numbers, 1 for first button and 2 for the 2nd button and the line chart expression like:

Pick($(vChartExpresssion),Sum(Amount),Count(Customer))

desert_dweller
Contributor
Contributor
Author

Thank you so much, I used variables and the show condition and accomplished this.