<?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 Writing an IF THEN function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Writing-an-IF-THEN-function/m-p/1893128#M73654</link>
    <description>&lt;P&gt;I'll start this ask off by first stating, "I AM NOT A DEVELOPER". If at all possible, please give me the cliff notes, developer for dummies version of an answer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Problem: Trying to write an accumulation formula that sums actual cost by month, if the months are in the past then sum and accumulate actuals, and if the months are &amp;gt;= today then sum and accumulate the forecast. Example: Accumulate Jul-Jan = Actuals + Feb-Jun = Forecast. This will appear in a combination chart where the monthly actual/forecast will ultimately show an Estimate-At-Completion.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="I have all elements of this chart except the accumulation line." style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72321iCAB112415006527F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AccGraph.png" alt="I have all elements of this chart except the accumulation line." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;I have all elements of this chart except the accumulation line.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I've created all of the elements of this chart but cannot create a function to achieve the "accumulation line".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Feb 2022 13:38:44 GMT</pubDate>
    <dc:creator>tgivens08</dc:creator>
    <dc:date>2022-02-15T13:38:44Z</dc:date>
    <item>
      <title>Writing an IF THEN function</title>
      <link>https://community.qlik.com/t5/App-Development/Writing-an-IF-THEN-function/m-p/1893128#M73654</link>
      <description>&lt;P&gt;I'll start this ask off by first stating, "I AM NOT A DEVELOPER". If at all possible, please give me the cliff notes, developer for dummies version of an answer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Problem: Trying to write an accumulation formula that sums actual cost by month, if the months are in the past then sum and accumulate actuals, and if the months are &amp;gt;= today then sum and accumulate the forecast. Example: Accumulate Jul-Jan = Actuals + Feb-Jun = Forecast. This will appear in a combination chart where the monthly actual/forecast will ultimately show an Estimate-At-Completion.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="I have all elements of this chart except the accumulation line." style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72321iCAB112415006527F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AccGraph.png" alt="I have all elements of this chart except the accumulation line." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;I have all elements of this chart except the accumulation line.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I've created all of the elements of this chart but cannot create a function to achieve the "accumulation line".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 13:38:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Writing-an-IF-THEN-function/m-p/1893128#M73654</guid>
      <dc:creator>tgivens08</dc:creator>
      <dc:date>2022-02-15T13:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Writing an IF THEN function</title>
      <link>https://community.qlik.com/t5/App-Development/Writing-an-IF-THEN-function/m-p/1893169#M73663</link>
      <description>&lt;P&gt;You can use an if Statement, which is build as follows:&lt;BR /&gt;=IF( &lt;FONT color="#3366FF"&gt;condition&lt;/FONT&gt;, &lt;FONT color="#99CC00"&gt;then&lt;/FONT&gt;, &lt;FONT color="#FF9900"&gt;else&lt;/FONT&gt; )&lt;BR /&gt;&lt;BR /&gt;So in your case:&lt;BR /&gt;=IF( &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;YourMonthField&lt;/STRONG&gt; &amp;lt;= Month(&lt;EM&gt;Today&lt;/EM&gt;())&lt;/FONT&gt;,&lt;FONT color="#99CC00"&gt; Sum(&lt;STRONG&gt;Actuals&lt;/STRONG&gt;)&lt;/FONT&gt;,&lt;FONT color="#FF9900"&gt; Sum(&lt;STRONG&gt;Forecast&lt;/STRONG&gt;)&lt;/FONT&gt; )&lt;BR /&gt;The last hard step is to replace the field names printed here in &lt;STRONG&gt;bold&lt;/STRONG&gt; with the correct field names from your data.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 14:27:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Writing-an-IF-THEN-function/m-p/1893169#M73663</guid>
      <dc:creator>chris_djih</dc:creator>
      <dc:date>2022-02-15T14:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Writing an IF THEN function</title>
      <link>https://community.qlik.com/t5/App-Development/Writing-an-IF-THEN-function/m-p/1894987#M73836</link>
      <description>&lt;P&gt;Once we finally figured out the correct fields to add and applied the Accumulate Values function, this formula worked like a charm! We've worked on this for months, given up and come back again. Thank you for saving the day Chris!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 20:09:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Writing-an-IF-THEN-function/m-p/1894987#M73836</guid>
      <dc:creator>tgivens08</dc:creator>
      <dc:date>2022-02-18T20:09:31Z</dc:date>
    </item>
  </channel>
</rss>

