<?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: Average Using Top 10 Ranked Items in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/21616#M3607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if the attached is what you wanted?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/194921_Capture.PNG" style="height: 102px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Feb 2018 15:26:39 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-02-28T15:26:39Z</dc:date>
    <item>
      <title>Average Using Top 10 Ranked Items</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/21612#M3603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having an issue where I have been asked to build a chart that shows the top 10 revenue producing guest types in my database, and I have added a column that ranks them.&amp;nbsp; Which was simple. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I am now trying to add an Average Daily Rate (which is a calculation of room only revenue over nights).&amp;nbsp; The issue is that, even though I have said not to include non-top-10 items when then chart draws, if I use Expression Total mode on the Expressions tab, that average is not accurate and appears to still based on all records in the selection/database.&amp;nbsp; ADR here should be 195.97; this ADR of 195.11 includes the remaining records not shown.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/194744_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't sum or average rows all the individual ADRs using the Sum (Or Average) of Rows Mode on the Expressions tab:&lt;/P&gt;&lt;P&gt;1) Sum adds them up, which is obviously not what I am after and &lt;/P&gt;&lt;P&gt;2) Regarding Average, it needs to be (Sum(total revenue)/sum(total room nights)) not Avg(ADR)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried Set Analysis in the formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;[Guest Type]={"=Rank(sum(column(1))&amp;lt;11"}&amp;gt;}column(5)/Column(4))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Column(1) is a somewhat complex calculation of the total revenue that's being used for the ranking, then column(5) is the room revenue and column(4) contains the nights.&amp;nbsp; It's producing all 0s.That was something I saw in a post here somewhere but for me, it's just not working for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone see what I am doing wrong?&amp;nbsp; Or is there a simpler way/setting to get the ADR to do what I need it to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help you can provide!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 15:42:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/21612#M3603</guid>
      <dc:creator>raynac</dc:creator>
      <dc:date>2018-02-27T15:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Average Using Top 10 Ranked Items</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/21613#M3604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please share your data or app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 16:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/21613#M3604</guid>
      <dc:creator>isingh30</dc:creator>
      <dc:date>2018-02-27T16:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Average Using Top 10 Ranked Items</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/21614#M3605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I sure can, thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it is!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 14:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/21614#M3605</guid>
      <dc:creator>raynac</dc:creator>
      <dc:date>2018-02-28T14:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Average Using Top 10 Ranked Items</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/21615#M3606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why we are using column 1,4 &amp;amp; 5. Don't we have names?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 15:16:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/21615#M3606</guid>
      <dc:creator>isingh30</dc:creator>
      <dc:date>2018-02-28T15:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Average Using Top 10 Ranked Items</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/21616#M3607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if the attached is what you wanted?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/194921_Capture.PNG" style="height: 102px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 15:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/21616#M3607</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-28T15:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Average Using Top 10 Ranked Items</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/21617#M3608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exactly what I wanted, thank you!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, what did you do??&amp;nbsp; I need to be able to replicate it and I can't figure out what you changed! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 15:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/21617#M3608</guid>
      <dc:creator>raynac</dc:creator>
      <dc:date>2018-02-28T15:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Average Using Top 10 Ranked Items</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/21618#M3609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed the expression for Ttl Rm Nghts and Ttl Rm Rev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ttl Rm Nghts&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;[Guest Type Code] = {"=Rank(sum(if(GetFieldSelections([Group Block Marketing Select])='Exclude' and [Room Night Group Block] = 'Y',0,[Room Night Collected RmRev])) +&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(if(wildmatch(GetFieldSelections(_Dimension,',', 10),'*Activity*'), sum(if(GetFieldSelections([Group Block Marketing Select])='Exclude' and [Room Night Group Block] = 'Y',0,[Room Night ActivityRev])),0) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(wildmatch(GetFieldSelections(_Dimension,',', 10),'*Other Charge*'), sum(if(GetFieldSelections([Group Block Marketing Select])='Exclude' and [Room Night Group Block] = 'Y',0,[Room Night OtherChargeRev])),0) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(wildmatch(GetFieldSelections(_Dimension,',', 10),'*Shuttle*'), sum(if(GetFieldSelections([Group Block Marketing Select])='Exclude' and [Room Night Group Block] = 'Y',0,[Room Night ShuttleRev])),0) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(wildmatch(GetFieldSelections(_Dimension,',', 10),'*Spa Services*'), sum(if(GetFieldSelections([Group Block Marketing Select])='Exclude' and [Room Night Group Block] = 'Y',0,[Room Night SpaRev])),0) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(wildmatch(GetFieldSelections(_Dimension,',', 10),'*Package*'), sum(if(GetFieldSelections([Group Block Marketing Select])='Exclude' and [Room Night Group Block] = 'Y',0,[Room Night PkgRev])),0) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(wildmatch(GetFieldSelections(_Dimension,',', 10),'*Facility*'), sum(if(GetFieldSelections([Group Block Marketing Select])='Exclude' and [Room Night Group Block] = 'Y',0,[Room Night FacilityRev])),0) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(wildmatch(GetFieldSelections(_Dimension,',', 10),'*Alternate Inventory*'), sum(if(GetFieldSelections([Group Block Marketing Select])='Exclude' and [Room Night Group Block] = 'Y',0,[Room Night AltInvRev])),0) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(wildmatch(GetFieldSelections(_Dimension,',', 10),'*Other Revenue*'), sum(if(GetFieldSelections([Group Block Marketing Select])='Exclude' and [Room Night Group Block] = 'Y',0,[Room Night OtherRev])),0))) &amp;lt; 11"}&amp;gt;}if(GetFieldSelections([Group Block Marketing Select])='Exclude' and [Room Night Group Block] = 'Y',0,[Room Night ReportRmNghts]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ttl Rm Rev&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;[Guest Type Code] = {"=Rank(sum(if(GetFieldSelections([Group Block Marketing Select])='Exclude' and [Room Night Group Block] = 'Y',0,[Room Night Collected RmRev])) +&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(if(wildmatch(GetFieldSelections(_Dimension,',', 10),'*Activity*'), sum(if(GetFieldSelections([Group Block Marketing Select])='Exclude' and [Room Night Group Block] = 'Y',0,[Room Night ActivityRev])),0) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(wildmatch(GetFieldSelections(_Dimension,',', 10),'*Other Charge*'), sum(if(GetFieldSelections([Group Block Marketing Select])='Exclude' and [Room Night Group Block] = 'Y',0,[Room Night OtherChargeRev])),0) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(wildmatch(GetFieldSelections(_Dimension,',', 10),'*Shuttle*'), sum(if(GetFieldSelections([Group Block Marketing Select])='Exclude' and [Room Night Group Block] = 'Y',0,[Room Night ShuttleRev])),0) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(wildmatch(GetFieldSelections(_Dimension,',', 10),'*Spa Services*'), sum(if(GetFieldSelections([Group Block Marketing Select])='Exclude' and [Room Night Group Block] = 'Y',0,[Room Night SpaRev])),0) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(wildmatch(GetFieldSelections(_Dimension,',', 10),'*Package*'), sum(if(GetFieldSelections([Group Block Marketing Select])='Exclude' and [Room Night Group Block] = 'Y',0,[Room Night PkgRev])),0) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(wildmatch(GetFieldSelections(_Dimension,',', 10),'*Facility*'), sum(if(GetFieldSelections([Group Block Marketing Select])='Exclude' and [Room Night Group Block] = 'Y',0,[Room Night FacilityRev])),0) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(wildmatch(GetFieldSelections(_Dimension,',', 10),'*Alternate Inventory*'), sum(if(GetFieldSelections([Group Block Marketing Select])='Exclude' and [Room Night Group Block] = 'Y',0,[Room Night AltInvRev])),0) + &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(wildmatch(GetFieldSelections(_Dimension,',', 10),'*Other Revenue*'), sum(if(GetFieldSelections([Group Block Marketing Select])='Exclude' and [Room Night Group Block] = 'Y',0,[Room Night OtherRev])),0))) &amp;lt; 11"}&amp;gt;}if(GetFieldSelections([Group Block Marketing Select])='Exclude' and [Room Night Group Block] = 'Y',0,[Room Night Collected RmRev]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 15:51:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/21618#M3609</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-28T15:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Average Using Top 10 Ranked Items</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/21619#M3610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OH!&amp;nbsp; I was totally focused on the average field; because the numerator and denominator were already correct, it didn't occur to me to rejig those with a set Analysis instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much.&amp;nbsp; I appreciate your assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked out your profile and you seem to be a Qlikview superhero.&amp;nbsp; There is no chance you know how (or if it's even possible) to add a subtotal of the top 10 above the "All Others" line, is there?&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/194930_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 16:09:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/21619#M3610</guid>
      <dc:creator>raynac</dc:creator>
      <dc:date>2018-02-28T16:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Average Using Top 10 Ranked Items</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/21620#M3611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can look at a hack specified in this thread to do it&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/240031"&gt;Pivot Table Partial Percentage&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 16:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/21620#M3611</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-28T16:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Average Using Top 10 Ranked Items</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/21621#M3612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WOW.&amp;nbsp; OK...I'll take a look when I have some time to try and implement that.&amp;nbsp; It might take me a little bit of finagling, but thank you so much for pointing me in the right direction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 16:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/21621#M3612</guid>
      <dc:creator>raynac</dc:creator>
      <dc:date>2018-02-28T16:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Average Using Top 10 Ranked Items</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/1743506#M453104</link>
      <description>&lt;P&gt;I m quite new to qlik sense. .&lt;/P&gt;&lt;P&gt;in my data set basically follwoing in fields given&lt;/P&gt;&lt;P&gt;ACcount ID , Client ID, Fiscal date, transaction date , booking date, reservation status, no of room night, no of available rooms , property name, category .. etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;cant i calcuate, ARR by simply&amp;nbsp; &amp;nbsp;sum(revenue) /Sum(no of room nights)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 09:37:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Using-Top-10-Ranked-Items/m-p/1743506#M453104</guid>
      <dc:creator>Chamini2020</dc:creator>
      <dc:date>2020-09-14T09:37:25Z</dc:date>
    </item>
  </channel>
</rss>

