<?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: Expression Challenge in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-Challenge/m-p/1689121#M726978</link>
    <description>&lt;P&gt;Any suggestions please&lt;/P&gt;</description>
    <pubDate>Mon, 30 Mar 2020 16:15:27 GMT</pubDate>
    <dc:creator>priya945</dc:creator>
    <dc:date>2020-03-30T16:15:27Z</dc:date>
    <item>
      <title>Expression Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Challenge/m-p/1688443#M726975</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have below data in excel pivot, calculating All and 3 other Regions(North,South East).&lt;/P&gt;&lt;P&gt;In qlikview the expression for Region = All is bellow, below expression returns '-' in Pivot table. Where Region 'All' is not part of the original data. But calculated&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(Region = 'All', ((Avg({Region={'North'}&amp;gt;}Time) *count({&amp;lt;Region={'North'}&amp;gt;} distinct [Serial Number])) +&lt;BR /&gt;(Avg({&amp;lt;Region={'South'}&amp;gt;}Time) * count({&amp;lt;Region={'South'}&amp;gt;} distinct [Serial Number]))+&lt;BR /&gt;(Avg({&amp;lt;Region={'East'}&amp;gt;} Time) * count({&amp;lt;Region={'East'}&amp;gt;} distinct [Serial Number])))/count(distinct [Serial Number]) ,&lt;/P&gt;&lt;P&gt;Avg(Time)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Challenge/m-p/1688443#M726975</guid>
      <dc:creator>priya945</dc:creator>
      <dc:date>2024-11-16T00:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Challenge/m-p/1688481#M726976</link>
      <description>&lt;P&gt;Could a Serial number be associated to more than one Region?&lt;/P&gt;&lt;P&gt;Maybe you can write like this instead?&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;if( Region = 'All',&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Avg({&amp;lt;Region={'North','South','East'}&amp;gt;}Time),&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Avg(Time)&lt;BR /&gt;&amp;nbsp; &amp;nbsp;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 12:32:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Challenge/m-p/1688481#M726976</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-03-27T12:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Challenge/m-p/1688494#M726977</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Each Serial number&amp;nbsp; is associated to only one Region and Region 'All'&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Also Region ='All' is not part of the original data so deriving&amp;nbsp; as below&lt;/P&gt;&lt;P&gt;Regon:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;SubRegion, Region&lt;BR /&gt;East,East&lt;BR /&gt;West, West&lt;BR /&gt;North,North&lt;BR /&gt;East,All&lt;BR /&gt;West, All&lt;BR /&gt;North,All&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;and below expression is showing&amp;nbsp; hash(-) in place of a value for Region 'All' in pivot table&lt;/P&gt;&lt;P&gt;if(Region = 'All',&amp;nbsp; &amp;nbsp;((Avg({Region={'North'}&amp;gt;}Time) *count({&amp;lt;Region={'North'}&amp;gt;} distinct [Serial Number])) +&lt;BR /&gt;(Avg({&amp;lt;Region={'South'}&amp;gt;}Time) * count({&amp;lt;Region={'South'}&amp;gt;} distinct [Serial Number]))+&lt;BR /&gt;(Avg({&amp;lt;Region={'East'}&amp;gt;} Time) * count({&amp;lt;Region={'East'}&amp;gt;} distinct [Serial Number])))/count(distinct [Serial Number]) ,&lt;/P&gt;&lt;P&gt;Avg(Time)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;But below expression shows correct value in a Textbox when 'All' is selected in Region field&lt;/P&gt;&lt;P&gt;((Avg({Region={'North'}&amp;gt;}Time) *count({&amp;lt;Region={'North'}&amp;gt;} distinct [Serial Number])) +&lt;BR /&gt;(Avg({&amp;lt;Region={'South'}&amp;gt;}Time) * count({&amp;lt;Region={'South'}&amp;gt;} distinct [Serial Number]))+&lt;BR /&gt;(Avg({&amp;lt;Region={'East'}&amp;gt;} Time) * count({&amp;lt;Region={'East'}&amp;gt;} distinct [Serial Number])))/count(distinct [Serial Number])&lt;/P&gt;&lt;P&gt;Unable to figure it out the issue . Please suggest&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 06:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Challenge/m-p/1688494#M726977</guid>
      <dc:creator>priya945</dc:creator>
      <dc:date>2020-03-31T06:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Challenge/m-p/1689121#M726978</link>
      <description>&lt;P&gt;Any suggestions please&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 16:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Challenge/m-p/1689121#M726978</guid>
      <dc:creator>priya945</dc:creator>
      <dc:date>2020-03-30T16:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Challenge/m-p/1695428#M726979</link>
      <description>&lt;P&gt;What would likely help most is if you can attach a sample QVW file, little difficult to sort out otherwise, which is why you are not getting further responses.&lt;/P&gt;&lt;P&gt;The best I can do otherwise would be:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You may be able to use the latter in lieu of the ALL Region potentially, but I am not sure, I am not a great developer, but hopefully these may give you some further ideas if you cannot attach a sample application.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 19:23:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Challenge/m-p/1695428#M726979</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-04-21T19:23:04Z</dc:date>
    </item>
  </channel>
</rss>

