<?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: Day from Yesterday in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Day-from-Yesterday/m-p/2044375#M85941</link>
    <description>&lt;P&gt;Try it in this way:&amp;nbsp;&lt;SPAN&gt;Sum({&amp;lt;Tag={"$(=max(Tag)-1)"}&amp;gt;} [nicht abgerechnet])&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Mar 2023 10:52:03 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2023-03-02T10:52:03Z</dc:date>
    <item>
      <title>Day from Yesterday</title>
      <link>https://community.qlik.com/t5/App-Development/Day-from-Yesterday/m-p/2044364#M85940</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a problem. My formula works for today but not for yesterday. I have already inserted -1 after day but it doesn't show me anything. &lt;BR /&gt;What have I done wrong?&lt;/P&gt;
&lt;P&gt;This is my formula that works&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;Tag={'$(=max(Tag))'}&amp;gt;}[nicht abgerechnet])&lt;/P&gt;
&lt;P&gt;Why doesn't it work?&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;Tag={'$(=max(Tag-1))'}&amp;gt;}[nicht abgerechnet])&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 10:39:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Day-from-Yesterday/m-p/2044364#M85940</guid>
      <dc:creator>Controller1</dc:creator>
      <dc:date>2023-03-02T10:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Day from Yesterday</title>
      <link>https://community.qlik.com/t5/App-Development/Day-from-Yesterday/m-p/2044375#M85941</link>
      <description>&lt;P&gt;Try it in this way:&amp;nbsp;&lt;SPAN&gt;Sum({&amp;lt;Tag={"$(=max(Tag)-1)"}&amp;gt;} [nicht abgerechnet])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 10:52:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Day-from-Yesterday/m-p/2044375#M85941</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-03-02T10:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Day from Yesterday</title>
      <link>https://community.qlik.com/t5/App-Development/Day-from-Yesterday/m-p/2048845#M86223</link>
      <description>&lt;P&gt;we tried with way&lt;/P&gt;
&lt;P&gt;=if(ISNULL( GetFieldSelections([Tag])), Sum ( {$&amp;lt;[Tag] = {"$(=date(today()-1,'DD.MM.YYYY'))"}&amp;gt;} [nicht abgerechnet] ), sum({&amp;lt;Tag={'$(=Date(getfieldselections(Tag) -1))'}&amp;gt;} [nicht abgerechnet]) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;your way didnt´t show me the right figures. I don´t no why but thanks for your help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 08:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Day-from-Yesterday/m-p/2048845#M86223</guid>
      <dc:creator>Controller1</dc:creator>
      <dc:date>2023-03-14T08:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Day from Yesterday</title>
      <link>https://community.qlik.com/t5/App-Development/Day-from-Yesterday/m-p/2048847#M86224</link>
      <description>&lt;P&gt;It wasn't obvious that your [Tag] isn't a day else a formatted date. Try it again with:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sum({&amp;lt;Tag={"$(=&lt;STRONG&gt;date(&lt;/STRONG&gt;max(Tag)-1)&lt;STRONG&gt;)&lt;/STRONG&gt;"}&amp;gt;} [nicht abgerechnet])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Each calculation on a field like the max() or just Field - 1 removed any formatting and returned a pure number. But within the Set Analysis the comparing happens on a string-level and therefore including the formatting which is now not matching anymore. Exceptions are a &amp;gt;= &amp;lt;= comparing which goes to the numeric values behind any format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 08:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Day-from-Yesterday/m-p/2048847#M86224</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-03-14T08:37:21Z</dc:date>
    </item>
  </channel>
</rss>

