<?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 Issue with getfieldselections for dates in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Issue-with-getfieldselections-for-dates/m-p/1674391#M51166</link>
    <description>&lt;P&gt;Hi&amp;nbsp; -&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a KPI with the following formula to display the filter selections:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IF(GetFieldSelections([DATE.autoCalendar.Year])&amp;gt;0,(GetFieldSelections([DATE.autoCalendar.Year])&amp;amp;';'),'')&amp;amp;' '&amp;amp;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;IF(GetFieldSelections([DATE.autoCalendar.YearMonth])&amp;gt;0,(GetFieldSelections([DATE.autoCalendar.YearMonth])&amp;amp;';'),'')&amp;amp;' '&amp;amp;IF(GetFieldSelections(DEPARTMENT)&amp;gt;0,(GetFieldSelections(DEPARTMENT)&amp;amp;';'),'')&amp;amp;' '&amp;amp;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;IF(GetFieldSelections(CSCATEGORY)&amp;gt;0,(GetFieldSelections(CSCATEGORY)&amp;amp;';'),'')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The Filters on the sheet lets the user select&amp;nbsp; the following:&lt;/P&gt;&lt;P&gt;* Year (field:&amp;nbsp;[DATE.autoCalendar.Year])&lt;/P&gt;&lt;P&gt;* Month (field:&amp;nbsp;[DATE.autoCalendar.YearMonth])&lt;/P&gt;&lt;P&gt;* Department (field: DEPARTMENT)&lt;/P&gt;&lt;P&gt;* Category (field: CSCATEGORY)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The KPI will display the DEPARTMENT and CSCATEGORY&amp;nbsp; but not the Dates.&lt;/P&gt;&lt;P&gt;Any thoughts ?&amp;nbsp; Jerry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2020 13:12:44 GMT</pubDate>
    <dc:creator>jerryr125</dc:creator>
    <dc:date>2020-02-11T13:12:44Z</dc:date>
    <item>
      <title>Issue with getfieldselections for dates</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-getfieldselections-for-dates/m-p/1674391#M51166</link>
      <description>&lt;P&gt;Hi&amp;nbsp; -&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a KPI with the following formula to display the filter selections:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IF(GetFieldSelections([DATE.autoCalendar.Year])&amp;gt;0,(GetFieldSelections([DATE.autoCalendar.Year])&amp;amp;';'),'')&amp;amp;' '&amp;amp;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;IF(GetFieldSelections([DATE.autoCalendar.YearMonth])&amp;gt;0,(GetFieldSelections([DATE.autoCalendar.YearMonth])&amp;amp;';'),'')&amp;amp;' '&amp;amp;IF(GetFieldSelections(DEPARTMENT)&amp;gt;0,(GetFieldSelections(DEPARTMENT)&amp;amp;';'),'')&amp;amp;' '&amp;amp;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;IF(GetFieldSelections(CSCATEGORY)&amp;gt;0,(GetFieldSelections(CSCATEGORY)&amp;amp;';'),'')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The Filters on the sheet lets the user select&amp;nbsp; the following:&lt;/P&gt;&lt;P&gt;* Year (field:&amp;nbsp;[DATE.autoCalendar.Year])&lt;/P&gt;&lt;P&gt;* Month (field:&amp;nbsp;[DATE.autoCalendar.YearMonth])&lt;/P&gt;&lt;P&gt;* Department (field: DEPARTMENT)&lt;/P&gt;&lt;P&gt;* Category (field: CSCATEGORY)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The KPI will display the DEPARTMENT and CSCATEGORY&amp;nbsp; but not the Dates.&lt;/P&gt;&lt;P&gt;Any thoughts ?&amp;nbsp; Jerry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 13:12:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-getfieldselections-for-dates/m-p/1674391#M51166</guid>
      <dc:creator>jerryr125</dc:creator>
      <dc:date>2020-02-11T13:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with getfieldselections for dates</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-getfieldselections-for-dates/m-p/1674499#M51180</link>
      <description>&lt;P&gt;Hi Jerry,&lt;/P&gt;&lt;P&gt;Rather using getfieldselection() i would suggest you to use getselectedcount() method&lt;/P&gt;&lt;P&gt;I used this expression and it works fine for me with dates too.&lt;/P&gt;&lt;P&gt;if(GetSelectedCount(Date)&amp;gt;0,Date(GetFieldSelections(Date)),&lt;BR /&gt;if(GetSelectedCount(Department)&amp;gt;0,GetFieldSelections(Department),&lt;BR /&gt;if(GetSelectedCount(Category)&amp;gt;0,GetFieldSelections(Category),&lt;BR /&gt;if(GetSelectedCount(Year)&amp;gt;0,Date(Date#(GetFieldSelections(Year),'YYYY'),'YYYY'))&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 16:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-getfieldselections-for-dates/m-p/1674499#M51180</guid>
      <dc:creator>Prashant_Naik</dc:creator>
      <dc:date>2020-02-11T16:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with getfieldselections for dates</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-getfieldselections-for-dates/m-p/1674546#M51183</link>
      <description>&lt;P&gt;Hi - thanks for the help - appreciate it!&lt;/P&gt;&lt;P&gt;I tried the above and unfortunately no luck.&lt;/P&gt;&lt;P&gt;I did a modification - the department and category appear but again, not the date:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IF(GetSelectedCount([DATE.autoCalendar.Year])&amp;gt;0,(GetFieldSelections([DATE.autoCalendar.Year])&amp;amp;';'),'')&amp;amp;' '&amp;amp;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;IF(GetSelectedCount([DATE.autoCalendar.YearMonth])&amp;gt;0,(GetFieldSelections([DATE.autoCalendar.YearMonth])&amp;amp;';'),'')&amp;amp;' '&amp;amp;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;IF(GetSelectedCount(DEPARTMENT)&amp;gt;0,(GetFieldSelections(DEPARTMENT)&amp;amp;';'),'')&amp;amp;' '&amp;amp;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;IF(GetSelectedCount(CSCATEGORY)&amp;gt;0,(GetFieldSelections(CSCATEGORY)&amp;amp;';'),'')&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 19:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-getfieldselections-for-dates/m-p/1674546#M51183</guid>
      <dc:creator>jerryr125</dc:creator>
      <dc:date>2020-02-11T19:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with getfieldselections for dates</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-getfieldselections-for-dates/m-p/1675001#M51238</link>
      <description>&lt;P&gt;Hi jerry,&lt;/P&gt;&lt;P&gt;i have same implemented it and it works for me, Please find the image attached.&lt;/P&gt;&lt;P&gt;i have used this expression.&lt;/P&gt;&lt;P&gt;if(GetSelectedCount(Category)&amp;gt;0,GetFieldSelections(Category)&amp;amp;';','')&lt;BR /&gt;&amp;amp;' '&amp;amp;if(GetSelectedCount(Department)&amp;gt;0,GetFieldSelections(Department)&amp;amp;';','')&lt;BR /&gt;&amp;amp;' '&amp;amp;if(GetSelectedCount(Date)&amp;gt;0,GetFieldSelections(Date)&amp;amp;';','')&lt;BR /&gt;&amp;amp;' '&amp;amp;if(GetSelectedCount(Year)&amp;gt;0,GetFieldSelections(Year)&amp;amp;';','')&lt;/P&gt;&lt;P&gt;and it worked.&lt;/P&gt;&lt;P&gt;i would like you to check the date format.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 19:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-getfieldselections-for-dates/m-p/1675001#M51238</guid>
      <dc:creator>Prashant_Naik</dc:creator>
      <dc:date>2020-02-12T19:00:23Z</dc:date>
    </item>
  </channel>
</rss>

