<?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 Dual function - Issue in a graph in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dual-function-Issue-in-a-graph/m-p/1762655#M59004</link>
    <description>&lt;P&gt;Hello Qlik community,&lt;/P&gt;&lt;P&gt;I have an issue with a dimension in a graph and dual function.&lt;/P&gt;&lt;P&gt;My measure has the following expression:&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[LocalMember] = {'1'}&lt;BR /&gt;,[AsofDate_Month]={$(=(Max(AsofDate_Month])))}&lt;BR /&gt;,[AsofDate_Day]={$(=(Max([AsofDate_Day])))}&lt;BR /&gt;&amp;gt;} Distinct PersonID)&lt;/P&gt;&lt;P&gt;My graph displays the count for every year.&lt;/P&gt;&lt;P&gt;In my source table, I have&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;One field which is a numeric value (AsofDate_Year) YYYY&lt;/LI&gt;&lt;LI&gt;One field which is a string value (Membership Year YYYY/YYYY+1). This is the year I want to display.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It seems that as I use a max in my measure, it is causing problem to use the string year.&lt;/P&gt;&lt;P&gt;No issue when I use the numeric year.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="issue_kyka_1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44391iB5BE9502B706BFD8/image-size/large?v=v2&amp;amp;px=999" role="button" title="issue_kyka_1.PNG" alt="issue_kyka_1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I created a dual in my script with these 2 fields.&lt;/P&gt;&lt;P&gt;Dual(Membership_Year, AsofDate_Year) as Membership_YearFull&lt;/P&gt;&lt;P&gt;When I use it as a dimension, I have blank values fin the graph.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="issue_kyka_2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44393i2C1EFD41570B0DBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="issue_kyka_2.PNG" alt="issue_kyka_2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas what is causing the issue?&lt;/P&gt;&lt;P&gt;Thanks everyone &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Nov 2020 17:22:48 GMT</pubDate>
    <dc:creator>brunov86</dc:creator>
    <dc:date>2020-11-18T17:22:48Z</dc:date>
    <item>
      <title>Dual function - Issue in a graph</title>
      <link>https://community.qlik.com/t5/App-Development/Dual-function-Issue-in-a-graph/m-p/1762655#M59004</link>
      <description>&lt;P&gt;Hello Qlik community,&lt;/P&gt;&lt;P&gt;I have an issue with a dimension in a graph and dual function.&lt;/P&gt;&lt;P&gt;My measure has the following expression:&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[LocalMember] = {'1'}&lt;BR /&gt;,[AsofDate_Month]={$(=(Max(AsofDate_Month])))}&lt;BR /&gt;,[AsofDate_Day]={$(=(Max([AsofDate_Day])))}&lt;BR /&gt;&amp;gt;} Distinct PersonID)&lt;/P&gt;&lt;P&gt;My graph displays the count for every year.&lt;/P&gt;&lt;P&gt;In my source table, I have&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;One field which is a numeric value (AsofDate_Year) YYYY&lt;/LI&gt;&lt;LI&gt;One field which is a string value (Membership Year YYYY/YYYY+1). This is the year I want to display.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It seems that as I use a max in my measure, it is causing problem to use the string year.&lt;/P&gt;&lt;P&gt;No issue when I use the numeric year.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="issue_kyka_1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44391iB5BE9502B706BFD8/image-size/large?v=v2&amp;amp;px=999" role="button" title="issue_kyka_1.PNG" alt="issue_kyka_1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I created a dual in my script with these 2 fields.&lt;/P&gt;&lt;P&gt;Dual(Membership_Year, AsofDate_Year) as Membership_YearFull&lt;/P&gt;&lt;P&gt;When I use it as a dimension, I have blank values fin the graph.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="issue_kyka_2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/44393i2C1EFD41570B0DBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="issue_kyka_2.PNG" alt="issue_kyka_2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas what is causing the issue?&lt;/P&gt;&lt;P&gt;Thanks everyone &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 17:22:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dual-function-Issue-in-a-graph/m-p/1762655#M59004</guid>
      <dc:creator>brunov86</dc:creator>
      <dc:date>2020-11-18T17:22:48Z</dc:date>
    </item>
  </channel>
</rss>

