Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
firmographs
Partner - Contributor III
Partner - Contributor III

Data Modelling, "and" and "or"

We have a situation where 1 data type (call it a site) has 5 attributes.  

Each attribute is a dimension in the site table.  The possible values for each attribute is yes, no, n/a, unknown, or null.  For example, if the dimension is "near water", those are the 5 possible attributes.  

We are trying to report using some "and" and "or" logic.  For example, which results are "yes" for dimensions 1, 2, 3, and 4, but not 5.  

What is the best way to approach this situation?  

3 Replies
pradosh_thakur
Master II
Master II

I guess you can use the if () and comine the and/or to get the logic as per your requiremnt.

 

You need to upload some sample data to get a concrete answer on this.

Learning never stops.
firmographs
Partner - Contributor III
Partner - Contributor III
Author

Sure, I understand.  This is a picture representing our situation.  At least, we'd get a list of results with this logic hard-coded.  Better yet, we could use filters to drive the logic.  

 

Sites and Dimensions example.JPG

pradosh_thakur
Master II
Master II

=Concat(DISTINCT {<Dim1={'Yes'},Dim2={'Yes'},Dim3={'Yes'},Dim4= {'Yes'},Dim5-= {'Yes'}>}Site)
Learning never stops.