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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Competitor analysis by alternate state

In the demo, there is only 1 Fact table, and there are 2 dimensions and 1 metric field in the table

* Agency, agency code (A - E)

* Hotel, hotel code (1 - 5)

* Booking, number of booking made by agency to hotel

first, client will select target hotel in listbox Hotel; then, select competitor hotels in listbox Hotel-CompSet;

Chart 1 shows agencies (3,4) booking to target hotel (A).

Chart 2 shows agencies (1,2,3,4,5) booking to competitor hotels (B, C, D). I defined an alternate state called CompSet and applied it to listbox Hotel-CompSet and Chart 2;

I want to show agencies (1,2,5) booking to competitor hotels (B, C, D) but not booking to target hotel (A) in Chart 3, but I'm unable to make the right expression.

Please can you advise? Thank you.

1 Solution

Accepted Solutions
settu_periasamy
Master III
Master III

Try this expression. in chart 3

=sum({<Hotel=P([CompSet]::Hotel),Agency=E(Agency)>} Booking)


Capture.JPG

View solution in original post

2 Replies
settu_periasamy
Master III
Master III

Try this expression. in chart 3

=sum({<Hotel=P([CompSet]::Hotel),Agency=E(Agency)>} Booking)


Capture.JPG

Not applicable
Author

Great, thanks for your help, Sethu.