<?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: problem with expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/problem-with-expression/m-p/1777372#M60311</link>
    <description>&lt;P&gt;It's a little difficult to figure out the issue without knowing the contents of your variables.&amp;nbsp; One thing that I do see is that you need to wrap your functions within set analysis with $(=&lt;EM&gt;function()&lt;/EM&gt;) to get it to calculate properly.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum({$&amp;lt;DO11_DATADOC1 = {"&amp;gt;=$(vInizioData1)&amp;lt;=$(vFineData1)"}&amp;gt; + $&amp;lt;DO11_DATADOC1 = {"&amp;gt;=$(=MakeWeekDate(Year(Addyears(date('$(vInizioData1)'), -1)), week(Date('$(vInizioData1)')), Num(weekday(date('$(vInizioData1)'))))) )&amp;lt;=$(=MakeWeekDate(Year(Addyears(date('$(vFineData1)'), -1)), week(Date('$(vFineData1)')), Num(weekday(date('$(vFineData1')))))) "}&amp;gt;} DO30_QTA1/6)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;One thing that you can do when trying to figure out what is wrong with a set analysis function is to look at the bottom of the Expression editor.&amp;nbsp; Below, the "OK", Qlik will display how it is interpretting the expression.&amp;nbsp; A screenshot of this would be more useful to diagnosing the issue.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2021 11:03:44 GMT</pubDate>
    <dc:creator>GaryGiles</dc:creator>
    <dc:date>2021-01-26T11:03:44Z</dc:date>
    <item>
      <title>problem with expression</title>
      <link>https://community.qlik.com/t5/App-Development/problem-with-expression/m-p/1777212#M60283</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;i have a problem with this expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;DO11_DATADOC1 = {"&amp;gt;=$(vInizioData1)&amp;lt;=$(vFineData1)"}&amp;gt; + $&amp;lt;DO11_DATADOC1 = {"&amp;gt;=MakeWeekDate(Year(Addyears(date('$(vInizioData1)'), -1)), week(Date('$(vInizioData1)')), Num(weekday(date('$(vInizioData1)')))) )&amp;lt;=MakeWeekDate(Year(Addyears(date('$(vFineData1)'), -1)), week(Date('$(vFineData1)')), Num(weekday(date('$(vFineData1'))))) "}&amp;gt;} DO30_QTA1/6)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;&amp;nbsp;it doesn't give me an error, but it doesn't give me a result. surely I have something wrong in the syntax, but I don't understand what.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 16:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/problem-with-expression/m-p/1777212#M60283</guid>
      <dc:creator>v_nicolino</dc:creator>
      <dc:date>2021-01-25T16:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: problem with expression</title>
      <link>https://community.qlik.com/t5/App-Development/problem-with-expression/m-p/1777372#M60311</link>
      <description>&lt;P&gt;It's a little difficult to figure out the issue without knowing the contents of your variables.&amp;nbsp; One thing that I do see is that you need to wrap your functions within set analysis with $(=&lt;EM&gt;function()&lt;/EM&gt;) to get it to calculate properly.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum({$&amp;lt;DO11_DATADOC1 = {"&amp;gt;=$(vInizioData1)&amp;lt;=$(vFineData1)"}&amp;gt; + $&amp;lt;DO11_DATADOC1 = {"&amp;gt;=$(=MakeWeekDate(Year(Addyears(date('$(vInizioData1)'), -1)), week(Date('$(vInizioData1)')), Num(weekday(date('$(vInizioData1)'))))) )&amp;lt;=$(=MakeWeekDate(Year(Addyears(date('$(vFineData1)'), -1)), week(Date('$(vFineData1)')), Num(weekday(date('$(vFineData1')))))) "}&amp;gt;} DO30_QTA1/6)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;One thing that you can do when trying to figure out what is wrong with a set analysis function is to look at the bottom of the Expression editor.&amp;nbsp; Below, the "OK", Qlik will display how it is interpretting the expression.&amp;nbsp; A screenshot of this would be more useful to diagnosing the issue.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 11:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/problem-with-expression/m-p/1777372#M60311</guid>
      <dc:creator>GaryGiles</dc:creator>
      <dc:date>2021-01-26T11:03:44Z</dc:date>
    </item>
  </channel>
</rss>

