<?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: Adding two values with respect to date conditions at backed script in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Adding-two-values-with-respect-to-date-conditions-at-backed/m-p/1738866#M56493</link>
    <description>&lt;P&gt;It's really not clear what you are trying to do. did you check my last response?&lt;/P&gt;</description>
    <pubDate>Wed, 26 Aug 2020 14:33:02 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-08-26T14:33:02Z</dc:date>
    <item>
      <title>Adding two values with respect to date conditions at backed script</title>
      <link>https://community.qlik.com/t5/App-Development/Adding-two-values-with-respect-to-date-conditions-at-backed/m-p/1738764#M56473</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am trying to achieve the below:-&lt;/P&gt;&lt;P&gt;If("Calendar Year" &amp;lt;= Year(today()), Actual) + if("Calendar Year" &amp;gt;=year(today()), RB) as Hours&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this correct to calculate the dimension at backend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a dimension "Hours" using this conditon&lt;/P&gt;&lt;P&gt;Hours = “actual” hours when Year &amp;lt; Today + “RB” hours when Year &amp;gt;= Today&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pleas help&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:35:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Adding-two-values-with-respect-to-date-conditions-at-backed/m-p/1738764#M56473</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2024-11-16T01:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding two values with respect to date conditions at backed script</title>
      <link>https://community.qlik.com/t5/App-Development/Adding-two-values-with-respect-to-date-conditions-at-backed/m-p/1738774#M56475</link>
      <description>&lt;P&gt;can you share a sample data and if possible the expected output ?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 10:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Adding-two-values-with-respect-to-date-conditions-at-backed/m-p/1738774#M56475</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-08-26T10:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Adding two values with respect to date conditions at backed script</title>
      <link>https://community.qlik.com/t5/App-Development/Adding-two-values-with-respect-to-date-conditions-at-backed/m-p/1738780#M56476</link>
      <description>&lt;P&gt;You an create a Flag in script and then you can use it to create the measure&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LOAD *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if("Calendar Year" &amp;lt;= Year(today()), 1,2)&amp;nbsp; as Year_Flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FROM Source;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;then you can use below measure in chart&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=sum({&amp;lt;Year_Flag={1}&amp;gt;}Actual)+sum({&amp;lt;Year_Flag={2}&amp;gt;}RB)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 11:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Adding-two-values-with-respect-to-date-conditions-at-backed/m-p/1738780#M56476</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-26T11:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Adding two values with respect to date conditions at backed script</title>
      <link>https://community.qlik.com/t5/App-Development/Adding-two-values-with-respect-to-date-conditions-at-backed/m-p/1738784#M56477</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/56648"&gt;@Taoufiq_Zarra&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see the data:-&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Aspiring_Developer_0-1598440667825.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39611i1A38F5D5D26C44CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Aspiring_Developer_0-1598440667825.png" alt="Aspiring_Developer_0-1598440667825.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Actual,&lt;BR /&gt;If("Calendar Year" &amp;lt; Year(today()), Actual)&amp;nbsp; + if("Calendar Year" &amp;gt; year(today()), RB) as Hours,&lt;BR /&gt;CB,&lt;BR /&gt;"CB - Unit",&lt;BR /&gt;RB&lt;/P&gt;&lt;P&gt;From....&lt;/P&gt;&lt;P&gt;Please help as i have deliver it next week&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 11:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Adding-two-values-with-respect-to-date-conditions-at-backed/m-p/1738784#M56477</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2020-08-26T11:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Adding two values with respect to date conditions at backed script</title>
      <link>https://community.qlik.com/t5/App-Development/Adding-two-values-with-respect-to-date-conditions-at-backed/m-p/1738804#M56478</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mnay thanks Kush for your response.&lt;/P&gt;&lt;P&gt;But i have to create a dimension&amp;nbsp; as "Hours" using this calculation at the backend. Could you please help me on that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks again&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 12:22:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Adding-two-values-with-respect-to-date-conditions-at-backed/m-p/1738804#M56478</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2020-08-26T12:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding two values with respect to date conditions at backed script</title>
      <link>https://community.qlik.com/t5/App-Development/Adding-two-values-with-respect-to-date-conditions-at-backed/m-p/1738811#M56480</link>
      <description>&lt;P&gt;Assuming that you have all column in same table then try below in script You can then use the hour as a dimension&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If("Calendar Year" &amp;lt;= Year(today()), Actual, RB) as Hours&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 12:28:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Adding-two-values-with-respect-to-date-conditions-at-backed/m-p/1738811#M56480</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-26T12:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Adding two values with respect to date conditions at backed script</title>
      <link>https://community.qlik.com/t5/App-Development/Adding-two-values-with-respect-to-date-conditions-at-backed/m-p/1738827#M56483</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello Kush , i wish to achieve this:&lt;/P&gt;&lt;P&gt;Hours = “actual” hours when Yearmonth &amp;lt; Today + “RB” hours when Yearmonth &amp;gt;= Today&lt;/P&gt;&lt;P&gt;We have to add them at the backend and display them as "Hours" in dimension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 12:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Adding-two-values-with-respect-to-date-conditions-at-backed/m-p/1738827#M56483</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2020-08-26T12:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Adding two values with respect to date conditions at backed script</title>
      <link>https://community.qlik.com/t5/App-Development/Adding-two-values-with-respect-to-date-conditions-at-backed/m-p/1738837#M56486</link>
      <description>&lt;P&gt;Can anyone please help on this as it is very critical for me and i tried everything but not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 13:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Adding-two-values-with-respect-to-date-conditions-at-backed/m-p/1738837#M56486</guid>
      <dc:creator>Aspiring_Developer</dc:creator>
      <dc:date>2020-08-26T13:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adding two values with respect to date conditions at backed script</title>
      <link>https://community.qlik.com/t5/App-Development/Adding-two-values-with-respect-to-date-conditions-at-backed/m-p/1738866#M56493</link>
      <description>&lt;P&gt;It's really not clear what you are trying to do. did you check my last response?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 14:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Adding-two-values-with-respect-to-date-conditions-at-backed/m-p/1738866#M56493</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-26T14:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adding two values with respect to date conditions at backed script</title>
      <link>https://community.qlik.com/t5/App-Development/Adding-two-values-with-respect-to-date-conditions-at-backed/m-p/1738922#M56501</link>
      <description>&lt;P&gt;Not entirely sure, but may be this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RangeSum(
If("Calendar Year" &amp;lt; Year(Today()), Actual),
If("Calendar Year" &amp;gt; Year(Today()), RB)
) as Hours,&lt;/LI-CODE&gt;&lt;P&gt;But what happens when Calendar year = Year(Today())? Right now both you are if statements don't include that condition. You might want to change one of the if statement logic to include =, either &amp;gt;= or &amp;lt;= depending on the value needed for current year&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 17:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Adding-two-values-with-respect-to-date-conditions-at-backed/m-p/1738922#M56501</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-08-26T17:59:33Z</dc:date>
    </item>
  </channel>
</rss>

