<?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 Set Analysis in an Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-an-Expression/m-p/118067#M18192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to create a table that has a dimension of 'Event Date' and 10 expressions that are all similarly structured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My end goal is to have a value that is the price per ticket paid, based on the total sale divided by the total quantity sold.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My initial expression is: =NUM(avg({$&amp;lt;PRICESCALE={"200 Club End"}&amp;gt;}[TOTALSALE]), '$#,###.') which is giving me the average price of the 'TOTALSALE' when the 'PRICESCALE' is 200 Club End. However, I need to introduce the following count(seatnumber) to divide by the initial expression to result in the average price paid. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2018 14:54:54 GMT</pubDate>
    <dc:creator>evansabres</dc:creator>
    <dc:date>2018-10-18T14:54:54Z</dc:date>
    <item>
      <title>Set Analysis in an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-an-Expression/m-p/118067#M18192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to create a table that has a dimension of 'Event Date' and 10 expressions that are all similarly structured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My end goal is to have a value that is the price per ticket paid, based on the total sale divided by the total quantity sold.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My initial expression is: =NUM(avg({$&amp;lt;PRICESCALE={"200 Club End"}&amp;gt;}[TOTALSALE]), '$#,###.') which is giving me the average price of the 'TOTALSALE' when the 'PRICESCALE' is 200 Club End. However, I need to introduce the following count(seatnumber) to divide by the initial expression to result in the average price paid. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 14:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-an-Expression/m-p/118067#M18192</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2018-10-18T14:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-an-Expression/m-p/118068#M18193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like you need this (not 100% sure and may be some sample data might help explain)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=Sum({$&amp;lt;PRICESCALE={"200 Club End"}&amp;gt;}[TOTALSALE])/Count(seatnumber)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 14:57:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-an-Expression/m-p/118068#M18193</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-18T14:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-an-Expression/m-p/118069#M18194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess, you need the avg Price / ticket paid for respective clubs like 200 Club etc.&lt;/P&gt;&lt;P&gt;if it's set analysis you'd like to go with then, similar to the above comment (but small change):&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Sum({&amp;lt;PRICESCALE={"200 Club End"}&amp;gt;}[TOTALSALE])/Count(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&amp;lt;PRICESCALE={"200 Club End"}&amp;gt;}&lt;/STRONG&gt;seatnumber)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 15:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-an-Expression/m-p/118069#M18194</guid>
      <dc:creator>achettipalli</dc:creator>
      <dc:date>2018-10-18T15:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-an-Expression/m-p/118070#M18195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems to make the number too low.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 15:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-an-Expression/m-p/118070#M18195</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2018-10-18T15:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-an-Expression/m-p/118071#M18196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no idea what you are getting and what you want... may be it's time to elaborate &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, 18 Oct 2018 15:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-an-Expression/m-p/118071#M18196</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-18T15:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-an-Expression/m-p/118072#M18197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Sum({$&amp;lt;PRICESCALE={"200 Club End"}&amp;gt;}[TOTALSALE])/Count(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{$&amp;lt;PRICESCALE={"200 Club End"}&amp;gt;}&lt;/STRONG&gt;seatnumber)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 15:34:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-an-Expression/m-p/118072#M18197</guid>
      <dc:creator>lorenzoconforti</dc:creator>
      <dc:date>2018-10-18T15:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-an-Expression/m-p/118073#M18198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this may work, but still getting results outside of what I would expect. To test this, Can I perform a set expression with no aggregation function? For example, ={$&amp;lt;PRICESCALE={"300 Level V"}&amp;gt;}[TOTALSALE]), '#,###.')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 18:15:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-an-Expression/m-p/118073#M18198</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2018-10-18T18:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-in-an-Expression/m-p/118074#M18199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really! As far as I know, Set analysis can only be used with aggregation functions. &lt;/P&gt;&lt;P&gt;I'd approach this problem by &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Unit testing of separate expressions like checking the individual expressions in a text box. eg. =&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({$&amp;lt;PRICESCALE={"200 Club End"}&amp;gt;}[TOTALSALE]) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;2. Using those expressions in table charts to see if any missing values or incompatible conversion errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 20:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-in-an-Expression/m-p/118074#M18199</guid>
      <dc:creator>achettipalli</dc:creator>
      <dc:date>2018-10-18T20:35:24Z</dc:date>
    </item>
  </channel>
</rss>

