<?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: Result of Expression Not Summing Correctly in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Result-of-Expression-Not-Summing-Correctly/m-p/2516187#M105765</link>
    <description>&lt;P&gt;Thank you so much. It wound up being a mix of both of your suggestions. I replaced the single quotes with double quotes;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;YearDimension={'CurrentYear'},FiscalMonthNBR={$(vMonthNumber)},EncounterDate={"&amp;lt;$(=DATE(Today(),'YYYY-MM-DD'))"}&amp;gt;}[Calendar.businessdayflg])&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Apr 2025 20:35:56 GMT</pubDate>
    <dc:creator>kdstrin1</dc:creator>
    <dc:date>2025-04-29T20:35:56Z</dc:date>
    <item>
      <title>Result of Expression Not Summing Correctly</title>
      <link>https://community.qlik.com/t5/App-Development/Result-of-Expression-Not-Summing-Correctly/m-p/2516167#M105763</link>
      <description>&lt;P&gt;I am trying to build an expression that determines the number of elapsed business days in the month. The Calendar.BusinessDayFlg field is either 1 or 0 for business day Y/N. The vMonthNumber is a variable to tie to current month on a fiscal year basis. The expression below gives me the OK message, yet the result of the expression is 0, which is not accurate. Running this on April 29, it should give me a result of 20 (excluding weekends, no holidays in April). Attached is an output of dimensions to show how the data is setup.&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;YearDimension={'CurrentYear'},FiscalMonthNBR={$(vMonthNumber)},EncounterDate={'&amp;lt;$(=DATE(Today(),'YYYY-MM-DD'))'}&amp;gt;}[Calendar.businessdayflg])&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 18:41:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Result-of-Expression-Not-Summing-Correctly/m-p/2516167#M105763</guid>
      <dc:creator>kdstrin1</dc:creator>
      <dc:date>2025-04-29T18:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Result of Expression Not Summing Correctly</title>
      <link>https://community.qlik.com/t5/App-Development/Result-of-Expression-Not-Summing-Correctly/m-p/2516185#M105764</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I believe the expression is almost there, with a very subtle mistake... In your filter for EncounterDate, you are enclosing the whole condition in single quotes, which means that you are trying to select that whole text&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'&amp;lt;$(=DATE(Today(),'YYYY-MM-DD'))' as a value in the Encounter Date field. I believe the correct syntax should be the following (swap the &amp;lt; and the ' &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;EncounterDate={&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&amp;lt;'&lt;/STRONG&gt;&lt;/FONT&gt;$(=DATE(Today(),'YYYY-MM-DD'))'}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This would work if your date is formatted as 'YYYY-MM-DD'. To be free from date formatting issue, you could use the advanced (expression) search, with double quotes and the equals sign:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;EncounterDate={&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;"=&lt;/FONT&gt;&lt;/STRONG&gt;EncounterDate &amp;lt;Today()&lt;FONT color="#0000FF"&gt;"&lt;/FONT&gt;}&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Allow me to invite you to my session on Set Analysis at the &lt;A href="https://masterssummit.com" target="_blank" rel="noopener"&gt;Masters Summit for Qlik&lt;/A&gt;, where I teach advanced uses of Set Analysis, along with many other advanced development techniques. Coming this fall to Hamburg, Germany!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 19:45:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Result-of-Expression-Not-Summing-Correctly/m-p/2516185#M105764</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2025-04-29T19:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Result of Expression Not Summing Correctly</title>
      <link>https://community.qlik.com/t5/App-Development/Result-of-Expression-Not-Summing-Correctly/m-p/2516187#M105765</link>
      <description>&lt;P&gt;Thank you so much. It wound up being a mix of both of your suggestions. I replaced the single quotes with double quotes;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;YearDimension={'CurrentYear'},FiscalMonthNBR={$(vMonthNumber)},EncounterDate={"&amp;lt;$(=DATE(Today(),'YYYY-MM-DD'))"}&amp;gt;}[Calendar.businessdayflg])&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 20:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Result-of-Expression-Not-Summing-Correctly/m-p/2516187#M105765</guid>
      <dc:creator>kdstrin1</dc:creator>
      <dc:date>2025-04-29T20:35:56Z</dc:date>
    </item>
  </channel>
</rss>

