Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
subrato312
Contributor II
Contributor II

Slider to filter Top Customer

I have a bubble chart for top customers with Profit and Sales as X & Y axis and Profit% as size of bubble. 

I want a slider to filter customers with sales value e.g. customer with sales more than 10,000 only.

I tried by creating a variable as vTest and defined it as 1. Then I changed the measure 'Sales ' as sum(Sales)*vTest but it is not working properly when I am sliding the slider. The sales values are changing from thousand to millions and customers are not not reducing as per their sales

I am using qsVariable extension. Please let me know how to make this correct

Thanks

Labels (1)
3 Solutions

Accepted Solutions
Mark_Little
Luminary
Luminary

Hi,
You are just timing your expression by the number in your variable.
Try
If(SUM(Sales) <= $(vTest),
SUM(Sales))

Mark

View solution in original post

OmarBenSalem

Try to change ur measure as follow:

 

sum({<Customer={"=sum({<Customer>}Sales)>'$(vTest)'"}>}Sales)

View solution in original post

3 Replies
Mark_Little
Luminary
Luminary

Hi,
You are just timing your expression by the number in your variable.
Try
If(SUM(Sales) <= $(vTest),
SUM(Sales))

Mark
OmarBenSalem

Try to change ur measure as follow:

 

sum({<Customer={"=sum({<Customer>}Sales)>'$(vTest)'"}>}Sales)