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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to Ignore Other Filter Criteria

Hello,

I have a several tables with date fields that link together by ID:

Table 1:

[ID]

[A-Date]

[A-Count]

Table 2:

[ID]

[B-Date]

[B-Count]

When I make selections on date fields separately, it works fine.

A-Date = 2014 returns A-Count or

B-Date = 2014 returns B-Count

But if I make selections on multiple date fields, i.e.

A-Date = 2014 and B-Date = 2014

it only shows me a subset of A-Count and B-Count for records that have the same ID

How would I approach this issue if it is necessary to keep the ID link? Is the best solution to use set analysis to ignore field selections? Thanks!

-Jason

4 Replies
Anonymous
Not applicable
Author

Hey Jason,

My stab at it is to use an expression, (Chart - Straight Table) with ID as your dimension or what ever you may use

=count({<A-Date=>}[B-Count]) 

- what this does is Count, [B-Count] based on selection and ignore [A-Date]

and vice versa for [A-Count].

Hope this is something you're looking for

MarcoWedel

‌please post sample data and expected result.

regards

Marco

jonathandienst
Partner - Champion III
Partner - Champion III

You could use a set expression like this:

{<[A-Date]=P([A-Date]), [B-Date]>+<[B-Date] = P([B-Date]), [A-Date]>}

(Selected value(s) of A-Date ignoring selection on B-Date, unioned with selected value(s) of B-Date ignoring selection on A-Date.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jonathandienst
Partner - Champion III
Partner - Champion III

It could even be a simple as

{<[A-Date]>+<[B-Date]>}

A union of selections (including B-Date) ignoring A-Date selections and selections (including A-Date) ignoring B-Date...

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein