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

Set Analysis Exclusion to show Item that have no details in another table

I have 3 tables (I have simplified the data) : "Transactions" and "Stations" and "Cardlock".

I want to show Stations that are not present in table "Cardlock" and that do not have Transactions.

I tried to achieve this in a chart table with a set analysis and a count formulas but I am still not able to make it works.

I don't want to change my tables in the script, I want to use set analysis or solution other than script.

How to show in a chart table, Stations that are not present in table "Cardlock" and that do not have Transactions?

Transactions 

Date_TrStationAmount
2014-01-12007100
2014-03-06121200
2014-05-23007300

Stations 

StationName
007Montreal
084Quebec
121Laval
171Boston
186Hull
202Ottawa

Cardlock  (I only have cardlock in that table)

StationFlag_Cardlock
084Yes
171Yes

Results of what I want to show!!!!

StationNameCount Stations without Transaction
186Hull    1
202Ottawa    1
Total    2

Thank you!

Patrick

1 Solution

Accepted Solutions
rbecher
MVP
MVP

I found a better one:

=sum({<Station=E({<Date_Tr={*}>}) * E({<Flag_Cardlock={Yes}>})>} 1)

Astrato.io Head of R&D

View solution in original post

3 Replies
rbecher
MVP
MVP

Hi Patrick,

maybe something like this:

=sum({<Station=E({<Date_Tr={*}>}), Name=E({<Flag_Cardlock={Yes}>})>} 1)

- Ralf

Astrato.io Head of R&D
Not applicable
Author

Thanks Ralf!

Your solution works in my simplified sample.  In my true model too as I had to add more restrictions.

I was able to find a solution just after my post but I will try to simplify my set analysis formula like yours.

rbecher
MVP
MVP

I found a better one:

=sum({<Station=E({<Date_Tr={*}>}) * E({<Flag_Cardlock={Yes}>})>} 1)

Astrato.io Head of R&D