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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis - little problem

Hi,

I am using Set analysis to compare the amount of reservation of an hotel vs the hotels in the same region.

I have a variable Vregion = to only(Region).

The name of the hotel selected is SmNomHotel.

The expression below does not work (messages too few parameters .... )

sum({$< Region = {$(Vregion)} , SmNomHotel = >} ([Montant de la réservation] / 1000))

Thanks for your help.

Philippe

Labels (1)
1 Solution

Accepted Solutions
amit_shetty78
Creator II
Creator II

Pls try if this works or as suggested pls upload the your qvw.

sum({$< Region = {'$(Vregion)'} , SmNomHotel = >} ([Montant de la réservation] / 1000))

Thanks, Amit.

View solution in original post

6 Replies
Not applicable
Author

Try this maybe it work

sum({$< Region = {$(Vregion)} , SmNomHotel >} ([Montant de la réservation] / 1000))

Talha

Not applicable
Author

That does not solve my problem.

Philippe

Not applicable
Author

Hi Philippe,

can you post your .qvw document?

Roberta

amit_shetty78
Creator II
Creator II

Pls try if this works or as suggested pls upload the your qvw.

sum({$< Region = {'$(Vregion)'} , SmNomHotel = >} ([Montant de la réservation] / 1000))

Thanks, Amit.

markmccoid
Partner - Creator II
Partner - Creator II

Hi,

Make sure your variable "Only(Region)" is being evaluated in the expression. I usually will put an equal sign in the variable definition "=Only(Region)".

Also, when I have a complex expression I will not put a label on the expression so that I can see how QV is evaluating my code.

Mark

Not applicable
Author

Amit,

That works perfectly .....

Thanks

Philippe