<?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: Is it possible to add calculation expressions in Main content? in Archived Groups</title>
    <link>https://community.qlik.com/t5/Archived-Groups/Is-it-possible-to-add-calculation-expressions-in-Main-content/m-p/85052#M967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have tried the above, but it is not working. The formula is not getting resolved into a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. I have added 3 calculations in the mail content and First line of the mail is a notification sentence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Feb 2018 11:36:38 GMT</pubDate>
    <dc:creator>Qlik_Enthu</dc:creator>
    <dc:date>2018-02-15T11:36:38Z</dc:date>
    <item>
      <title>Is it possible to add calculation expressions in Main content?</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Is-it-possible-to-add-calculation-expressions-in-Main-content/m-p/85050#M965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Wanted to display summary of values in my mail body. How to achieve that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2025 17:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Is-it-possible-to-add-calculation-expressions-in-Main-content/m-p/85050#M965</guid>
      <dc:creator>Qlik_Enthu</dc:creator>
      <dc:date>2025-07-22T17:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add calculation expressions in Main content?</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Is-it-possible-to-add-calculation-expressions-in-Main-content/m-p/85051#M966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you referring to the "Alert" email functionality? If so yes, just make an expression, same as you would on a text box like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Sales this week ' &amp;amp; Num (Sum ({&amp;lt;Date = {"&amp;gt;=$(=WeekStart (Today()))"}&amp;gt;} Sales), '# ##0', ',', ' ')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 09:23:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Is-it-possible-to-add-calculation-expressions-in-Main-content/m-p/85051#M966</guid>
      <dc:creator>johanlindell</dc:creator>
      <dc:date>2018-02-15T09:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add calculation expressions in Main content?</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Is-it-possible-to-add-calculation-expressions-in-Main-content/m-p/85052#M967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have tried the above, but it is not working. The formula is not getting resolved into a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. I have added 3 calculations in the mail content and First line of the mail is a notification sentence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 11:36:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Is-it-possible-to-add-calculation-expressions-in-Main-content/m-p/85052#M967</guid>
      <dc:creator>Qlik_Enthu</dc:creator>
      <dc:date>2018-02-15T11:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add calculation expressions in Main content?</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Is-it-possible-to-add-calculation-expressions-in-Main-content/m-p/85053#M968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried to put the formula in to a Text box to see if it works? You have to start with an equal sign (or a dollar-expansion?):&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'Sales this week ' &amp;amp; Num (Sum ({&amp;lt;Date = {"&amp;gt;=$(=WeekStart (Today()))"}&amp;gt;} Sales), '# ##0', ',', ' ')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If the above does not work then there is something wrong. You could also put the message into a variable and use the variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SubjectSales:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD Sum (Sales) as SalesThisWeek&lt;/P&gt;&lt;P&gt;Resident Invioces&lt;/P&gt;&lt;P&gt;Where Date &amp;gt;= WeekStart (Today ())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET SubjectSales = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'Sales this week ' &amp;amp; Num (Peek ('&lt;SPAN style="font-size: 13.3333px;"&gt;SalesThisWeek&lt;/SPAN&gt;', 0, 'SubjectSales'), '# ##0', ',', ' ');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DROP Table SubjectSales;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;and then set the subject to =&lt;SPAN style="font-size: 13.3333px;"&gt;SubjectSales &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I usually make a page with textboxes for recipients, conditions, subject and messages. Then I create variables for these and check that the formulas are working OK. And then use the formulas in the Alerts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Variable: vL.AlertNetSalesSubject&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Formula: 'Net Sales ' &amp;amp; Capitalize (Date (Today () - 1, 'MMMM')) &amp;amp; ' '&amp;amp; Year (Today () - 1) &amp;amp; ': ' &amp;amp; Num(Sum ({$&amp;lt;Year = {'$(=Year (Today () - 1))'}, Month = {'$(=Month (Today () - 1))'}, [Sales type] = {'Product sales'}&amp;gt;}&amp;nbsp; [Net amount company currency])/1000000, '0,0' &amp;amp; ' MSEK')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Textbox: =$(vL.AlertNetSalesSubject)&lt;/P&gt;&lt;P&gt;Alert Subject: =$(vL.&lt;SPAN style="font-size: 13.3333px;"&gt;AlertNetSalesSubject&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above works. Checking that it works in a text box makes sure you get the '-characters right and the $-expansions correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Johan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 11:55:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Is-it-possible-to-add-calculation-expressions-in-Main-content/m-p/85053#M968</guid>
      <dc:creator>johanlindell</dc:creator>
      <dc:date>2018-02-15T11:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add calculation expressions in Main content?</title>
      <link>https://community.qlik.com/t5/Archived-Groups/Is-it-possible-to-add-calculation-expressions-in-Main-content/m-p/85054#M969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi The above formula I used is already implemented as a KPI.&lt;/P&gt;&lt;P&gt;Let me try again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 11:59:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Archived-Groups/Is-it-possible-to-add-calculation-expressions-in-Main-content/m-p/85054#M969</guid>
      <dc:creator>Qlik_Enthu</dc:creator>
      <dc:date>2018-02-15T11:59:42Z</dc:date>
    </item>
  </channel>
</rss>

