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: 
vikas_nandanwar
Creator II
Creator II

Selection of Different measures in single filter

Hi,

I have a database with column names as listed below -

I've created all my charts using USD Column as main measure and  Cts as alternate measure.

When viewing i need to change my measure in all columns to Cts or USD,

Is it possible in a single button I can change this in a single filter

CustomerCountrysalesmanUSDCts
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

If I understand you correctly you want a button (or a set of buttons) to change the measure used in the line chart. That can be done using an extension like qsVariable‌ and a variable. See attached example.


talk is cheap, supply exceeds demand

View solution in original post

8 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

If I understand you correctly you want a button (or a set of buttons) to change the measure used in the line chart. That can be done using an extension like qsVariable‌ and a variable. See attached example.


talk is cheap, supply exceeds demand
vikas_nandanwar
Creator II
Creator II
Author

The app you shared is showing me invalid visualization

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

That's because it's using the qsVariable extension. You need to install that extension.


talk is cheap, supply exceeds demand
vikas_nandanwar
Creator II
Creator II
Author

how to download it?

can you provide me the link for that

vikas_nandanwar
Creator II
Creator II
Author

I've added extension and can visualize it in my app.

How to add that to my data set

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Your data set can only contain data. Extensions are not part of the data. What are you trying to do?


talk is cheap, supply exceeds demand
vikas_nandanwar
Creator II
Creator II
Author

Now I have 2 alternative measures to be shown in my visualization

1. USD

2. Cts

Expression for USD = Sum({<Ptype={"Sal"}>} SalesAmount)

Expression for Cts = Sum({<Ptype={"Sal"}>} Qty)

I want USD and Cts Buttons (qsvariable)

How to add this?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Look at the example I posted. The properties of the qsVariable object will show you that I defined a variable called vMeasure there and that I added two values for that variable in the settings. The variabel vMeasure is then used as measure in the bar char using the expression $(vMeasure).


talk is cheap, supply exceeds demand