<?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 Need help code, expressions. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-code-expressions/m-p/1113964#M464129</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;Can someone help me combine these two expressions: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(vChange=1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(sum(pick(match(Målepkt_Gruppering, 22), kWhVG)) - sum(kWh),'##0'), //numbers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num((sum(pick(match(Målepkt_Gruppering, 22), kWhVG)) - sum(kWh))/sum(kWhVG) ,'##,#%') //percentage&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Uke= {$(= max(Uke-1))}&amp;gt;}kWh)&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Uke= {$(= max(Uke-1))}&amp;gt;}kWhVG)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;info;&lt;/P&gt;&lt;P&gt;I have a pivot table that displays the difference between two values ( Diff HM-UM) and i want the right collum/row to show the same as Diff HM-UM but only the last week. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You know if i select week 6, i want the collum on the right to show me values for week 5. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/124108_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 May 2016 12:57:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-10T12:57:32Z</dc:date>
    <item>
      <title>Need help code, expressions.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-code-expressions/m-p/1113964#M464129</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;Can someone help me combine these two expressions: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(vChange=1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(sum(pick(match(Målepkt_Gruppering, 22), kWhVG)) - sum(kWh),'##0'), //numbers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num((sum(pick(match(Målepkt_Gruppering, 22), kWhVG)) - sum(kWh))/sum(kWhVG) ,'##,#%') //percentage&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Uke= {$(= max(Uke-1))}&amp;gt;}kWh)&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Uke= {$(= max(Uke-1))}&amp;gt;}kWhVG)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;info;&lt;/P&gt;&lt;P&gt;I have a pivot table that displays the difference between two values ( Diff HM-UM) and i want the right collum/row to show the same as Diff HM-UM but only the last week. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You know if i select week 6, i want the collum on the right to show me values for week 5. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/124108_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 12:57:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-code-expressions/m-p/1113964#M464129</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-10T12:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need help code, expressions.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-code-expressions/m-p/1113965#M464130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Max(Uke)-1 instead of Max(Uke-1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 12:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-code-expressions/m-p/1113965#M464130</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-05-10T12:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need help code, expressions.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-code-expressions/m-p/1113966#M464131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum({&amp;lt;Uke= {$(= max(Uke-1))}&amp;gt;}kWh) works fine, but i need to combine the expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join them togheter. not two different expressions. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 13:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-code-expressions/m-p/1113966#M464131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-10T13:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need help code, expressions.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-code-expressions/m-p/1113967#M464132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This dosent work but i need something like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(vChange=1,&lt;/P&gt;&lt;P&gt;num(sum(pick(match(Målepkt_Gruppering, 22), Sum({&amp;lt;Uke= {$(= max(Uke)-1)}&amp;gt;}kWhVG))) - Sum({&amp;lt;Uke= {$(= max(Uke)-1)}&amp;gt;}kWh),'##0'),&lt;/P&gt;&lt;P&gt;num((sum(pick(match(Målepkt_Gruppering, 22), Sum({&amp;lt;Uke= {$(= max(Uke)-1)}&amp;gt;}kWhVG))) - Sum({&amp;lt;Uke= {$(= max(Uke)-1)}&amp;gt;}kWh)/sum(kWhVG),'##,#%')&lt;/P&gt;&lt;P&gt;)) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 13:14:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-code-expressions/m-p/1113967#M464132</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-10T13:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need help code, expressions.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-code-expressions/m-p/1113968#M464133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the impression that your expressions are more complicated as necessary - therefore try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(sum(({&amp;lt; Målepkt_Gruppering = {22}&amp;gt;} kWhVG) - sum(kWh)) / if(vChange=1, sum(kWhVG), 1), if(vChange=1,'##0','##,#%'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(sum(({&amp;lt; Målepkt_Gruppering = {22}, Uke= {"$(=max(Uke)-1)"}&amp;gt;} kWhVG) - sum({&amp;lt; Uke= {"$(=max(Uke)-1)"}&amp;gt;} kWh)) / if(vChange=1, sum(kWhVG), 1), if(vChange=1,'##0','##,#%'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 13:34:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-code-expressions/m-p/1113968#M464133</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-05-10T13:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need help code, expressions.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-code-expressions/m-p/1113969#M464134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for reply, but it didnt work.. error in expressions.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a button that switch between number and percentage...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the collum on the right to show the same as Diff HM-UM, But only Last week. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if i choose week 6, Diff HM-UM displays the difference in week 6, and then i want the collum on the right will automaticly show week 5. &lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/124110_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/124111_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have som more suggestions? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 13:46:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-code-expressions/m-p/1113969#M464134</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-10T13:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help code, expressions.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-code-expressions/m-p/1113970#M464135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An alternative would be to use two expressions either within a expression-group or with a visibility-condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 13:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-code-expressions/m-p/1113970#M464135</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-05-10T13:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need help code, expressions.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-code-expressions/m-p/1113971#M464136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, i just want the "Diff HM-UM" to show Last week. and not the month, year or day i choose.&amp;nbsp; a gruop dosent do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/124117_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this one is okay and works fine, but i want another one that only display the values of last week. So i can compare weeks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 14:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-code-expressions/m-p/1113971#M464136</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-10T14:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need help code, expressions.</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-code-expressions/m-p/1113972#M464137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think a small example with a few inline-data will be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 14:08:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-code-expressions/m-p/1113972#M464137</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-05-10T14:08:15Z</dc:date>
    </item>
  </channel>
</rss>

