Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
Gartner® Magic Quadrant™: 15 YEARS A LEADER - GET THE REPORT
cancel
Showing results for 
Search instead for 
Did you mean: 
Kohli
Creator II
Creator II

Create a filter with Variables

I have KPI with some values  (values in Millions). I want create one filter and when select on filter it shows the drop down  like Lacks, Thousands, Hundred. When select the Lack , KPI value convert into Lacks,  select the Thousand KPI convert into Thousands Etc.  How can i create that variable.

Labels (1)
2 Replies
renuka_sasikumar
Creator III
Creator III

Hi,

First create an Inline Table.

Divider:
LOAD * INLINE [
Denomination, Abbervation_Unit, DenominationValue
Milion, M, 1000000
Thousand, K, 1000
Absolute, , 1
];

Then create one varilable as "vNumDenominator"='=Max(DenominationValue)'

Then use that variable in expression:

SUM(sales)/vNumDenominator.

 

Hope this help.

 

Regards,

Renuka S

 

Vegar
MVP
MVP

In QlikView there is an object type called inputbox . The input box allow you to predefine a list of valid values for your variable and present the variable with an drop down menu for the values.

Expression: Sum(Amount) * $(vVariable)