<?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 value in set expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/dual-value-in-set-expression/m-p/186574#M50613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have to use a fiscal year starting April 1st.&lt;/P&gt;&lt;P&gt;I have created dual values for year and fiscal year representation (FY 10-11, 2010) and I evaluate my fiscal year from the dates using year(addmonths(mydate, -3)).&lt;/P&gt;&lt;P&gt;This works as expected until it comes to set expressions.&lt;/P&gt;&lt;P&gt;I need to show the previous financial year value and tried&lt;/P&gt;&lt;P&gt;sum({&amp;lt;FIS_YEAR = { $(FIS_YEAR-1) }&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;FIS_YEAR - 1 returns me the numeric value (2009) while the FIS_YEAR in the set expression looks to be 'FY 09-10' because I can see that year total using sum({&amp;lt;FIS_YEAR = { 'FY 09-10' }&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;I haven't found a function that will give me the string value for the calculated fiscal year back. text() just returns the year as string but not the dual text value.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Jun 2010 04:49:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-13T04:49:22Z</dc:date>
    <item>
      <title>dual value in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/dual-value-in-set-expression/m-p/186574#M50613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have to use a fiscal year starting April 1st.&lt;/P&gt;&lt;P&gt;I have created dual values for year and fiscal year representation (FY 10-11, 2010) and I evaluate my fiscal year from the dates using year(addmonths(mydate, -3)).&lt;/P&gt;&lt;P&gt;This works as expected until it comes to set expressions.&lt;/P&gt;&lt;P&gt;I need to show the previous financial year value and tried&lt;/P&gt;&lt;P&gt;sum({&amp;lt;FIS_YEAR = { $(FIS_YEAR-1) }&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;FIS_YEAR - 1 returns me the numeric value (2009) while the FIS_YEAR in the set expression looks to be 'FY 09-10' because I can see that year total using sum({&amp;lt;FIS_YEAR = { 'FY 09-10' }&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;I haven't found a function that will give me the string value for the calculated fiscal year back. text() just returns the year as string but not the dual text value.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jun 2010 04:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dual-value-in-set-expression/m-p/186574#M50613</guid>
      <dc:creator />
      <dc:date>2010-06-13T04:49:22Z</dc:date>
    </item>
    <item>
      <title>dual value in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/dual-value-in-set-expression/m-p/186575#M50614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Juerg,&lt;/P&gt;&lt;P&gt;If I understand your problem correctly, you have a natural year (4 digit integer) and a derived, formatted string (FY 10-11) representing your fiscal year. If you are going to use set operations on the fiscal year, you will likely save yourself a lot of extra coding by simply creating a third field: the fiscal year as a four-digit integer. Then use the existing formatted string while presenting the fiscal year data, but use the handy integer number when performing SET operations. I hope my suggestion is useful.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jun 2010 05:58:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dual-value-in-set-expression/m-p/186575#M50614</guid>
      <dc:creator />
      <dc:date>2010-06-14T05:58:19Z</dc:date>
    </item>
    <item>
      <title>dual value in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/dual-value-in-set-expression/m-p/186576#M50615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James&lt;/P&gt;&lt;P&gt;Thought of this myself but it did not work as expected. I might have a data issue with this.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Juerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 14:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dual-value-in-set-expression/m-p/186576#M50615</guid>
      <dc:creator />
      <dc:date>2010-06-17T14:40:04Z</dc:date>
    </item>
    <item>
      <title>dual value in set expression</title>
      <link>https://community.qlik.com/t5/QlikView/dual-value-in-set-expression/m-p/186577#M50616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this post will help:&lt;/P&gt;&lt;P&gt;http://qliktips.blogspot.com/2010/01/more-on-dual-problem-in-sets.html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 14:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dual-value-in-set-expression/m-p/186577#M50616</guid>
      <dc:creator />
      <dc:date>2010-06-17T14:47:33Z</dc:date>
    </item>
  </channel>
</rss>

