<?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 Problem with Sheet Trigger Selecting Date Type? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Problem-with-Sheet-Trigger-Selecting-Date-Type/m-p/1696245#M63841</link>
    <description>&lt;P&gt;I am attempting to use the new Sheet Trigger functionality in the April 2020 release.&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;In the data load, I am defining the following fields:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LET vStartDate = Num(makedate(2017,10,1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Date($(vStartDate) + RangeSum(Peek('RowNum'), 1) - 1) AS Date&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Date(MonthStart(Date),'YY-MMM') as CYMo&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;So I set up a sheet trigger using "Select values in a field" option and field CYMo and entered the following formula in the value box:&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;=&lt;/SPAN&gt;&lt;SPAN&gt;Date(MonthStart(Today(0),'YY-MMM'))&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I also tried &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=(Date(MonthStart(Today(0),'YY-MMM')))&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Neither one worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Oddly enough, it works when I choose Toggle Field Selection instead of "Select values in field". I have confirmed the "Select values in field" works with other field types and manual entry of the value(s).&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:44:32 GMT</pubDate>
    <dc:creator>SDT</dc:creator>
    <dc:date>2024-11-16T18:44:32Z</dc:date>
    <item>
      <title>Problem with Sheet Trigger Selecting Date Type?</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-Sheet-Trigger-Selecting-Date-Type/m-p/1696245#M63841</link>
      <description>&lt;P&gt;I am attempting to use the new Sheet Trigger functionality in the April 2020 release.&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;In the data load, I am defining the following fields:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LET vStartDate = Num(makedate(2017,10,1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Date($(vStartDate) + RangeSum(Peek('RowNum'), 1) - 1) AS Date&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Date(MonthStart(Date),'YY-MMM') as CYMo&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;So I set up a sheet trigger using "Select values in a field" option and field CYMo and entered the following formula in the value box:&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;=&lt;/SPAN&gt;&lt;SPAN&gt;Date(MonthStart(Today(0),'YY-MMM'))&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I also tried &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=(Date(MonthStart(Today(0),'YY-MMM')))&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Neither one worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Oddly enough, it works when I choose Toggle Field Selection instead of "Select values in field". I have confirmed the "Select values in field" works with other field types and manual entry of the value(s).&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:44:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-Sheet-Trigger-Selecting-Date-Type/m-p/1696245#M63841</guid>
      <dc:creator>SDT</dc:creator>
      <dc:date>2024-11-16T18:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Sheet Trigger Selecting Date Type?</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-Sheet-Trigger-Selecting-Date-Type/m-p/1696480#M63842</link>
      <description>&lt;P&gt;Lots of trial and error and solved this.&lt;/P&gt;&lt;P&gt;Had to match the numeric date value for it to work:&lt;/P&gt;&lt;P&gt;=$(=NUM(Monthstart(Today(0))))&lt;/P&gt;&lt;P&gt;This should be in the Qlik documentation for this feature when matching dates in sheet triggers.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 12:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-Sheet-Trigger-Selecting-Date-Type/m-p/1696480#M63842</guid>
      <dc:creator>SDT</dc:creator>
      <dc:date>2020-04-24T12:22:40Z</dc:date>
    </item>
  </channel>
</rss>

