<?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: Epression changes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Epression-changes/m-p/953012#M979833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this on front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=RangeAvg(avg({&amp;lt;[Measure] = {'E03'}&amp;gt;}[ Weight]),0)+&lt;/P&gt;&lt;P&gt;RangeAvg(avg({&amp;lt;[Measure] = {'E04'}&amp;gt;}[ Weight]),0)+&lt;/P&gt;&lt;P&gt;RangeAvg(avg({&amp;lt;[Measure] = {'E05'}&amp;gt;}[ Weight]),0)+&lt;/P&gt;&lt;P&gt;RangeAvg(avg({&amp;lt;[Measure] = {'E06'}&amp;gt;}[ Weight]),0)+&lt;/P&gt;&lt;P&gt;RangeAvg(avg({&amp;lt;[Measure] = {'E07'}&amp;gt;}[ Weight]),0)+&lt;/P&gt;&lt;P&gt;RangeAvg(avg({&amp;lt;[Measure] = {'E08'}&amp;gt;}[ Weight]),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from back end you can do this as suggested by Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Aug 2015 05:36:34 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2015-08-20T05:36:34Z</dc:date>
    <item>
      <title>Epression changes</title>
      <link>https://community.qlik.com/t5/QlikView/Epression-changes/m-p/953005#M979812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have this expression in front end for every chart , now i want to transfer this to backend scripting for better performance or i can use set analysis &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;any suggections ?/?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="797"&gt;if(isnull(avg(if([Measure] = 'E03',[ Weight]))),0,avg(if([Measure] = 'E03',[Weight])))&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;+&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;if(isnull(avg(if([Measure] = 'E04',[Weight]))),0,avg(if([Measure] = 'E04',,[Weight])))&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;+&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;if(isnull(avg(if([Measure] = 'E05',[Weight]))),0,avg(if([Measure] = 'E05',,[Weight])))&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;+&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;if(isnull(avg(if([Measure] = 'E06',[ Weight]))),0,avg(if([Measure] = 'E06',,[Weight])))&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;+&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;if(isnull(avg(if([SM Measure] = 'EP07',[ Weight]))),0,avg(if([Measure] = 'EP07',,[Weight])))&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;+&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;if(isnull(avg(if([Measure] = 'EP08',[Weight]))),0,avg(if([ Measure] = 'EP08',,[Weight])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;any suggections ?/?&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 09:28:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Epression-changes/m-p/953005#M979812</guid>
      <dc:creator>yogitamehta10</dc:creator>
      <dc:date>2015-08-19T09:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Epression changes</title>
      <link>https://community.qlik.com/t5/QlikView/Epression-changes/m-p/953006#M979813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In mapping Table&lt;/P&gt;&lt;P&gt;Mapping Mapping Name&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Measure,&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="797"&gt;If(if(isnull(avg(if([Measure] = 'E03',[ Weight]))),0,avg(if([Measure] = 'E03',[Weight])))&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;+&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;if(isnull(avg(if([Measure] = 'E04',[Weight]))),0,avg(if([Measure] = 'E04',,[Weight])))&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;+&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;if(isnull(avg(if([Measure] = 'E05',[Weight]))),0,avg(if([Measure] = 'E05',,[Weight])))&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;+&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;if(isnull(avg(if([Measure] = 'E06',[ Weight]))),0,avg(if([Measure] = 'E06',,[Weight])))&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;+&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;if(isnull(avg(if([SM Measure] = 'EP07',[ Weight]))),0,avg(if([Measure] = 'EP07',,[Weight])))&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;+&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;"&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;if(isnull(avg(if([Measure] = 'EP08',[Weight]))),0,avg(if([ Measure] = 'EP08',,[Weight])))) as alias name,&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 09:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Epression-changes/m-p/953006#M979813</guid>
      <dc:creator>gautik92</dc:creator>
      <dc:date>2015-08-19T09:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Epression changes</title>
      <link>https://community.qlik.com/t5/QlikView/Epression-changes/m-p/953007#M979815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can simplify this a lot - RangeSum treats nulls as zeroes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RangeSum(&lt;/P&gt;&lt;P&gt;&amp;nbsp; avg(if(Measure = 'E03', Weight)), &lt;/P&gt;&lt;P&gt;&amp;nbsp; avg(if(Measure = 'E04', Weight)),&lt;/P&gt;&lt;P&gt;&amp;nbsp; avg(if(Measure = 'E05', Weight)),&lt;/P&gt;&lt;P&gt;&amp;nbsp; avg(if(Measure = 'E06', Weight)),&lt;/P&gt;&lt;P&gt;&amp;nbsp; avg(if(Measure = 'EP07', Weight)),&lt;/P&gt;&lt;P&gt;&amp;nbsp; avg(if(Measure = 'EP08', Weight))&lt;/P&gt;&lt;P&gt;) As newField,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need a Group By for any non-aggregated fields in the LOAD expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM ....&lt;/P&gt;&lt;P&gt;Group By ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 09:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Epression-changes/m-p/953007#M979815</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-08-19T09:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Epression changes</title>
      <link>https://community.qlik.com/t5/QlikView/Epression-changes/m-p/953008#M979818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;will this work &lt;/P&gt;&lt;P&gt;load [Measure],&lt;/P&gt;&lt;P&gt;if(isnull(avg([Weight])),0,avg([ Weight])) as [RULE1AV_temp]&lt;/P&gt;&lt;P&gt;Resident [Weight ]&lt;/P&gt;&lt;P&gt;Group by [Measure];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 10:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Epression-changes/m-p/953008#M979818</guid>
      <dc:creator>yogitamehta10</dc:creator>
      <dc:date>2015-08-19T10:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Epression changes</title>
      <link>https://community.qlik.com/t5/QlikView/Epression-changes/m-p/953009#M979830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should work fine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 18:12:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Epression-changes/m-p/953009#M979830</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-08-19T18:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Epression changes</title>
      <link>https://community.qlik.com/t5/QlikView/Epression-changes/m-p/953010#M979831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 02:37:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Epression-changes/m-p/953010#M979831</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-08-20T02:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Epression changes</title>
      <link>https://community.qlik.com/t5/QlikView/Epression-changes/m-p/953011#M979832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should, but this will be more efficient as it calculates the averages once each rather than twice:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load [Measure],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Alt(avg([Weight])),0) as [RULE1AV_temp]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident [Weight ]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group by [Measure];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 05:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Epression-changes/m-p/953011#M979832</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-08-20T05:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Epression changes</title>
      <link>https://community.qlik.com/t5/QlikView/Epression-changes/m-p/953012#M979833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this on front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=RangeAvg(avg({&amp;lt;[Measure] = {'E03'}&amp;gt;}[ Weight]),0)+&lt;/P&gt;&lt;P&gt;RangeAvg(avg({&amp;lt;[Measure] = {'E04'}&amp;gt;}[ Weight]),0)+&lt;/P&gt;&lt;P&gt;RangeAvg(avg({&amp;lt;[Measure] = {'E05'}&amp;gt;}[ Weight]),0)+&lt;/P&gt;&lt;P&gt;RangeAvg(avg({&amp;lt;[Measure] = {'E06'}&amp;gt;}[ Weight]),0)+&lt;/P&gt;&lt;P&gt;RangeAvg(avg({&amp;lt;[Measure] = {'E07'}&amp;gt;}[ Weight]),0)+&lt;/P&gt;&lt;P&gt;RangeAvg(avg({&amp;lt;[Measure] = {'E08'}&amp;gt;}[ Weight]),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from back end you can do this as suggested by Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 05:36:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Epression-changes/m-p/953012#M979833</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-08-20T05:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Epression changes</title>
      <link>https://community.qlik.com/t5/QlikView/Epression-changes/m-p/953013#M979834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;oad [Measure],&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;if(isnull(avg([Weight])),0,avg([ Weight])) as [RULE1AV_temp]&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;where match([Measure],'EPM02',&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;EPM03',&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'EPM04',&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;EPM05',&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;EPM06',&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Resident [Weight ]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Group by [Measure];&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;i used this&amp;nbsp; but now i have issue i have&amp;nbsp; another expression with same type but mesaure&amp;nbsp; match are diifferenrt for that .&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;lets say&amp;nbsp; measure ='EP90', 'Ep34' and we will say it &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;[RULE2AV_temp]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;i want that to include in same script &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;how should i do ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 05:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Epression-changes/m-p/953013#M979834</guid>
      <dc:creator>yogitamehta10</dc:creator>
      <dc:date>2015-08-20T05:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Epression changes</title>
      <link>https://community.qlik.com/t5/QlikView/Epression-changes/m-p/953014#M979835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create the Flag in Script for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;RULE1AV &amp;amp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;RULE2AV like below&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;load [Measure],&lt;/P&gt;&lt;P&gt;if(isnull(avg([Weight])),0,avg([ Weight])) as [RULE1AV_temp],&lt;/P&gt;&lt;P&gt;'RULE1AV' as Flag&lt;/P&gt;&lt;P&gt;where match([Measure],'EPM02',&lt;/P&gt;&lt;P&gt;'EPM03', &lt;/P&gt;&lt;P&gt;'EPM04',&lt;/P&gt;&lt;P&gt;'EPM05',&lt;/P&gt;&lt;P&gt;'EPM06')&lt;/P&gt;&lt;P&gt;Resident [Weight ]&lt;/P&gt;&lt;P&gt;Group by [Measure];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load [Measure],&lt;/P&gt;&lt;P&gt;if(isnull(avg([Weight])),0,avg([ Weight])) as [RULE2AV_temp],&lt;/P&gt;&lt;P&gt;'RULE2AV' as Flag&lt;/P&gt;&lt;P&gt;where match([Measure],'EPM90',&lt;/P&gt;&lt;P&gt;'EPM34')&lt;/P&gt;&lt;P&gt;Resident [Weight ]&lt;/P&gt;&lt;P&gt;Group by [Measure];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in front end use the Flag in expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg({&amp;lt;Flag={'&lt;SPAN style="font-size: 13.3333330154419px;"&gt;RULE1AV&lt;/SPAN&gt;'}&amp;gt;}&lt;SPAN style="font-size: 13.3333330154419px;"&gt;[ Weight]&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;avg({&amp;lt;Flag={'&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;RULE2AV&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;[ Weight]&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;modify your expression as per your need&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 05:53:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Epression-changes/m-p/953014#M979835</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-08-20T05:53:54Z</dc:date>
    </item>
  </channel>
</rss>

