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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Chanty4u
MVP
MVP

RE:Selected values

Hi all,

I have small pivot table table and  one listbox  so   i want to show the data as per listbox values selection

Listboxvalues

Above50%

Below50%

All

so if  i select  any value that should be displayed as per selection.

Best

chanty

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

7 Replies
kristof_j
Creator III
Creator III

Hi Chanty 4u

I changed your script a bit and added a dual for your percentages.

Then I changed the dimensions using the dual with a pick statement

Does this help?

Anil_Babu_Samineni

Chanty, might be ad hoc Reports

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
tresB
Champion III
Champion III

May be like in attached qvw.

Chanty4u
MVP
MVP
Author

Thanx.

But in your Qvw its not working for below 50%

below.PNG

tresB
Champion III
Champion III

Small correction. Try:

if(perce='all' or count(perce)>1,actual/trget,

If( Left(perce,5)='above', If(actual/trget>left(right(perce,3),2)/100, actual/trget,0),

  if( Left(perce,5)='below', If(actual/trget<left(right(perce,3),2)/100,actual/trget,0))))

Chanty4u
MVP
MVP
Author

yeah.tresesco‌ its still not working .As expected. And one more thing is i don't want extra column for this ?

how it is possible ?

it showing all values if i select in listbox .

all.PNG

tresB
Champion III
Champion III

Like this?