<?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 Comparative Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparative-Analysis/m-p/392148#M146272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well I got a qlikview document I have a pivot table in which I'm writing comparative analysis expressions&lt;/P&gt;&lt;P&gt;I created to alternate states, Group1 and Group2&lt;/P&gt;&lt;P&gt;my Expression is very simple&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({Group1}Sales)&lt;/P&gt;&lt;P&gt;however now I want this expression to be affected by selections from all other fields&lt;/P&gt;&lt;P&gt;i.e. Sum({Group1 &amp;lt;Path=$::Path......&amp;gt;Sales)&lt;/P&gt;&lt;P&gt;however the fields are very big in number &lt;/P&gt;&lt;P&gt;I defined the following expression&lt;/P&gt;&lt;P&gt;concat('[' &amp;amp; $Field &amp;amp; ']=$::[' &amp;amp; $Field &amp;amp; ']',',')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I evaluate this in a text object I get :&lt;/P&gt;&lt;P&gt;[# of Days Late]=$::[# of Days Late],[# of Days to Ship]=$::[# of Days to Ship],[Accuracy]=$::[Accuracy],[Address Number]=$::[Address Number],[AltCounty]=$::[AltCounty],[AltState]=$::[AltState],[BackOrder]=$::[BackOrder],[BudgetKey]=$::[BudgetKey],[BudgetKey]=$::[BudgetKey],[Budget]=$::[Budget],[City]=$::[City],[Community]=$::[Community],[Coordinates]=$::[Coordinates],[Cost]=$::[Cost],[Country Code]=$::[Country Code],[Country]=$::[Country],[County]=$::[County],[Customer Number]=$::[Customer Number],[Customer Number]=$::[Customer Number],[Customer Number]=$::[Customer Number],[Customer]=$::[Customer],[Date]=$::[Date],[Employed Date]=$::[Employed Date],[Employed Year]=$::[Employed Year],[English]=$::[English],[GeoCodeKey]=$::[GeoCodeKey],[GeoCodeKey]=$::[GeoCodeKey],[GrossSales]=$::[GrossSales],[Index]=$::[Index],[Invoice Date]=$::[Invoice Date],[Invoice Number]=$::[Invoice Number],[Item Desc]=$::[Item Desc],[Item Number]=$::[Item Number],[Item Number]=$::[Item Number],[Latitude]=$::[Latitude],[Line of Business]=$::[Line of Business],[Longitude]=$::[Longitude],[Manager Number]=$::[Manager Number],[Manager]=$::[Manager],[Margin]=$::[Margin],[MonthYear]=$::[MonthYear],[Month]=$::[Month],[Open Qty]=$::[Open Qty],[OpenOrder]=$::[OpenOrder],[Order Number]=$::[Order Number],[Path]=$::[Path],[Post Code]=$::[Post Code],[Product Group]=$::[Product Group],[Product Line]=$::[Product Line],[Product Sub Group]=$::[Product Sub Group],[Product Type]=$::[Product Type],[Promised Delivery Date]=$::[Promised Delivery Date],[QtrYear]=$::[QtrYear],[Quarter]=$::[Quarter],[QuotaKey]=$::[QuotaKey],[Region Code]=$::[Region Code],[Region Code]=$::[Region Code],[Region]=$::[Region],[Sales Qty]=$::[Sales Qty],[Sales Rep Name1]=$::[Sales Rep Name1],[Sales Rep Name2]=$::[Sales Rep Name2],[Sales Rep Name3]=$::[Sales Rep Name3],[Sales Rep Name]=$::[Sales Rep Name],[Sales Rep Number]=$::[Sales Rep Number],[Sales Rep Number]=$::[Sales Rep Number],[Sales Rep Number]=$::[Sales Rep Number],[Sales Rep]=$::[Sales Rep],[SalesKey]=$::[SalesKey],[SalesKey]=$::[SalesKey],[SalesRep Profile]=$::[SalesRep Profile],[Sales]=$::[Sales],[State]=$::[State],[Superior Number]=$::[Superior Number],[Superior]=$::[Superior],[Week]=$::[Week],[Weekend]=$::[Weekend],[Weekstart]=$::[Weekstart],[Year]=$::[Year],[_History]=$::[_History],[_LANGUAGE]=$::[_LANGUAGE],[_Projected]=$::[_Projected],[_dimension]=$::[_dimension],[_metricPickOne]=$::[_metricPickOne],[_metricsNo]=$::[_metricsNo],[_metrics]=$::[_metrics],[_zoom_level]=$::[_zoom_level],[maptype]=$::[maptype]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. all the fields&lt;/P&gt;&lt;P&gt;however when I put in my Expression sum({Group1 &amp;lt;$(=concat('[' &amp;amp; $Field &amp;amp; ']=$::[' &amp;amp; $Field &amp;amp; ']',','))&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;I get null&lt;/P&gt;&lt;P&gt;Please advise&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Feb 2013 09:11:21 GMT</pubDate>
    <dc:creator>ali_hijazi</dc:creator>
    <dc:date>2013-02-28T09:11:21Z</dc:date>
    <item>
      <title>Comparative Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparative-Analysis/m-p/392148#M146272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well I got a qlikview document I have a pivot table in which I'm writing comparative analysis expressions&lt;/P&gt;&lt;P&gt;I created to alternate states, Group1 and Group2&lt;/P&gt;&lt;P&gt;my Expression is very simple&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({Group1}Sales)&lt;/P&gt;&lt;P&gt;however now I want this expression to be affected by selections from all other fields&lt;/P&gt;&lt;P&gt;i.e. Sum({Group1 &amp;lt;Path=$::Path......&amp;gt;Sales)&lt;/P&gt;&lt;P&gt;however the fields are very big in number &lt;/P&gt;&lt;P&gt;I defined the following expression&lt;/P&gt;&lt;P&gt;concat('[' &amp;amp; $Field &amp;amp; ']=$::[' &amp;amp; $Field &amp;amp; ']',',')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I evaluate this in a text object I get :&lt;/P&gt;&lt;P&gt;[# of Days Late]=$::[# of Days Late],[# of Days to Ship]=$::[# of Days to Ship],[Accuracy]=$::[Accuracy],[Address Number]=$::[Address Number],[AltCounty]=$::[AltCounty],[AltState]=$::[AltState],[BackOrder]=$::[BackOrder],[BudgetKey]=$::[BudgetKey],[BudgetKey]=$::[BudgetKey],[Budget]=$::[Budget],[City]=$::[City],[Community]=$::[Community],[Coordinates]=$::[Coordinates],[Cost]=$::[Cost],[Country Code]=$::[Country Code],[Country]=$::[Country],[County]=$::[County],[Customer Number]=$::[Customer Number],[Customer Number]=$::[Customer Number],[Customer Number]=$::[Customer Number],[Customer]=$::[Customer],[Date]=$::[Date],[Employed Date]=$::[Employed Date],[Employed Year]=$::[Employed Year],[English]=$::[English],[GeoCodeKey]=$::[GeoCodeKey],[GeoCodeKey]=$::[GeoCodeKey],[GrossSales]=$::[GrossSales],[Index]=$::[Index],[Invoice Date]=$::[Invoice Date],[Invoice Number]=$::[Invoice Number],[Item Desc]=$::[Item Desc],[Item Number]=$::[Item Number],[Item Number]=$::[Item Number],[Latitude]=$::[Latitude],[Line of Business]=$::[Line of Business],[Longitude]=$::[Longitude],[Manager Number]=$::[Manager Number],[Manager]=$::[Manager],[Margin]=$::[Margin],[MonthYear]=$::[MonthYear],[Month]=$::[Month],[Open Qty]=$::[Open Qty],[OpenOrder]=$::[OpenOrder],[Order Number]=$::[Order Number],[Path]=$::[Path],[Post Code]=$::[Post Code],[Product Group]=$::[Product Group],[Product Line]=$::[Product Line],[Product Sub Group]=$::[Product Sub Group],[Product Type]=$::[Product Type],[Promised Delivery Date]=$::[Promised Delivery Date],[QtrYear]=$::[QtrYear],[Quarter]=$::[Quarter],[QuotaKey]=$::[QuotaKey],[Region Code]=$::[Region Code],[Region Code]=$::[Region Code],[Region]=$::[Region],[Sales Qty]=$::[Sales Qty],[Sales Rep Name1]=$::[Sales Rep Name1],[Sales Rep Name2]=$::[Sales Rep Name2],[Sales Rep Name3]=$::[Sales Rep Name3],[Sales Rep Name]=$::[Sales Rep Name],[Sales Rep Number]=$::[Sales Rep Number],[Sales Rep Number]=$::[Sales Rep Number],[Sales Rep Number]=$::[Sales Rep Number],[Sales Rep]=$::[Sales Rep],[SalesKey]=$::[SalesKey],[SalesKey]=$::[SalesKey],[SalesRep Profile]=$::[SalesRep Profile],[Sales]=$::[Sales],[State]=$::[State],[Superior Number]=$::[Superior Number],[Superior]=$::[Superior],[Week]=$::[Week],[Weekend]=$::[Weekend],[Weekstart]=$::[Weekstart],[Year]=$::[Year],[_History]=$::[_History],[_LANGUAGE]=$::[_LANGUAGE],[_Projected]=$::[_Projected],[_dimension]=$::[_dimension],[_metricPickOne]=$::[_metricPickOne],[_metricsNo]=$::[_metricsNo],[_metrics]=$::[_metrics],[_zoom_level]=$::[_zoom_level],[maptype]=$::[maptype]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. all the fields&lt;/P&gt;&lt;P&gt;however when I put in my Expression sum({Group1 &amp;lt;$(=concat('[' &amp;amp; $Field &amp;amp; ']=$::[' &amp;amp; $Field &amp;amp; ']',','))&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;I get null&lt;/P&gt;&lt;P&gt;Please advise&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 09:11:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparative-Analysis/m-p/392148#M146272</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2013-02-28T09:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Comparative Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparative-Analysis/m-p/392149#M146273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference App: What's new in QlikView 11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess the issue resides in the association of all these fields with the field "Sales".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if you put in a table box both of "# of Days Late" and "Sales" fields, you'll see that there is no association, therefore if you include only this field in the alternate set analysis, you won't get anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what you may need to do is to exclude in the concat function all the fields that are not related to "Sales":&lt;/P&gt;&lt;P&gt;concat({1&amp;lt;$Field -= {'# of Days Late','.....'}&amp;gt;} distinct ...&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps !&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 12:10:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparative-Analysis/m-p/392149#M146273</guid>
      <dc:creator />
      <dc:date>2013-02-28T12:10:00Z</dc:date>
    </item>
  </channel>
</rss>

