<?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 and Dual Function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1676672#M51440</link>
    <description>&lt;P&gt;Thank you very much Vegar.&lt;/P&gt;&lt;P&gt;It works really well !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2020 13:58:21 GMT</pubDate>
    <dc:creator>brunov86</dc:creator>
    <dc:date>2020-02-18T13:58:21Z</dc:date>
    <item>
      <title>Set Analysis and Dual Function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1675007#M51241</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I run into the same problem for days now and cannot find a solution.&lt;/P&gt;&lt;P&gt;I have 1 KPI which is defined by the following set analysis:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;count(distinct {&amp;lt;[Master_LocalFiscalYear]={$(=max([Master_LocalFiscalYear]))},[ClassStatus]={'Registered'},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;[FinalStatus]={'Absent','Failed','In-Progress','Passed'}&amp;gt;} [studentid])&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This set analysis works wonder when a use my standard calendar year.&lt;/P&gt;&lt;P&gt;In this example it is a special year following the format YYYY/YYYY (&lt;STRONG&gt;LocalFiscal_Year)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;As I cannot use a text value (&lt;STRONG&gt;LocalFiscal_Year)&lt;/STRONG&gt;, I have used a dual function to made all the calculations run on a single year value (&lt;STRONG&gt;LocalFiscal_YearSingle)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Script extract&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;MasterCalendarDateGrantedRC:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;*,&lt;/P&gt;&lt;P&gt;Calendar_Date as CalendarDateGrantedRC,&lt;BR /&gt;Calendar_Year as Master_CalendarYear,&lt;BR /&gt;&lt;STRONG&gt;Dual(LocalFiscal_Year,LocalFiscal_YearSingle) as Master_LocalFiscalYear&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FROM [$(PEDirectory)Master_Calendar.csv]&lt;BR /&gt;(txt, utf8, embedded labels, delimiter is ',');&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;I think the issue is somehow with my dual function but I don't see why.&lt;/P&gt;&lt;P&gt;Any help would be really appreciated.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1675007#M51241</guid>
      <dc:creator>brunov86</dc:creator>
      <dc:date>2024-11-16T03:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Dual Function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1675012#M51242</link>
      <description>I'm not entirely sure what you are trying to do here. But the dual function stores the value as a text, number pair. Dual(text,number). If your intention is to assign the string year values YYYY/YYYY to corresponding year value YYYY (i.e. 2019/2020 to 2020) then I would simply use the DATE#() function to convert the text to date.&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/sense/November2019/Subsystems/Hub/Content/Sense_Hub/Scripting/InterpretationFunctions/date_hash.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/November2019/Subsystems/Hub/Content/Sense_Hub/Scripting/InterpretationFunctions/date_hash.htm&lt;/A&gt;</description>
      <pubDate>Wed, 12 Feb 2020 19:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1675012#M51242</guid>
      <dc:creator>AndrewHughes</dc:creator>
      <dc:date>2020-02-12T19:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Dual Function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1675042#M51251</link>
      <description>&lt;P&gt;When creating set modifiers with fixed values Qlik Sense will always compare your value with the text part of an dual. Therefore you need to create the text part of your field in the modifier expression, try using maxstring() instead of max() as max() returns the numeric value not the string value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;count(distinct {&amp;lt;[Master_LocalFiscalYear]={&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;/FONT&gt;$(=max&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;string&lt;/STRONG&gt;&lt;/FONT&gt;([Master_LocalFiscalYear]))&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;'&lt;/FONT&gt;&lt;/STRONG&gt;},[ClassStatus]={'Registered'},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;[FinalStatus]={'Absent','Failed','In-Progress','Passed'}&amp;gt;} [studentid])&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 22:20:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1675042#M51251</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-02-12T22:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Dual Function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1675072#M51252</link>
      <description>&lt;P&gt;Hey Vegar,&lt;/P&gt;&lt;P&gt;Thank you for your suggestion unfortunately it doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 22:15:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1675072#M51252</guid>
      <dc:creator>brunov86</dc:creator>
      <dc:date>2020-02-12T22:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Dual Function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1675076#M51253</link>
      <description>&lt;P&gt;I did a minor adjustment to my previous suggestion. Look for the red &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;'&amp;nbsp; '&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 22:21:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1675076#M51253</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-02-12T22:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Dual Function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1675352#M51291</link>
      <description>&lt;P&gt;Hello Vegar,&lt;/P&gt;&lt;P&gt;It works wounder ! Thank you very much&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have the same set analysis but for the previous year so it means my expression is like that&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;count(distinct {&amp;lt;[Master_LocalFiscalYear]={$(=maxstring([Master_LocalFiscalYear])&lt;STRONG&gt;-1)&lt;/STRONG&gt;},[ClassStatus]={'Registered'},&lt;BR /&gt;[FinalStatus]={'Absent','Failed','In-Progress','Passed'}&amp;gt;} [studentid])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;maxstring is not working in that case because i cannot remove 1 to a string. Is it possible to do some substring in the set analysis to get the previous year (YYYY-1/YYYY-1)?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 14:09:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1675352#M51291</guid>
      <dc:creator>brunov86</dc:creator>
      <dc:date>2020-02-13T14:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Dual Function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1675375#M51293</link>
      <description>&lt;P&gt;May be this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count(DISTINCT {&amp;lt;[Master_LocalFiscalYear] = {$("=(SubField(MaxString([Master_LocalFiscalYear]), '/', 1)-1) &amp;amp; '/' &amp;amp; (SubField(MaxString([Master_LocalFiscalYear]), '/', 2)-1)"}, [ClassStatus] = {'Registered'}, [FinalStatus] = {'Absent', 'Failed', 'In-Progress', 'Passed'}&amp;gt;} [studentid])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 14:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1675375#M51293</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-13T14:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Dual Function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1675568#M51337</link>
      <description>&lt;P&gt;Hi SUnny,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answer. Unfortunately it does not work None of my previous year set analysis work with Local Fiscal Year. It only works with Calendar Year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 21:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1675568#M51337</guid>
      <dc:creator>brunov86</dc:creator>
      <dc:date>2020-02-13T21:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Dual Function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1675724#M51353</link>
      <description>&lt;P&gt;Try this expression.&lt;/P&gt;&lt;P&gt;count({&amp;lt;[Fiscal Year]= {"$(=max([Fiscal Year]-1)&amp;amp;'/'&amp;amp; max([Fiscal Year]))"} &amp;gt;} Date)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You will need to construct the string value inside your modifier&amp;nbsp; in some way, eg. '2020/2021'. I my example above I make use of the numeric value of my dual to construct the string.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works in my attached example.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/28428i593FA4DA2C1C9C08/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 10:34:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1675724#M51353</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-02-14T10:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Dual Function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1676672#M51440</link>
      <description>&lt;P&gt;Thank you very much Vegar.&lt;/P&gt;&lt;P&gt;It works really well !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 13:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1676672#M51440</guid>
      <dc:creator>brunov86</dc:creator>
      <dc:date>2020-02-18T13:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and Dual Function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1676760#M51445</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; glad I could help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 16:31:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-and-Dual-Function/m-p/1676760#M51445</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-02-18T16:31:38Z</dc:date>
    </item>
  </channel>
</rss>

