<?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 [possible BUG]: &amp;quot;$::&amp;quot; syntax with derived fields not working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/possible-BUG-quot-quot-syntax-with-derived-fields-not-working/m-p/1632240#M47078</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;while trying to set up some measures using a derived field (more precisely, one of those from "autoCalendar", generated by new app wizard) in a set analysis expression I came up to a possible bug.&lt;/P&gt;&lt;P&gt;Let's take "Month" as example. In autoCalendar data load script it is defined as&amp;nbsp;[myDate.autoCalendar.Month], where "myDate", of course, is a date type field from my database and included in "DERIVE FIELDS FROM FIELDS" section of autoCalendar script.&lt;/P&gt;&lt;P&gt;For testing purposes I defined a "test_Month" field in data table load script as "Month(myDate)"&lt;/P&gt;&lt;P&gt;So, I have&amp;nbsp;[myDate.autoCalendar.Month] and [test_Month] dimensions, defined in the same way and valued with same values, both acting on default state.&lt;/P&gt;&lt;P&gt;Then I placed a flat table (with its alternate state property left unchanged), added both above dimensions and defined 4 measures:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Sum({[Competitive Set]&amp;lt;,PY={'0'},[test_Month]=$::[test_Month]&amp;gt;}Revenue)&lt;/LI&gt;&lt;LI&gt;Sum({&amp;lt;,PY={'0'},[test_Month]=$::[test_Month]&amp;gt;}Revenue)&lt;/LI&gt;&lt;LI&gt;Sum({[Competitive Set]&amp;lt;,PY={'0'},[myDate.autoCalendar.Month]=$::[myDate.autoCalendar.Month]&amp;gt;}Revenue)&lt;/LI&gt;&lt;LI&gt;Sum({&amp;lt;,PY={'0'},[myDate.autoCalendar.Month]=$::[myDate.autoCalendar.Month]&amp;gt;}Revenue)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;"Competitive Set" is an alternate state defined in my app and PY is another dimension.&amp;nbsp;I used "$::" syntax to propagate filtering on dimension from default state to alternate state.&lt;/P&gt;&lt;P&gt;This is flat table output after data load and selection of two comparing sets:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clipboard01.jpg" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20855i64EFF199A90A9E07/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clipboard01.jpg" alt="Clipboard01.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see, last two measures are always zero, and that's the main issue, whilst first two shows correct values.&lt;/P&gt;&lt;P&gt;Now, I select "gen" from "test_Month":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clipboard02.jpg" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20856i9AA1B375C5785674/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clipboard02.jpg" alt="Clipboard02.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Correct behaviour on first 2 measures. Filter on "test_Month" is propagated from default to alternate state.&lt;/P&gt;&lt;P&gt;Now, I select deselect "gen" from "test_Month" and select "gen" from "myDate.autoCalendar.Month":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senza nome.jpg" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20857iC496C69E751183CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Senza nome.jpg" alt="Senza nome.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Again, I have a correct behaviour on first 2 measures.&lt;/P&gt;&lt;P&gt;So, it seems that "$::" syntax is not working with derived fields, although expressions with their use are correctly evaluated (we have zeroes instead of nulls).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Paolo.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:26:57 GMT</pubDate>
    <dc:creator>paolo_mapelli</dc:creator>
    <dc:date>2024-11-16T04:26:57Z</dc:date>
    <item>
      <title>[possible BUG]: "$::" syntax with derived fields not working</title>
      <link>https://community.qlik.com/t5/App-Development/possible-BUG-quot-quot-syntax-with-derived-fields-not-working/m-p/1632240#M47078</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;while trying to set up some measures using a derived field (more precisely, one of those from "autoCalendar", generated by new app wizard) in a set analysis expression I came up to a possible bug.&lt;/P&gt;&lt;P&gt;Let's take "Month" as example. In autoCalendar data load script it is defined as&amp;nbsp;[myDate.autoCalendar.Month], where "myDate", of course, is a date type field from my database and included in "DERIVE FIELDS FROM FIELDS" section of autoCalendar script.&lt;/P&gt;&lt;P&gt;For testing purposes I defined a "test_Month" field in data table load script as "Month(myDate)"&lt;/P&gt;&lt;P&gt;So, I have&amp;nbsp;[myDate.autoCalendar.Month] and [test_Month] dimensions, defined in the same way and valued with same values, both acting on default state.&lt;/P&gt;&lt;P&gt;Then I placed a flat table (with its alternate state property left unchanged), added both above dimensions and defined 4 measures:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Sum({[Competitive Set]&amp;lt;,PY={'0'},[test_Month]=$::[test_Month]&amp;gt;}Revenue)&lt;/LI&gt;&lt;LI&gt;Sum({&amp;lt;,PY={'0'},[test_Month]=$::[test_Month]&amp;gt;}Revenue)&lt;/LI&gt;&lt;LI&gt;Sum({[Competitive Set]&amp;lt;,PY={'0'},[myDate.autoCalendar.Month]=$::[myDate.autoCalendar.Month]&amp;gt;}Revenue)&lt;/LI&gt;&lt;LI&gt;Sum({&amp;lt;,PY={'0'},[myDate.autoCalendar.Month]=$::[myDate.autoCalendar.Month]&amp;gt;}Revenue)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;"Competitive Set" is an alternate state defined in my app and PY is another dimension.&amp;nbsp;I used "$::" syntax to propagate filtering on dimension from default state to alternate state.&lt;/P&gt;&lt;P&gt;This is flat table output after data load and selection of two comparing sets:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clipboard01.jpg" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20855i64EFF199A90A9E07/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clipboard01.jpg" alt="Clipboard01.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see, last two measures are always zero, and that's the main issue, whilst first two shows correct values.&lt;/P&gt;&lt;P&gt;Now, I select "gen" from "test_Month":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clipboard02.jpg" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20856i9AA1B375C5785674/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clipboard02.jpg" alt="Clipboard02.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Correct behaviour on first 2 measures. Filter on "test_Month" is propagated from default to alternate state.&lt;/P&gt;&lt;P&gt;Now, I select deselect "gen" from "test_Month" and select "gen" from "myDate.autoCalendar.Month":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senza nome.jpg" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20857iC496C69E751183CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Senza nome.jpg" alt="Senza nome.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Again, I have a correct behaviour on first 2 measures.&lt;/P&gt;&lt;P&gt;So, it seems that "$::" syntax is not working with derived fields, although expressions with their use are correctly evaluated (we have zeroes instead of nulls).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Paolo.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:26:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/possible-BUG-quot-quot-syntax-with-derived-fields-not-working/m-p/1632240#M47078</guid>
      <dc:creator>paolo_mapelli</dc:creator>
      <dc:date>2024-11-16T04:26:57Z</dc:date>
    </item>
  </channel>
</rss>

