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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
chrishayes
Contributor III
Contributor III

Set analysis unexpected behavior

I am using the below set analysis expression. My expectation is that if I select one of the Manufacturing Entities in the set, that the others will be excluded as I am using the $ identifier. However, if I select '01-01', the other two entities still display in the pivot table. Is there a way to get it to exclude the non-selected values?

Sum({$

     <

       [Invoice Year-Month]={'$(v_current_year_month)'},

       [Manufacturing Entity Code] = {'01-01','01-02','01-03'},

       Division = {'01-ABC'},

       [Internal Bill To Company] = {'N'},

       [Internal Ship To Company] = {'N'},

       [Sales Person] -= {'JOHNNY APPLESEED','FRANK FURTER'}

     >

       }[Billed Amount USD]

   )

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Use the intersection operator *

Sum({$

     <

       [Invoice Year-Month]={'$(v_current_year_month)'},

       [Manufacturing Entity Code] *= {'01-01','01-02','01-03'},

       Division = {'01-ABC'},

       [Internal Bill To Company] = {'N'},

       [Internal Ship To Company] = {'N'},

       [Sales Person] -= {'JOHNNY APPLESEED','FRANK FURTER'}

     >

       }[Billed Amount USD]

   )

View solution in original post

2 Replies
swuehl
MVP
MVP

Use the intersection operator *

Sum({$

     <

       [Invoice Year-Month]={'$(v_current_year_month)'},

       [Manufacturing Entity Code] *= {'01-01','01-02','01-03'},

       Division = {'01-ABC'},

       [Internal Bill To Company] = {'N'},

       [Internal Ship To Company] = {'N'},

       [Sales Person] -= {'JOHNNY APPLESEED','FRANK FURTER'}

     >

       }[Billed Amount USD]

   )

chrishayes
Contributor III
Contributor III
Author

Thank you, that worked perfectly!