<?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: Setting Date on Sheet activation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Setting-Date-on-Sheet-activation/m-p/2520367#M106412</link>
    <description>&lt;P&gt;This is obviously massively cut down and pointed at inline tables, as my actual copy takes the data from our Business Central 365 data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully it behaves the same!&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jun 2025 10:50:37 GMT</pubDate>
    <dc:creator>Oggy172</dc:creator>
    <dc:date>2025-06-06T10:50:37Z</dc:date>
    <item>
      <title>Setting Date on Sheet activation</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-Date-on-Sheet-activation/m-p/2520071#M106364</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can't seem to get this to work properly.&lt;/P&gt;&lt;P&gt;I want to preset a field (LoggedDate) as Yesterdays Date. Logged Date is natively in format "DD/MM/YYYY hh:mm"&lt;/P&gt;&lt;P&gt;so I have the below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;	
    Calendar:
    LOAD
		date(Date,'YYYYMMDD') 		AS 	TodaysDate,
        date(Date-1,'YYYYMMDD') 	AS 	YesterdaysDate
	FROM
	[lib://QVD Data:Office_365_Sharepoint - a@b.com.com//Shared Documents/QlikSaaS/Calendar2.qvd]
	(qvd)
    where Date = Today();
    
    
    let vToday = peek('TodaysDate', -1, 'Calendar');
    let vYesterday = peek('YesterdaysDate', -1, 'Calendar');&lt;/LI-CODE&gt;&lt;P&gt;To set the variables....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and this to grab the logfile:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ChangeLog]:
LOAD	
	[Entry_No],
	[Date_and_Time],
   	date(floor([Date_and_Time]),'YYYYMMDD') as LoggedDate
Resident [Rest Connection Master Table]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then have an action to "Set Field Values" for LoggedDate to =$(vYesterday)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it doesnt do anything, if I surround the two parts of the load script in NUM() it works, so it seems its format related, but try as I may, I cannot get it working&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:01:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-Date-on-Sheet-activation/m-p/2520071#M106364</guid>
      <dc:creator>Oggy172</dc:creator>
      <dc:date>2025-06-04T10:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Date on Sheet activation</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-Date-on-Sheet-activation/m-p/2520350#M106406</link>
      <description>&lt;P&gt;Can you remove the = from&amp;nbsp;&lt;SPAN&gt;=$(vYesterday)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and try again?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 09:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-Date-on-Sheet-activation/m-p/2520350#M106406</guid>
      <dc:creator>-SW-</dc:creator>
      <dc:date>2025-06-06T09:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Date on Sheet activation</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-Date-on-Sheet-activation/m-p/2520353#M106407</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Oggy172_0-1749203853263.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/181090i96C4585B3D6BE98D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Oggy172_0-1749203853263.png" alt="Oggy172_0-1749203853263.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you mean in the set field value, then it forces it when I close the expression editor&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 09:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-Date-on-Sheet-activation/m-p/2520353#M106407</guid>
      <dc:creator>Oggy172</dc:creator>
      <dc:date>2025-06-06T09:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Date on Sheet activation</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-Date-on-Sheet-activation/m-p/2520354#M106408</link>
      <description>&lt;P&gt;As in, remove that character "=" after the expression editor in that screenshot as you see it.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 10:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-Date-on-Sheet-activation/m-p/2520354#M106408</guid>
      <dc:creator>-SW-</dc:creator>
      <dc:date>2025-06-06T10:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Date on Sheet activation</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-Date-on-Sheet-activation/m-p/2520357#M106409</link>
      <description>&lt;P&gt;Ah, didn't think of that, sadly it's the same....&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Oggy172_0-1749205041917.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/181091i4BBF83C8363CA81E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Oggy172_0-1749205041917.png" alt="Oggy172_0-1749205041917.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No filter applied...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would it be beneficial to upload an anonymised sample?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 10:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-Date-on-Sheet-activation/m-p/2520357#M106409</guid>
      <dc:creator>Oggy172</dc:creator>
      <dc:date>2025-06-06T10:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Date on Sheet activation</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-Date-on-Sheet-activation/m-p/2520358#M106410</link>
      <description>&lt;P&gt;Go for it, I can have a quick look.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 10:21:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-Date-on-Sheet-activation/m-p/2520358#M106410</guid>
      <dc:creator>-SW-</dc:creator>
      <dc:date>2025-06-06T10:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Date on Sheet activation</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-Date-on-Sheet-activation/m-p/2520367#M106412</link>
      <description>&lt;P&gt;This is obviously massively cut down and pointed at inline tables, as my actual copy takes the data from our Business Central 365 data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully it behaves the same!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 10:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-Date-on-Sheet-activation/m-p/2520367#M106412</guid>
      <dc:creator>Oggy172</dc:creator>
      <dc:date>2025-06-06T10:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Date on Sheet activation</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-Date-on-Sheet-activation/m-p/2520369#M106413</link>
      <description>&lt;P&gt;Maybe instead using "Select values in field" try "Select values matching search criteria". It will probably work.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 10:53:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-Date-on-Sheet-activation/m-p/2520369#M106413</guid>
      <dc:creator>Adam_Romanowski</dc:creator>
      <dc:date>2025-06-06T10:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Date on Sheet activation</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-Date-on-Sheet-activation/m-p/2520373#M106414</link>
      <description>&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes this worked, though I am keen to know why the first solution didn't - as that seems the obvious pick (and worked when I converted the date to it's number/serial)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 11:02:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-Date-on-Sheet-activation/m-p/2520373#M106414</guid>
      <dc:creator>Oggy172</dc:creator>
      <dc:date>2025-06-06T11:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Date on Sheet activation</title>
      <link>https://community.qlik.com/t5/App-Development/Setting-Date-on-Sheet-activation/m-p/2520375#M106416</link>
      <description>&lt;P&gt;I suggest to avoid always to match/calculate anything against formatted values else using only pure numeric values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Beside this I would tend to skip the variable stuff and using an appropriate flag-field from the calendar, for example:&lt;/P&gt;&lt;P&gt;DateField - today() as Flag&lt;/P&gt;&lt;P&gt;and then 0 means today and -1 relates to yesterday.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 11:41:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Setting-Date-on-Sheet-activation/m-p/2520375#M106416</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2025-06-06T11:41:26Z</dc:date>
    </item>
  </channel>
</rss>

