<?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: Problem with data model in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-data-model/m-p/708784#M1056501</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;Try this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(if(Match(DOC_TYPE, 'Q1', 'D4', 'Z4') AND Match([Accrued_Revenue_Clearing_GL_Account_Id], '2507RR9999', '2509RR9999'),&lt;/P&gt;&lt;P&gt;Sum(Amount2)-sum(Amount1),if([Offsetting_GL_Account_Id]='1221RR9999',sum(Amount1))),Key1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Oct 2014 05:44:12 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2014-10-13T05:44:12Z</dc:date>
    <item>
      <title>Problem with data model</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-data-model/m-p/708780#M1056497</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 have 3 tables PNL, Billing, Revenue. i used Billing doc num as common key for this tables (Please check the data model).&lt;/P&gt;&lt;P&gt;Based on requirement i used expressions and i'm getting data correctly but values are repeating and also &lt;/P&gt;&lt;P&gt;for Expression1 i'm getting sum of the value instead of individual value (193+193+121=507).&lt;/P&gt;&lt;P&gt;i'm not getting total value of second expression also.&lt;/P&gt;&lt;P&gt;could you please help me to get the data as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="output.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/68747_output.PNG.png" style="width: 620px; height: 68px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm also attaching QVW, Could you please anybody give the solution asap would be great for me.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Oct 2014 17:14:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-data-model/m-p/708780#M1056497</guid>
      <dc:creator />
      <dc:date>2014-10-12T17:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with data model</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-data-model/m-p/708781#M1056498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's an urgent requirement, could you please anybody help on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;M V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 04:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-data-model/m-p/708781#M1056498</guid>
      <dc:creator />
      <dc:date>2014-10-13T04:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Problem with data model</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-data-model/m-p/708782#M1056499</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;Kindly find attached application,&lt;/P&gt;&lt;P&gt;It is as per requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 05:05:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-data-model/m-p/708782#M1056499</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-10-13T05:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Problem with data model</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-data-model/m-p/708783#M1056500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For first expression it is working fine but for second expression (based on some conditions) values are not coming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please take a look into this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;M V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 05:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-data-model/m-p/708783#M1056500</guid>
      <dc:creator />
      <dc:date>2014-10-13T05:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with data model</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-data-model/m-p/708784#M1056501</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;Try this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(if(Match(DOC_TYPE, 'Q1', 'D4', 'Z4') AND Match([Accrued_Revenue_Clearing_GL_Account_Id], '2507RR9999', '2509RR9999'),&lt;/P&gt;&lt;P&gt;Sum(Amount2)-sum(Amount1),if([Offsetting_GL_Account_Id]='1221RR9999',sum(Amount1))),Key1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 05:44:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-data-model/m-p/708784#M1056501</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-10-13T05:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with data model</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-data-model/m-p/708785#M1056502</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;Try this expression,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sum(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Accrued_Revenue_Clearing_GL_Account_Id]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='2507RR9999' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Accrued_Revenue_Clearing_GL_Account_Id]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='2509RR9999',&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Offsetting_GL_Account_Id]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='1221RR9999',&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Amount1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Key1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 05:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-data-model/m-p/708785#M1056502</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-10-13T05:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with data model</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-data-model/m-p/708786#M1056503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i use the above expression i'm getting 0 as values.&lt;/P&gt;&lt;P&gt;if possible could you please take a look into this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;M V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 05:50:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-data-model/m-p/708786#M1056503</guid>
      <dc:creator />
      <dc:date>2014-10-13T05:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Problem with data model</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-data-model/m-p/708787#M1056504</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;Check this file attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 06:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-data-model/m-p/708787#M1056504</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-10-13T06:05:58Z</dc:date>
    </item>
  </channel>
</rss>

