Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis with bookmark and inputfield

Hi All,

there is a table with 3 dims: SalesRep, ProductQty, Price. I'm looking for an expression that wil let me get intersection of current selection and bookmark, and be affected by inputfield change - in the below example "John" is a bookmark on John as a SalesRep.

Script:

---------

INPUTFIELD Price;

LOAD * Inline [

SalesRep, ProductQty, Price

John, 10, 7

Mary, 18, 5

];

Expression:

-----------------

SUM({$*John} ProductQty * Price)

Regards,

Przemek

16 Replies
Not applicable
Author

No attachment...

orital81
Partner - Creator III
Partner - Creator III

I attached it after I have eddited the last comment.

Note that you will need a coment bellow the =Price.

Otherwise it wont work.

=Price

//

Not applicable
Author

My pivot cannot show price thus I'll need to look for a different solution. Anyway, I don't get why the expression doesn't wotk without the inactive comment...

orital81
Partner - Creator III
Partner - Creator III

I know, it's wierd. but that's the only way it works (inactive comment).

Could be some bug in the program.

Anyway, If you don't want to show price you can set it's column length to minimum

and set the text color to white (workarround to make pivot table column invisable)

Not applicable
Author

Probably, a bug. The problem is I got many prices and many reps so would get hundreds of records and the pivot has to be synthetic. I'll restart the discussion - maybe somebody will come up with the final solution. Many thanks for your help!

Not applicable
Author

Anyone any idea, please? We can't get the final solution yet.

orital81
Partner - Creator III
Partner - Creator III

No Problem.

Good Luck