<?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: Set analysis in a pivot table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-a-pivot-table/m-p/81284#M5380</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: #000000;"&gt;I think what you are trying should show the correct for other months, can you share sample data/app, this below one is the other alternative which I didn't put properly in the last post - &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Sum(S7_Ct)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;/&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Sum(Total&amp;lt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;S7_ADType&amp;gt;&lt;/SPAN&gt; S7_Ct)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Also do you see any difference if you make your measures as columns and type as rows?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Feb 2018 18:57:02 GMT</pubDate>
    <dc:creator>Digvijay_Singh</dc:creator>
    <dc:date>2018-02-23T18:57:02Z</dc:date>
    <item>
      <title>Set analysis in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-a-pivot-table/m-p/81279#M5375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following pivot table: see attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rows = Month, measures&lt;/P&gt;&lt;P&gt;Columns = Marketing type&lt;/P&gt;&lt;P&gt;Measures = multiple, including "% of Loans"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;% of Loans is calculated as:&amp;nbsp; that month's "Loans Generated" divided by that columns sum of "Loans Generated" across all the months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying different versions of set analysis and total, but haven't been able to get the working formula yet.&amp;nbsp; Can someone help? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 17:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-in-a-pivot-table/m-p/81279#M5375</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-23T17:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-a-pivot-table/m-p/81280#M5376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following formula works in coming up with the column totals:&amp;nbsp; Sum( Aggr( sum(S7_Ct),S7_ADType) )&lt;/P&gt;&lt;P&gt;This will be the correct denominator in the "% of Loans" formula, so that looks like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(S7_Ct)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Sum(Aggr(sum(S7_Ct),S7_ADType))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However ... for testing, when I put the formula in the "% of Loans" measure in the pivot table, it ONLY puts the correct column total in the month of April 2017.&amp;nbsp; For whatever reason, all the other months show up as $0.&amp;nbsp; See attached for a screenshot of the formula in action.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 17:53:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-in-a-pivot-table/m-p/81280#M5376</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-23T17:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-a-pivot-table/m-p/81281#M5377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you check the result of this - &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Sum(S7_Ct)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;/&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Sum(Total S7_Ct)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;If possible please share sample data to look further.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 18:34:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-in-a-pivot-table/m-p/81281#M5377</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-02-23T18:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-a-pivot-table/m-p/81282#M5378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sum(Total S7_Ct) provides the total sum for all columns, not just the applicable column.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 18:38:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-in-a-pivot-table/m-p/81282#M5378</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-23T18:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-a-pivot-table/m-p/81283#M5379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I filter the pivot table on months, it seems to fill in the value for ONLY the month that comes first alphabetically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, when I take out the month of April (which is the only month that had the number filled in) and only select Dec - Jan - Feb and July (randomly), only the month of December has the number completed.&amp;nbsp; The rest is $0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why would only the 'first' (alphabetically) month show up with this calculation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 18:52:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-in-a-pivot-table/m-p/81283#M5379</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-23T18:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-a-pivot-table/m-p/81284#M5380</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: #000000;"&gt;I think what you are trying should show the correct for other months, can you share sample data/app, this below one is the other alternative which I didn't put properly in the last post - &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Sum(S7_Ct)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;/&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Sum(Total&amp;lt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;S7_ADType&amp;gt;&lt;/SPAN&gt; S7_Ct)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Also do you see any difference if you make your measures as columns and type as rows?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 18:57:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-in-a-pivot-table/m-p/81284#M5380</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-02-23T18:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-a-pivot-table/m-p/81285#M5381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need total by both Month and Type so, it should be like this - &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(Aggr(sum(S7_Ct),&lt;STRONG&gt;Monthfield&lt;/STRONG&gt;,S7_ADType))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;It was showing other months null as it calculates once for all months, I think if you would have added nodistinct in Aggr(), it would have shown same value in all the months.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 19:02:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-in-a-pivot-table/m-p/81285#M5381</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-02-23T19:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-a-pivot-table/m-p/81286#M5382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For ease of troubleshooting, I'm only placing the denominator formula (as in, this should show the total number of old loans per column).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See screenshot "pivot_table": when I use &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(Aggr(sum(S7_Ct),&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;STRONG&gt;Monthfield&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,S7_ADType)), it basically shows the count per ADType and per Month.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;However, it should do the sum without looking at Month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;See screenshot "pivot_table2": without the extra aggregation on Monthfield, it does calculate correctly ... but only for the first alphabetical month!?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 21:13:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-in-a-pivot-table/m-p/81286#M5382</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-23T21:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-a-pivot-table/m-p/81287#M5383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached for a sample App.&amp;nbsp; As you see, the column total only gets shown once.&amp;nbsp; I need it to show for each row, as I would expect the formula to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 22:23:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-in-a-pivot-table/m-p/81287#M5383</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-23T22:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-in-a-pivot-table/m-p/81288#M5384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Digvijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was sure I tested this formula suggestion but it does work!&amp;nbsp; Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(TOTAL &amp;lt;Product&amp;gt; UnitSales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 18:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-in-a-pivot-table/m-p/81288#M5384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-26T18:18:55Z</dc:date>
    </item>
  </channel>
</rss>

