<?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: Set-analysis '+' operand not creating unioned value list, when combining Alternate States select in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-operand-not-creating-unioned-value-list-when/m-p/1680010#M449995</link>
    <description>&lt;P&gt;Thank you for responding&amp;nbsp;Marcus, your input is always valuable &amp;amp; insightful.&lt;BR /&gt;&lt;BR /&gt;Looks like we agree on&amp;nbsp;observations, it definitely appears&amp;nbsp;data table related.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Two more examples reaffirm scripting&amp;nbsp;order matters.&amp;nbsp; The same set of field values &amp;amp; expression yield two different results based on the order in which&amp;nbsp;load statements contributed values to the key-field.&amp;nbsp; Set-operands used in conjunction with alternate states seem to only perceive the first table loaded into a key.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20200225_Set_operand_breakdown_when_combining_alternate_states_Image_2.png" style="width: 744px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29245iA6A5C3668086D7A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="20200225_Set_operand_breakdown_when_combining_alternate_states_Image_2.png" alt="20200225_Set_operand_breakdown_when_combining_alternate_states_Image_2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Your approach to recreate the result set in other forms&amp;nbsp;is just great! Usage of the Count() function as boolean is quite inventive.&amp;nbsp; Since this IF() expression can assemble the "correct" result set, it seems&amp;nbsp;set-operand functionality should be able to learn from this, emulate techniques applied and&amp;nbsp;be capable of recreating the same.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That way set-operand usage would have no&amp;nbsp;special considerations when applied to key-fields vs. non-keys, or usage in a default&amp;nbsp;vs. alternate state context.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Otherwise&amp;nbsp;set-operand &lt;EM&gt;"caveats"&lt;/EM&gt; would get cumbersome.&amp;nbsp; &lt;EM&gt;(i.e. "You can use set-operands, but when using in conjuction with alternate states, then only with perfect keys or non keys, or with imperfect keys but only with the first table loaded" ... so many conditions to remember)&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you again Marcus.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2020 16:49:21 GMT</pubDate>
    <dc:creator>evan_kurowski</dc:creator>
    <dc:date>2020-02-27T16:49:21Z</dc:date>
    <item>
      <title>Set-analysis '+' operand not creating unioned value list, when combining imperfect key selections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-operand-not-creating-unioned-value-list-when/m-p/1679192#M449940</link>
      <description>&lt;P&gt;Hello Qlik Community,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Had been getting tormented by this relatively straightforward set-operand expression involving the '+' union of selections drawn from two alternate states.&lt;BR /&gt;&lt;BR /&gt;The app has two alternate states [StateA] &amp;amp; [StateB], and the expression attempts to union selections from field F1 across both states, into a single list box.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;=&lt;FONT color="#0000ff"&gt;Aggr&lt;/FONT&gt;( &lt;FONT color="#0000ff"&gt;Only&lt;/FONT&gt;({&lt;FONT color="#0000ff"&gt;[StateA]&lt;/FONT&gt; + &lt;FONT color="#0000ff"&gt;[StateB]&lt;/FONT&gt;} &lt;FONT color="#800000"&gt;F1&lt;/FONT&gt;), &lt;FONT color="#800000"&gt;F1&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT size="4"&gt;)&lt;/FONT&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This technique has worked pretty consistently in the past, and it wasn't immediately clear what was causing the issue, but I may have been able to narrow down some repeatable conditions observed during breakdown.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What I am encountering is the '+' set-operand will union the proper value list from the key-field only when all values fell within the first table loaded into the combined key field.&amp;nbsp; The expression still produces correct results in the list box when values found in only one of the multiple contributing sources are selected.&amp;nbsp;&lt;EM&gt; (selecting 'alpha','beta' in [F1])&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;However, when the key-field is built from two sources where expression tries to select values exclusive to the first table built into they key, the '+' set-operand starts functioning erratically.&lt;BR /&gt;&lt;BR /&gt;So the syntax in the example for field [F1] is working, but it can be broken by loading a leaf table into the key with even a single exclusive value to the extant&amp;nbsp;field values..&amp;nbsp; e.g.:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20200225_Set_operand_breakdown_when_combining_alternate_states_involving_field_contributors_mutually_exclusive_4.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29160i1909BB58900341B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="20200225_Set_operand_breakdown_when_combining_alternate_states_involving_field_contributors_mutually_exclusive_4.png" alt="20200225_Set_operand_breakdown_when_combining_alternate_states_involving_field_contributors_mutually_exclusive_4.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:02:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-operand-not-creating-unioned-value-list-when/m-p/1679192#M449940</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2024-11-16T19:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set-analysis '+' operand not creating unioned value list, when combining Alternate States select</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-operand-not-creating-unioned-value-list-when/m-p/1679202#M449941</link>
      <description>&lt;P&gt;(continued...)&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;*note: i keep having to post threads in multi-parts because the website in mid-edit just starts REFUSING further edits.&amp;nbsp; I'm not sure if this is because my host doesn't want content getting out, or whether the Qlik portal doesn't want content getting in, but... from an end-user perspective, the posting editing experience is frequently broken.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Like it literally becomes a struggle to compose a few brief paragraphs in Notepad and merely copy them over to the Qlik editing pane.&amp;nbsp; If we're getting hacked...we should sue... for ALL OF THE DAMAGES.&amp;nbsp;&amp;nbsp; Kidding... partially.&amp;nbsp; Maybe.)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;In the inverse, the syntax for [F2] only seems to be "fixed" by loading a new table that contains ALL possible values of the [F2] keyfield to that point.&amp;nbsp; Merely loading a new table with just any two mutual values between the existing contributing sources is not enough to fix the expression (even though only partial overlap was sufficient for the first example).&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;//**even appending a single exclusive value to the key-field breaks the '+' set-operand&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;//[THIS_BREAKS_F1_SYNTAX]:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;//NOCONCATENATE LOAD F1, F1 AS F1.SOURCE3 INLINE [&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;//F1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;//oopsibreakit&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;//];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20200225_Set_operand_breakdown_when_combining_alternate_states_involving_field_contributors_mutually_exclusive_2.jpg" style="width: 854px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29089i477E3822B40A13B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="20200225_Set_operand_breakdown_when_combining_alternate_states_involving_field_contributors_mutually_exclusive_2.jpg" alt="20200225_Set_operand_breakdown_when_combining_alternate_states_involving_field_contributors_mutually_exclusive_2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please take a look and let me know your thoughts.&amp;nbsp; Does this constitute a bug?&amp;nbsp; It seems like a very tricky set of conditions where if you carelessly add even one value to a multi-source key field, suddenly all the set-analysis is acting up.&amp;nbsp; Thanks for your consideration all!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 16:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-operand-not-creating-unioned-value-list-when/m-p/1679202#M449941</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2020-02-26T16:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set-analysis '+' operand not creating unioned value list, when combining Alternate States select</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-operand-not-creating-unioned-value-list-when/m-p/1679595#M449970</link>
      <description>&lt;P&gt;&lt;STRONG&gt;**update**&lt;/STRONG&gt; &lt;EM&gt;I've&amp;nbsp;revised&amp;nbsp;the attached sample .qvw which includes&amp;nbsp;field example F3.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Further examination adds a&amp;nbsp;bit more&amp;nbsp;clarification.&amp;nbsp; The set-operand from field F1 &lt;STRONG&gt;&lt;EM&gt;appears&lt;/EM&gt;&lt;/STRONG&gt; to work, because the second load statement contributing to F1 is a complete subset of the first load statement. &lt;EM&gt;(but I don't think the set-operand is actually working in that example)&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;When i try these examples on a new field [F3], which comprises a key-field of 3 unioned values, 2 contributed from source 1, and 2 contributed from source 2, with only a single common value between them.&lt;BR /&gt;&lt;BR /&gt;A single set-modifier condition, in the default state will successfully parse a value list from a multi-table key field.&lt;/P&gt;&lt;P&gt;&lt;FONT size="3" color="#008000"&gt;//the single condition set-modifier&amp;nbsp;is able to&amp;nbsp;combine values from the first &amp;amp; second load statements contributing to Field F3&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;=&lt;FONT color="#0000ff"&gt;Aggr&lt;/FONT&gt;( &lt;FONT color="#0000ff"&gt;Only&lt;/FONT&gt;( {&amp;lt;&lt;FONT color="#800000"&gt;F3&lt;/FONT&gt;-={&lt;FONT color="#800000"&gt;"kappa"&lt;/FONT&gt;}&amp;gt;} &lt;FONT color="#800000"&gt;F3&lt;/FONT&gt;), &lt;FONT color="#800000"&gt;F3&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;FONT size="3"&gt;) &lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;One the set-analysis involves a set-operand,&amp;nbsp;the expression then seems&amp;nbsp;only able to evaluate&amp;nbsp;values from the first load statement that contributed to the key field.&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="3" color="#008000"&gt;//the set-operand cannot "see" the values from the second load statement contributing to Field F3 &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;=&lt;FONT color="#0000ff"&gt;Aggr&lt;/FONT&gt;( &lt;FONT color="#0000ff"&gt;Only&lt;/FONT&gt;( {&lt;FONT color="#0000ff"&gt;[StateA]&lt;/FONT&gt; + &lt;FONT color="#0000ff"&gt;[StateB]&lt;/FONT&gt; } &lt;FONT color="#800000"&gt;F3&lt;/FONT&gt;), &lt;FONT color="#800000"&gt;F3&lt;/FONT&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Also added example for field F4, to demonstrate the set-operand alternate state technique works fine &amp;amp;&amp;nbsp;shows no issues when used on a non-key field.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20200225_Set_operand_breakdown_when_combining_alternate_states_involving_field_contributors_mutually_exclusive_5.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29159i43BE8208277C4577/image-size/large?v=v2&amp;amp;px=999" role="button" title="20200225_Set_operand_breakdown_when_combining_alternate_states_involving_field_contributors_mutually_exclusive_5.png" alt="20200225_Set_operand_breakdown_when_combining_alternate_states_involving_field_contributors_mutually_exclusive_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 03:10:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-operand-not-creating-unioned-value-list-when/m-p/1679595#M449970</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2020-02-27T03:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set-analysis '+' operand not creating unioned value list, when combining Alternate States select</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-operand-not-creating-unioned-value-list-when/m-p/1679937#M449991</link>
      <description>&lt;P&gt;I think your observed behaviour is related to the technically implementation of the alternate states. Without knowing the specifics it's difficult to say if it's an expected behaviour by applying the states on keys - intentionally designed in this way or as a side-effect and the documentation is just missing to mention this kind of restriction - or if it's an unexpected behaviour respectively a bug.&lt;/P&gt;&lt;P&gt;AFAIK the state of a selection is some kind of parallel-table to the system-table. If there are multiple states enabled Qlik needs to use multiple ones or to extend the state-table to further fields. I would now expect that it shouldn't matter if the field is a key or not because of the relation to the system-table. It's really just guessing. Because of the fact that's not working I assume that there is something different and it has also a relation to the data-tables ...&lt;/P&gt;&lt;P&gt;I believe you found already two ways to bypass it - by using an adjusted datamodel in which those fields are not keys or to ensure the use of a perfect key by adding the missing key-values from the other side. It may sound like a lot of efforts just for using some special alternate state scenarios but I wouldn't too easily discard this consideration - it might have further advantages, too.&lt;/P&gt;&lt;P&gt;Another approach could be also to adjust the expresion-logic for the listboxes, maybe something in this way:&lt;/P&gt;&lt;P&gt;= aggr(if(count({[StateA]} F2) or count({[StateB]} F2), only(F2)), F2)&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 14:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-operand-not-creating-unioned-value-list-when/m-p/1679937#M449991</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-02-27T14:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set-analysis '+' operand not creating unioned value list, when combining Alternate States select</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-operand-not-creating-unioned-value-list-when/m-p/1680010#M449995</link>
      <description>&lt;P&gt;Thank you for responding&amp;nbsp;Marcus, your input is always valuable &amp;amp; insightful.&lt;BR /&gt;&lt;BR /&gt;Looks like we agree on&amp;nbsp;observations, it definitely appears&amp;nbsp;data table related.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Two more examples reaffirm scripting&amp;nbsp;order matters.&amp;nbsp; The same set of field values &amp;amp; expression yield two different results based on the order in which&amp;nbsp;load statements contributed values to the key-field.&amp;nbsp; Set-operands used in conjunction with alternate states seem to only perceive the first table loaded into a key.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20200225_Set_operand_breakdown_when_combining_alternate_states_Image_2.png" style="width: 744px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29245iA6A5C3668086D7A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="20200225_Set_operand_breakdown_when_combining_alternate_states_Image_2.png" alt="20200225_Set_operand_breakdown_when_combining_alternate_states_Image_2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Your approach to recreate the result set in other forms&amp;nbsp;is just great! Usage of the Count() function as boolean is quite inventive.&amp;nbsp; Since this IF() expression can assemble the "correct" result set, it seems&amp;nbsp;set-operand functionality should be able to learn from this, emulate techniques applied and&amp;nbsp;be capable of recreating the same.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That way set-operand usage would have no&amp;nbsp;special considerations when applied to key-fields vs. non-keys, or usage in a default&amp;nbsp;vs. alternate state context.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Otherwise&amp;nbsp;set-operand &lt;EM&gt;"caveats"&lt;/EM&gt; would get cumbersome.&amp;nbsp; &lt;EM&gt;(i.e. "You can use set-operands, but when using in conjuction with alternate states, then only with perfect keys or non keys, or with imperfect keys but only with the first table loaded" ... so many conditions to remember)&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you again Marcus.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 16:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-operand-not-creating-unioned-value-list-when/m-p/1680010#M449995</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2020-02-27T16:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set-analysis '+' operand not creating unioned value list, when combining Alternate States select</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-operand-not-creating-unioned-value-list-when/m-p/1684523#M450279</link>
      <description>&lt;P&gt;Well Marcus, was giving this thread a little time to see if Qlik might pop-in and say &lt;EM&gt;"Roger that, we're on it." &amp;nbsp; &amp;nbsp;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;But it looks like the issue is pretty clearly identified.&amp;nbsp; Thanks so much for your assistance, it is very appreciated.&amp;nbsp; You definitely deserve that MVP &amp;amp; Luminary status.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 14:44:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-operand-not-creating-unioned-value-list-when/m-p/1684523#M450279</guid>
      <dc:creator>evan_kurowski</dc:creator>
      <dc:date>2020-03-13T14:44:54Z</dc:date>
    </item>
  </channel>
</rss>

