<?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: Variance Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variance-Expression/m-p/798584#M281997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply, Now please find the attached qvw. If there is 0 please give me output as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Selection à P1 Actual vs P2 Budget = Output (P1 Actual – P2 Budget)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Selection à P1 Budget vs P2 Actual = Output (P1 Budget – P2 Actual)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Selection à P1 Budget vs P2 Budget = Output (P1 Budget – P2 Budget)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Whatever the output should to come.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Please find the attached qvw for the same.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks Again.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Dec 2014 18:14:01 GMT</pubDate>
    <dc:creator>sona_sa</dc:creator>
    <dc:date>2014-12-29T18:14:01Z</dc:date>
    <item>
      <title>Variance Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variance-Expression/m-p/798582#M281995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I am developing a report where I am using pivot objects. Also I am using alternative states for developing&amp;nbsp; the same reports.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I have written the code for adhoc reports for expression, Whre I have 4 option to do the analysis the same report and I am just checking the variance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Selection à P1 Actual vs P2 Actual = Output (P1 Actual – P2 Actual)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Selection à P1 Actual vs P2 Budget = Output (P1 Actual – P2 Budget)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Selection à P1 Budget vs P2 Actual = Output (P1 Budget – P2 Actual)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Selection à P1 Budget vs P2 Budget = Output (P1 Budget – P2 Budget)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;For &lt;SPAN style="color: #000000;"&gt;P1 Actual vs P2 Actual : It is working and another 3 selection is not working, So please look into this and try to resolve it asap.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; line-height: 1.5em;"&gt;For more reference I am attaching my application, please find the attached qvw.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 18.0pt;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks in Advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;A Kumar&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 16:52:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variance-Expression/m-p/798582#M281995</guid>
      <dc:creator>sona_sa</dc:creator>
      <dc:date>2014-12-29T16:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Variance Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variance-Expression/m-p/798583#M281996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You use the field [Deb/Cred (SY)] in the expressions for the budget. That field only contains nulls. Check your source data, because that's where the problem is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 17:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variance-Expression/m-p/798583#M281996</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-12-29T17:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Variance Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variance-Expression/m-p/798584#M281997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply, Now please find the attached qvw. If there is 0 please give me output as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Selection à P1 Actual vs P2 Budget = Output (P1 Actual – P2 Budget)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Selection à P1 Budget vs P2 Actual = Output (P1 Budget – P2 Actual)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #000000;"&gt;Selection à P1 Budget vs P2 Budget = Output (P1 Budget – P2 Budget)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Whatever the output should to come.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Please find the attached qvw for the same.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks Again.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 18:14:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variance-Expression/m-p/798584#M281997</guid>
      <dc:creator>sona_sa</dc:creator>
      <dc:date>2014-12-29T18:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Variance Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variance-Expression/m-p/798585#M281998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's a problem with getcurrentselections in your if condition in 'Variance' expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also in the if condition, you don't need to use [P&amp;amp;L Type]='s' when you already have mentioned it in the base expressions, which you are using them here. Whenever you're referring your existing expressions for a new expression, try to put base if conditions in your base measures/expressions only. As in the if condition they are not aggregated values and it will never act as expected, which will return a null value. You need to use &lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;sum(if(condition, value)) &lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;for that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If((Match(GetFieldSelections(D02_Dimension),'Actual') and Match(GetFieldSelections(D03_Dimension),'Actual')),([P1 Actual]-[P2 Actual]),&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If((Match(GetFieldSelections(D02_Dimension),'Actual') and Match(GetFieldSelections(D03_Dimension),'Budget')),([P1 Actual]-[P2 Budget]),&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If((Match(GetFieldSelections(D02_Dimension),'Budget') and Match(GetFieldSelections(D03_Dimension),'Actual')),([P1 Budget]-[P2 Actual]),&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If((Match(GetFieldSelections(D02_Dimension),'Budget') and Match(GetFieldSelections(D03_Dimension),'Budget')),([P1 Budget]-[P2 Budget])))))&lt;/SPAN&gt;&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 21:17:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variance-Expression/m-p/798585#M281998</guid>
      <dc:creator />
      <dc:date>2014-12-29T21:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Variance Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variance-Expression/m-p/798586#M281999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Eddie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 05:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variance-Expression/m-p/798586#M281999</guid>
      <dc:creator>sona_sa</dc:creator>
      <dc:date>2014-12-30T05:09:34Z</dc:date>
    </item>
  </channel>
</rss>

