<?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: how Create DOD Calculation field in straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1516724#M750789</link>
    <description>To fix this in QV11, you will need to sort your DATE_KEY field in ascending order in the script... once you do that... the problem should be resolved.</description>
    <pubDate>Wed, 05 Dec 2018 12:25:31 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-12-05T12:25:31Z</dc:date>
    <item>
      <title>how Create DOD Calculation field in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1515536#M750782</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Dears&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I want to calculate of DOD (20181202-20181201/20181201) and MOM f my REVENUE trend based on each service and date_key&lt;/P&gt;&lt;P&gt;but my expression is not working &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;would you please help me in this regards:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimension&lt;/STRONG&gt;: DATE_KEY, SERVICE_NAME&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;:&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;DATE_KEY={"$(=Date(max(DATE_KEY),'YYYY-MM-DD'))"}REVENUE)-&amp;nbsp;sum({&amp;lt;DATE_KEY={"&amp;gt;=$(=Max(DATE_KEY)-1)&amp;lt;=$(=Max(DATE_KEY))"}REVENUE)/sum({&amp;lt;DATE_KEY={"&amp;gt;=$(=Max(DATE_KEY)-1)&amp;lt;=$(=Max(DATE_KEY))"}REVENUE) * 100&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1515536#M750782</guid>
      <dc:creator>nazaninslp</dc:creator>
      <dc:date>2024-11-16T21:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: how Create DOD Calculation field in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1515537#M750783</link>
      <description>&lt;P&gt;Try using&amp;nbsp;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Inter-Record-Functions/ta-p/1480989" target="_blank"&gt;Inter Record Functions&lt;/A&gt;&amp;nbsp;here&lt;/P&gt;&lt;PRE&gt;Sum({&amp;lt;DATE_KEY = {"$(=Date(Max(DATE_KEY), 'YYYY-MM-DD'))"}&amp;gt;} REVENUE)/Above(Sum({&amp;lt;DATE_KEY&amp;gt;} REVENUE)) - 1&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Dec 2018 12:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1515537#M750783</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-03T12:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: how Create DOD Calculation field in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1515952#M750784</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Dear Stalwar&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;as I used your expression, I faced with below table and I checked the values manually and they are not correct&lt;/P&gt;&lt;P&gt;would you please help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dod2.PNG" style="width: 396px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1528iC900CFA558FC411A/image-size/large?v=v2&amp;amp;px=999" role="button" title="dod2.PNG" alt="dod2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dod.PNG" style="width: 430px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/1526i073F1EBAB5CED823/image-size/large?v=v2&amp;amp;px=999" role="button" title="dod.PNG" alt="dod.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 06:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1515952#M750784</guid>
      <dc:creator>nazaninslp</dc:creator>
      <dc:date>2018-12-04T06:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: how Create DOD Calculation field in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1516140#M750785</link>
      <description>What are the manual values you are getting?</description>
      <pubDate>Tue, 04 Dec 2018 11:52:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1516140#M750785</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-04T11:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: how Create DOD Calculation field in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1516209#M750786</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;Dear &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628" target="_self"&gt;&lt;SPAN class="login-bold"&gt;Stalwar&lt;/SPAN&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;for example for the revenue for 20181203 is (32079000) and for 20181202 is (32157000).&lt;BR /&gt;I want the DOD of it.&lt;BR /&gt;DOD= 20181203-20181202/20181202 *100&lt;BR /&gt;DOD= 32079000-32157000/32157000 *100 DOD= -0.024 %&lt;BR /&gt;But as I checked my straight table , it is wrong.&lt;/P&gt;&lt;P&gt;I attached my file .&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 12:50:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1516209#M750786</guid>
      <dc:creator>nazaninslp</dc:creator>
      <dc:date>2018-12-04T12:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: how Create DOD Calculation field in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1516227#M750787</link>
      <description>&lt;P&gt;Do you have QV12 or above? If you do, then try this&lt;/P&gt;&lt;PRE&gt;Only({&amp;lt;DATE_KEY = {"$(=Date(Max(DATE_KEY), 'YYYY-MM-DD'))"}&amp;gt;}&lt;BR /&gt;  Aggr(&lt;BR /&gt;    Sum({&amp;lt;DATE_KEY&amp;gt;} REVENUE)/Above(Sum({&amp;lt;DATE_KEY&amp;gt;} REVENUE)) - 1&lt;BR /&gt;  , SERVICE_NAME, (DATE_KEY, (NUMERIC)))&lt;BR /&gt;)&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Dec 2018 13:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1516227#M750787</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-04T13:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: how Create DOD Calculation field in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1516675#M750788</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Dear Stalwar&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;it is working fine on Qlikview 12.&lt;/P&gt;&lt;P&gt;but the issue is that our qlikview server supports QV v.11 &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;is there a way to launch it on qlikview 11?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 10:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1516675#M750788</guid>
      <dc:creator>nazaninslp</dc:creator>
      <dc:date>2018-12-05T10:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: how Create DOD Calculation field in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1516724#M750789</link>
      <description>To fix this in QV11, you will need to sort your DATE_KEY field in ascending order in the script... once you do that... the problem should be resolved.</description>
      <pubDate>Wed, 05 Dec 2018 12:25:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1516724#M750789</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-05T12:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: how Create DOD Calculation field in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1516747#M750790</link>
      <description>Dear Stalwar&lt;BR /&gt;I sorted the DATE_KEY in SORT Tab as ascending but still I get error in expression. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Dec 2018 12:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1516747#M750790</guid>
      <dc:creator>nazaninslp</dc:creator>
      <dc:date>2018-12-05T12:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: how Create DOD Calculation field in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1516749#M750791</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;PRE&gt;(Sum({&amp;lt;DATE_KEY&amp;gt;} REVENUE)/Above(Sum({&amp;lt;DATE_KEY&amp;gt;} REVENUE)) - 1) * Avg({&amp;lt;DATE_KEY = {"$(=Date(Max(DATE_KEY), 'YYYY-MM-DD'))"}&amp;gt;}1)&lt;/PRE&gt;&lt;P&gt;Sorting&lt;/P&gt;&lt;PRE&gt;1st by SERVICE_NAME
2nd by DATE_KEY (ascending order)&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Dec 2018 12:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1516749#M750791</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-05T12:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: how Create DOD Calculation field in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1516755#M750792</link>
      <description>Excellent&lt;BR /&gt;you are GOD of qlikview &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;BR /&gt;Thank youuuuu very muchhhhhhhhhhhhhhh&lt;BR /&gt;would you please share some documents or link regarding this topic, honestly I didn't get what you did exactly and why you used the AVG function and asc sorting !</description>
      <pubDate>Wed, 05 Dec 2018 13:04:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1516755#M750792</guid>
      <dc:creator>nazaninslp</dc:creator>
      <dc:date>2018-12-05T13:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: how Create DOD Calculation field in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1516772#M750793</link>
      <description>&lt;P&gt;Above function is sort dependent... when you wanted to see above revenue... you wanted to see the above revenue for the same SERVICE_NAME.... so, first sort is by SERVICE_NAME.... next if you are in 2018-12-03... you want to see 2018-12-02 in the previous row... so, second sort is by DATE_KEY...&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you change the sort to DATE_KEY first and then SERVICE_NAME... you will see all 2018-12-02 and then when it ends you will see 2018-12-03... if you look back from 2018-12-03 for one SERVICE_NAME, you will see 2018-12-03 for another SERVICE_NAME... which is not right. Does this make sense?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Avg(1) is just used to show the most recent DATE_KEY (used within the set analysis). Avg(1) will be 1 for the most recent date and 0 for all others.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 13:25:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1516772#M750793</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-05T13:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: how Create DOD Calculation field in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1516826#M750794</link>
      <description>Thank youuuuuuuuuuuuuu so muchhhhhhhhhhhhhhhhhh</description>
      <pubDate>Wed, 05 Dec 2018 14:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-Create-DOD-Calculation-field-in-straight-table/m-p/1516826#M750794</guid>
      <dc:creator>nazaninslp</dc:creator>
      <dc:date>2018-12-05T14:14:54Z</dc:date>
    </item>
  </channel>
</rss>

