<?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: Sum If Expression in Reporting Service &amp; Alerting</title>
    <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Sum-If-Expression/m-p/1966253#M332</link>
    <description>&lt;P&gt;Hey Luiz,&lt;/P&gt;
&lt;P&gt;thank you for your commitment. I have tried different brackets, but it was not successful..&lt;/P&gt;
&lt;P&gt;Without the else-condition, the expression works and I get the sum of cost center amount by the cost center I have listed...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone have an idea??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Aug 2022 06:09:52 GMT</pubDate>
    <dc:creator>surtex</dc:creator>
    <dc:date>2022-08-09T06:09:52Z</dc:date>
    <item>
      <title>Sum If Expression</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Sum-If-Expression/m-p/1965988#M329</link>
      <description>&lt;P&gt;Hey Qlik-Member,&lt;/P&gt;
&lt;P&gt;I'm currently stuck with data visualization. Following I'll describe my problem:&lt;/P&gt;
&lt;P&gt;=If([PC_Mapping*]='00000001850999011200' or [PC_Mapping*]='00000001850999011201',(Sum({&amp;lt;Cost_Center = {'1940146024','1940146026','1940146084'}&amp;gt;} Cost_Center_Amount), [Sum(Cost_Center_Amount)]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the Profit Center =&amp;nbsp;00000001850999011200, 00000001850999011201 then I need the Summation of Cost_Center_Amount by&amp;nbsp;the Cost Centers =&amp;nbsp;1940146024, 1940146026,1940146084 and for all other Profit Center I need the Summation of Cost_Center_Amount by all Cost Centers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you understand my problem and can help me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regard&lt;/P&gt;
&lt;P&gt;Josh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:05:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Sum-If-Expression/m-p/1965988#M329</guid>
      <dc:creator>surtex</dc:creator>
      <dc:date>2024-11-15T22:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sum If Expression</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Sum-If-Expression/m-p/1966104#M331</link>
      <description>&lt;P&gt;Hi Josh,&lt;/P&gt;
&lt;P&gt;I don't see anything wrong with the logic, the only problem seems that you might be placing the brackets in the wrong place. Also, does the field PC_Mapping* has an asterisk in it? If so,&amp;nbsp; try the below:&lt;/P&gt;
&lt;P&gt;If([PC_Mapping*]='00000001850999011200' or [PC_Mapping*]='00000001850999011201',Sum({&amp;lt;Cost_Center = {'1940146024','1940146026','1940146084'}&amp;gt;} Cost_Center_Amount),Sum(Cost_Center_Amount))&lt;/P&gt;
&lt;P&gt;I hope it works.&lt;/P&gt;
&lt;P&gt;Luiz&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 17:29:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Sum-If-Expression/m-p/1966104#M331</guid>
      <dc:creator>luizcdepaula</dc:creator>
      <dc:date>2022-08-08T17:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sum If Expression</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Sum-If-Expression/m-p/1966253#M332</link>
      <description>&lt;P&gt;Hey Luiz,&lt;/P&gt;
&lt;P&gt;thank you for your commitment. I have tried different brackets, but it was not successful..&lt;/P&gt;
&lt;P&gt;Without the else-condition, the expression works and I get the sum of cost center amount by the cost center I have listed...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone have an idea??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 06:09:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Sum-If-Expression/m-p/1966253#M332</guid>
      <dc:creator>surtex</dc:creator>
      <dc:date>2022-08-09T06:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sum If Expression</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Sum-If-Expression/m-p/1966345#M334</link>
      <description>&lt;P&gt;Maybe this in the script;&lt;/P&gt;
&lt;P&gt;IF([PC_Mapping*] = '00000001850999011200' OR [PC_Mapping*] = '00000001850999011201' AND MATCH(Cost_Center,'1940146024','1940146026','1940146084'),Cost_Center_Amount,&lt;BR /&gt;Cost_Center_Amount) AS New_Cost_Center_Amount&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 09:11:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Sum-If-Expression/m-p/1966345#M334</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-08-09T09:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sum If Expression</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Sum-If-Expression/m-p/1966374#M335</link>
      <description>&lt;P&gt;Hey again,&lt;/P&gt;
&lt;P&gt;sorry Luiz, i had a comma error.. it works fine, thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But now i take the next problem:&lt;/P&gt;
&lt;P&gt;Related to the expression above, I want a year limit without setting a extra filter..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anybody help me?&lt;/P&gt;
&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 09:42:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Sum-If-Expression/m-p/1966374#M335</guid>
      <dc:creator>surtex</dc:creator>
      <dc:date>2022-08-09T09:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sum If Expression</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Sum-If-Expression/m-p/1966550#M336</link>
      <description>&lt;P&gt;Hi Josh,&lt;/P&gt;
&lt;P&gt;I am glad it worked. On the year limit, can you be more specific? you want to show a year worth of data, like 365 days every time, or set it current year?&lt;/P&gt;
&lt;P&gt;I always like to set my logic to Max(Year) so it defaults to current year for me, then every time other years are selected, only one year at a time will show, which will be the Max year selected.&lt;/P&gt;
&lt;P&gt;Let me know if it helps.&lt;/P&gt;
&lt;P&gt;Luiz&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 12:56:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Sum-If-Expression/m-p/1966550#M336</guid>
      <dc:creator>luizcdepaula</dc:creator>
      <dc:date>2022-08-09T12:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sum If Expression</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Sum-If-Expression/m-p/1966682#M340</link>
      <description>&lt;P&gt;Yeah, sure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a bar chart with four KPI‘s.&lt;/P&gt;
&lt;P&gt;1) Actual Year to Date Sales (no problem)&lt;/P&gt;
&lt;P&gt;2) Forecast Sales (no problem)&lt;/P&gt;
&lt;P&gt;3) Sales Previous Year (Year 2021 for example, it’s a problem)&lt;/P&gt;
&lt;P&gt;4) Sales Percentage (no problem)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I create for each bar a KPI and I would like to show the 3. KPI without setting a separat filter anyway. It is possible to paste a year in the expression above? I hope you can understand me. Otherwise I will show you the problem by posting snippings.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Josh&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 16:49:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Sum-If-Expression/m-p/1966682#M340</guid>
      <dc:creator>surtex</dc:creator>
      <dc:date>2022-08-09T16:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sum If Expression</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Sum-If-Expression/m-p/1966707#M341</link>
      <description>&lt;P&gt;Try the below:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If([PC_Mapping*]='00000001850999011200' or [PC_Mapping*]='00000001850999011201',Sum({&amp;lt;Cost_Center = {'1940146024','1940146026','1940146084'},&lt;STRONG&gt;Year={"$(=Year(today())-1)"}&lt;/STRONG&gt;&amp;gt;} Cost_Center_Amount),Sum({&amp;lt;&lt;STRONG&gt;Year={"$(=Year(today())-1)"}&lt;/STRONG&gt;&amp;gt;}Cost_Center_Amount))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Luiz&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2022 17:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Sum-If-Expression/m-p/1966707#M341</guid>
      <dc:creator>luizcdepaula</dc:creator>
      <dc:date>2022-08-09T17:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sum If Expression</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Sum-If-Expression/m-p/1967617#M342</link>
      <description>&lt;P&gt;Hey Luiz,&lt;/P&gt;
&lt;P&gt;unfortunately the expression doesn’t work, so I get no value at all.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don‘t know but I think it‘s because too many conditions have now been met or isn’t that a problem for Qlik?&lt;/P&gt;
&lt;P&gt;The database behind is structured as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Raw Data (QVD File):&lt;/P&gt;
&lt;P&gt;Columns: Cost_Center, Cost_Center_Amount, Cost_Element,Month, Year&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Profit Center / Cost Element Mapping (Excel):&lt;/P&gt;
&lt;P&gt;Columns: Cost_Center, Profit_Center, Profit_Center_Code &amp;nbsp;(&lt;SPAN&gt;00000001850999011201,…)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for your help, I‘m very grateful to you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 09:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Sum-If-Expression/m-p/1967617#M342</guid>
      <dc:creator>surtex</dc:creator>
      <dc:date>2022-08-11T09:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sum If Expression</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Sum-If-Expression/m-p/1967840#M343</link>
      <description>&lt;P&gt;Hi Josh,&lt;/P&gt;
&lt;P&gt;It doesn't have to do with the number of conditions in this case. If that was the issue, you would get a different error, indicating the calculations were unable to finish. If you are getting blank results, it has probably to do with the way the data model is designed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the condition on the year, without the Profit Center condition and see if it works.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Luiz&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 15:00:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Sum-If-Expression/m-p/1967840#M343</guid>
      <dc:creator>luizcdepaula</dc:creator>
      <dc:date>2022-08-11T15:00:20Z</dc:date>
    </item>
  </channel>
</rss>

