<?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: Syntax using FirstSortedValue in set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Syntax-using-FirstSortedValue-in-set-Analysis/m-p/1795870#M1211201</link>
    <description>&lt;P&gt;Thanks Rob&lt;/P&gt;</description>
    <pubDate>Wed, 31 Mar 2021 07:02:11 GMT</pubDate>
    <dc:creator>QFanatic</dc:creator>
    <dc:date>2021-03-31T07:02:11Z</dc:date>
    <item>
      <title>Syntax using FirstSortedValue in set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-using-FirstSortedValue-in-set-Analysis/m-p/1795617#M1211177</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a model that contains FY in Dual format (created using&amp;nbsp;Dual(fYear-1 &amp;amp;'/'&amp;amp; fYear, fYear) as FY).&lt;/P&gt;&lt;P&gt;In my Set analysis I want to count Distinct Periods where the PeriodID = max PeriodID for my FY(Financial year)&lt;/P&gt;&lt;P&gt;The syntax looks like this...&lt;/P&gt;&lt;P&gt;count({&amp;lt;Channel = {'Banking App'},CostName={'Prev_Yr_Actuals'},Table_Type = {'Rates'},FY = {'=firstsortedvalue(FY,-PeriodID)'}&amp;gt;}DISTINCT Period)&lt;/P&gt;&lt;P&gt;however, the statement doesnt resolve correctly..it resolves to:&lt;/P&gt;&lt;P&gt;FY={'=firstsortedvalue(FY,-PeriodID)'...&lt;/P&gt;&lt;P&gt;1.How do I correct this? Keep in mind my FY is dual...&lt;/P&gt;&lt;P&gt;2. Can I put this in a variable for re-use? If so - how would the syntax look like?&lt;/P&gt;&lt;P&gt;Much appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 10:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-using-FirstSortedValue-in-set-Analysis/m-p/1795617#M1211177</guid>
      <dc:creator>QFanatic</dc:creator>
      <dc:date>2021-03-30T10:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax using FirstSortedValue in set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-using-FirstSortedValue-in-set-Analysis/m-p/1795726#M1211187</link>
      <description>&lt;P&gt;&lt;SPAN&gt;FY = {"$(=firstsortedvalue(FY,-PeriodID))"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Rob&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 15:34:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-using-FirstSortedValue-in-set-Analysis/m-p/1795726#M1211187</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2021-03-30T15:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax using FirstSortedValue in set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-using-FirstSortedValue-in-set-Analysis/m-p/1795870#M1211201</link>
      <description>&lt;P&gt;Thanks Rob&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 07:02:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-using-FirstSortedValue-in-set-Analysis/m-p/1795870#M1211201</guid>
      <dc:creator>QFanatic</dc:creator>
      <dc:date>2021-03-31T07:02:11Z</dc:date>
    </item>
  </channel>
</rss>

