<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: List Box &amp;quot;And Mode&amp;quot; Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251331#M95354</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yours perfectly works for the count. but not for the sales, as there is no relation between Brand ID and Brand columns if i use SUM instead of Count it is giving the Aggregated values for whole Account in that market.&lt;/P&gt;&lt;P&gt;Sorry i dint told abt that before&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see attached for what im trying to acheive. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Sep 2011 21:38:05 GMT</pubDate>
    <dc:creator>phaneendra_kunc</dc:creator>
    <dc:date>2011-09-10T21:38:05Z</dc:date>
    <item>
      <title>List Box "And Mode" Problem</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251324#M95347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with "And mode" from list box, even though it is enabled i cant pick more than 1 from the list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have followed the rules from QV help(F1) and serched for "And mode".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also refered below link.&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/message/127398#127398"&gt;http://community.qlik.com/message/127398#127398&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached for the file i was trying to acheive. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2011 04:52:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251324#M95347</guid>
      <dc:creator>phaneendra_kunc</dc:creator>
      <dc:date>2011-09-10T04:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: List Box "And Mode" Problem</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251325#M95348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi phani221984,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't used AND mode too much before, so I am just guessing also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed in John's example in above referenced thread, that he is doing the distinct load (and following AND mode on the field) on the other table (Account table in your case). &lt;/P&gt;&lt;P&gt;If you do this, you can use And mode on field Account succesfully (even though the requirement stated in the HELP: the table must not contain any duplicate records, is not fulfilled! See Account 4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if this helps, I am pretty confused also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S: The requirement "the table must not contain any duplicate records" is probably not a hard requirement, you just lose information on your distinct load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2011 11:59:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251325#M95348</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-10T11:59:43Z</dc:date>
    </item>
    <item>
      <title>List Box "And Mode" Problem</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251326#M95349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought about it a little more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What the and mode is probably doing, is creating the intersection of your implicitely selected ID Values within the tables scope, i.e. if you select two brands, you are not getting an intersection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Selected Brand A -&amp;gt; Brand ID 1&lt;/P&gt;&lt;P&gt;Selected Brand B -&amp;gt; Brand ID 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other table:&lt;/P&gt;&lt;P&gt;Account 1 --&amp;gt; Brand ID 1,2,3,4,5,6&lt;/P&gt;&lt;P&gt;Account 3 --&amp;gt; Brand ID 2,4&lt;/P&gt;&lt;P&gt;Here you get an intersection of Brand IDs 2,4 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Though your first table fulfills all requirements to enable AND-mode, it is just not "useful" (well, you could use the NOT-feature, maybe))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my assumption is correct, I think you could solve your problem if you create like an Account-ID in your Brands-table instead the Brands-ID in the Account-Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I got my ideas clear,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2011 13:27:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251326#M95349</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-10T13:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: List Box "And Mode" Problem</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251327#M95350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes you are right, but i do have a Market which restricts the Brands too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All im trying to do is to find out the Accounts who bought Brand 1 and Brand 3 but not Brand 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see attached you will understand better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Phani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2011 17:28:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251327#M95350</guid>
      <dc:creator>phaneendra_kunc</dc:creator>
      <dc:date>2011-09-10T17:28:10Z</dc:date>
    </item>
    <item>
      <title>List Box "And Mode" Problem</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251328#M95351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, besides reworking your data model (where I had not a looked at), you could also use set analysis, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Account= (P({&amp;lt;Brand= {'Brand 1'}&amp;gt;})* P({&amp;lt;Brand= {'Brand 3'}&amp;gt;}))/P({&amp;lt;Brand= {'Brand 5'}&amp;gt;}) &amp;gt;} DISTINCT Brand)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as expression in your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2011 17:50:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251328#M95351</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-10T17:50:32Z</dc:date>
    </item>
    <item>
      <title>List Box "And Mode" Problem</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251329#M95352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Again Stefen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression works if im going to choose 2 Purchased Brands and 1 not purchansed Brand.( by pushing the selected brands to Variables and use them in Expression)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but for my senario user is going to choose some times 1 Purchasing and 1 Not Purchasing , or 3 Purchasing and 1 not purchasing. This will be dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know how to Acheive this.&lt;/P&gt;&lt;P&gt;I have posed this here&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/message/148337#148337"&gt;http://community.qlik.com/message/148337#148337&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping me out so far. &lt;/P&gt;&lt;P&gt;Phani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2011 18:14:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251329#M95352</guid>
      <dc:creator>phaneendra_kunc</dc:creator>
      <dc:date>2011-09-10T18:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: List Box "And Mode" Problem</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251330#M95353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please look at attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just added a copy of your Brand Table as BrandSelect table. Used this for AND mode list box, seems to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S: I've seen your other post, I think this is also possible, but if above works, I would prefer this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2011 20:52:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251330#M95353</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-10T20:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: List Box "And Mode" Problem</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251331#M95354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yours perfectly works for the count. but not for the sales, as there is no relation between Brand ID and Brand columns if i use SUM instead of Count it is giving the Aggregated values for whole Account in that market.&lt;/P&gt;&lt;P&gt;Sorry i dint told abt that before&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see attached for what im trying to acheive. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Sep 2011 21:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251331#M95354</guid>
      <dc:creator>phaneendra_kunc</dc:creator>
      <dc:date>2011-09-10T21:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: List Box "And Mode" Problem</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251332#M95355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi phani221984,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe like attached?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this as expression in a pivot table with account and Brand ID as dimensions:&lt;/P&gt;&lt;P&gt;=sum( aggr(if(wildmatch(GetFieldSelections(BrandSelect),'*'&amp;amp;[BRAND ID]&amp;amp;'*'),sum(Sales),0),[BRAND ID],Account))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure why I need to use the aggr(), but if I don't, I get multiple records back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You also won't get a column for the NOT values (like Brand 5), but I think IMHO that's ok, because you selected accounts with no Brand match for those anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I noticed that you are keeping like duplicate information in Account table (Account -Brand ID) and Brand Table ( Account - Brand). I don't know if this is necessary or maybe you could link your market to the Account table via Brand ID also. But that's an annotation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Sep 2011 13:27:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251332#M95355</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-11T13:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: List Box "And Mode" Problem</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251333#M95356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solved my problem. Thanks a lot for the help. you are genious.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are free please look at my other posting&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/148337#148337"&gt;http://community.qlik.com/message/148337#148337&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Phani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Sep 2011 15:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251333#M95356</guid>
      <dc:creator>phaneendra_kunc</dc:creator>
      <dc:date>2011-09-11T15:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: List Box "And Mode" Problem</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251334#M95357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we have link between BrandSelect and Market.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if i pick a Market A then i wan to see the associated Brands in the BrandSelect List box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Phani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Sep 2011 17:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251334#M95357</guid>
      <dc:creator>phaneendra_kunc</dc:creator>
      <dc:date>2011-09-11T17:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: List Box "And Mode" Problem</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251335#M95358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Phani221984,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that is not easy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe you can't just link the Market or Brand to your AND mode table (because you can have only two fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So BrandSelect reflects only implicitely the Market, via Brand-Account (i.e. Market determines the available Brands and implicitely the Accounts, but I think that is not what you need).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried a little bit with a trigger on selection, but was missing a method to set the selection state of BrandSelect explicitely to excluded ( I think this is what you want - BrandSelect should be set excluded according to the Brands excluded by Market selection. But I don't even think that this is easily possible, it will probably break QVs logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I am missing some other solution. but I am stucked for now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Sep 2011 23:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-quot-And-Mode-quot-Problem/m-p/251335#M95358</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-11T23:00:15Z</dc:date>
    </item>
  </channel>
</rss>

