<?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: Comma vs Asterisk Between Set Analysis Modifiers in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Comma-vs-Asterisk-Between-Set-Analysis-Modifiers/m-p/1524080#M37595</link>
    <description>It's strange that the expressions are giving different outputs because like you I always thought that the two expressions can be used interchangeably. Having said that, have you tried adding Assets and Assets As Of as dimensions to see which of the two set analysis is the second expressions not adhering to? May be if you are able to share a sample, we can look at it as well.</description>
    <pubDate>Wed, 26 Dec 2018 14:05:28 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-12-26T14:05:28Z</dc:date>
    <item>
      <title>Comma vs Asterisk Between Set Analysis Modifiers</title>
      <link>https://community.qlik.com/t5/App-Development/Comma-vs-Asterisk-Between-Set-Analysis-Modifiers/m-p/1524078#M37594</link>
      <description>&lt;P&gt;I'm trying to create a measure&amp;nbsp;that is supposed to count "open" (i.e. active) client contracts.&amp;nbsp; Basically, I need to see if the client's account has assets in it for a given date (which is in the Assets table), and if so, sum up the Contract Counter field (in the Client table).&lt;/P&gt;&lt;P&gt;I tried using an intersection symbol (*), but that didn't work.&amp;nbsp; I finally figured out that simply using a comma between modifiers worked.&amp;nbsp; &lt;STRONG&gt;So now I'm confused about what the difference is between&amp;nbsp;a comma and an asterisk&amp;nbsp;- that's my question here.&lt;/STRONG&gt;&amp;nbsp; I'm wondering if it has something to do with the fact that the two fields I'm using are in different tables?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For reference, here are the two formulas I came up with (the first one is the one that works):&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Assets={"&amp;gt;$(=0)"},[Assets As Of]={"$(=max([Timeframe End Date]))"}&amp;gt;}[Contract Counter])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Assets={"&amp;gt;$(=0)"}&amp;gt;*&amp;lt;[Assets As Of]={"$(=max([Timeframe End Date]))"}&amp;gt;}[Contract Counter])&lt;/P&gt;&lt;P&gt;Below is a screen shot of a table I created to test the results.&amp;nbsp; The formula with an asterisk is very close, but not quite correct.&amp;nbsp; Honestly, I don't even know how it's coming up with the number it's getting - I've looked at the component parts, and it doesn't make sense why it's counting certain client contracts - I just know it's wrong.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Open Contract Results.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2632i34B0E60D37C4E0DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Open Contract Results.PNG" alt="Open Contract Results.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:41:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comma-vs-Asterisk-Between-Set-Analysis-Modifiers/m-p/1524078#M37594</guid>
      <dc:creator>steverosebrook</dc:creator>
      <dc:date>2024-11-16T21:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Comma vs Asterisk Between Set Analysis Modifiers</title>
      <link>https://community.qlik.com/t5/App-Development/Comma-vs-Asterisk-Between-Set-Analysis-Modifiers/m-p/1524080#M37595</link>
      <description>It's strange that the expressions are giving different outputs because like you I always thought that the two expressions can be used interchangeably. Having said that, have you tried adding Assets and Assets As Of as dimensions to see which of the two set analysis is the second expressions not adhering to? May be if you are able to share a sample, we can look at it as well.</description>
      <pubDate>Wed, 26 Dec 2018 14:05:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comma-vs-Asterisk-Between-Set-Analysis-Modifiers/m-p/1524080#M37595</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-26T14:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Comma vs Asterisk Between Set Analysis Modifiers</title>
      <link>https://community.qlik.com/t5/App-Development/Comma-vs-Asterisk-Between-Set-Analysis-Modifiers/m-p/1524083#M37596</link>
      <description>&lt;P&gt;Here's a screen shot of a table with all the component parts in it.&amp;nbsp; In doing this, I realized that for the group of "false positives", most of them have nulls in the Assets As Of field.&amp;nbsp; I thought maybe that was the issue, but then I noticed that there are some records where the formula is returning a zero, and some where it's returning a 1.&amp;nbsp; So I'm back to wondering what's going on again!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Open Contract Results 2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2633i018E850A82CE6BC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Open Contract Results 2.PNG" alt="Open Contract Results 2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 14:30:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comma-vs-Asterisk-Between-Set-Analysis-Modifiers/m-p/1524083#M37596</guid>
      <dc:creator>steverosebrook</dc:creator>
      <dc:date>2018-12-26T14:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Comma vs Asterisk Between Set Analysis Modifiers</title>
      <link>https://community.qlik.com/t5/App-Development/Comma-vs-Asterisk-Between-Set-Analysis-Modifiers/m-p/1524084#M37597</link>
      <description>&lt;P&gt;Are you making selection in Assets or Assets As Of when you are taking these screenshots? Can you try this and see if this gives the same result as the other expression&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;Assets = {"&amp;gt;$(=0)"}&lt;FONT color="#FF0000"&gt;, [Assets As Of]&lt;/FONT&gt;&amp;gt;*&amp;lt;[Assets As Of] = {"$(=max([Timeframe End Date]))"}&lt;FONT color="#FF0000"&gt;, Assets&lt;/FONT&gt;&amp;gt;}[Contract Counter])&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Dec 2018 14:33:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comma-vs-Asterisk-Between-Set-Analysis-Modifiers/m-p/1524084#M37597</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-26T14:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Comma vs Asterisk Between Set Analysis Modifiers</title>
      <link>https://community.qlik.com/t5/App-Development/Comma-vs-Asterisk-Between-Set-Analysis-Modifiers/m-p/1524085#M37598</link>
      <description>Also, I see you have Assets as an expression... may be Sum(Assets)... can you actually add Assets as a dimension....</description>
      <pubDate>Wed, 26 Dec 2018 14:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comma-vs-Asterisk-Between-Set-Analysis-Modifiers/m-p/1524085#M37598</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-26T14:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Comma vs Asterisk Between Set Analysis Modifiers</title>
      <link>https://community.qlik.com/t5/App-Development/Comma-vs-Asterisk-Between-Set-Analysis-Modifiers/m-p/1524090#M37599</link>
      <description>&lt;P&gt;Now we're getting somewhere.&amp;nbsp; I switched to using Assets as a dimension, and now I'm able to see that in the cases where the asterisk formula is returning false positives, both the Assets value and the Assets As Of value are null.&amp;nbsp; So it appears that&amp;nbsp; these formulas are handling nulls differently.&amp;nbsp; (BTW, the formula you listed above returns the same results as mine that has the asterisk in it - i.e. it's not working correctly either.)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Open Contract Results 3.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2634i927461BEB737BE31/image-size/large?v=v2&amp;amp;px=999" role="button" title="Open Contract Results 3.PNG" alt="Open Contract Results 3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 14:46:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comma-vs-Asterisk-Between-Set-Analysis-Modifiers/m-p/1524090#M37599</guid>
      <dc:creator>steverosebrook</dc:creator>
      <dc:date>2018-12-26T14:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Comma vs Asterisk Between Set Analysis Modifiers</title>
      <link>https://community.qlik.com/t5/App-Development/Comma-vs-Asterisk-Between-Set-Analysis-Modifiers/m-p/1524094#M37600</link>
      <description>&lt;P&gt;This is what I sort of imagined... but I don't know why it is doing this. May be&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;, or&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6622"&gt;@hic&lt;/a&gt;&amp;nbsp;are able to help us out here.&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Sunny&lt;/P&gt;</description>
      <pubDate>Wed, 26 Dec 2018 15:03:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comma-vs-Asterisk-Between-Set-Analysis-Modifiers/m-p/1524094#M37600</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-26T15:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Comma vs Asterisk Between Set Analysis Modifiers</title>
      <link>https://community.qlik.com/t5/App-Development/Comma-vs-Asterisk-Between-Set-Analysis-Modifiers/m-p/1524306#M37628</link>
      <description>&lt;P&gt;Usually both approaches are interchangeably but even if they return often the same results - they are not absolutely identically and like always it depends on the data and the requirements which approach is the right one or at least the most suitable.&lt;/P&gt;&lt;P&gt;Without going deeper and to test it in detail I think you have already found the cause of the differences which is a differently NULL handling. I think it's from effect a bit similar to the set analysis differences of -= against =- and because of the fact that NULL isn't stored in any way it couldn't be queried in a direct way else it needs a detour over other fields. Please take a look on the second and third example from here: &lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Excluding-values-in-Set-Analysis/ba-p/1471704" target="_blank"&gt;Excluding-values-in-Set-Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 27 Dec 2018 10:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comma-vs-Asterisk-Between-Set-Analysis-Modifiers/m-p/1524306#M37628</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-12-27T10:40:39Z</dc:date>
    </item>
  </channel>
</rss>

