<?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 QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/376781#M1168971</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having trouble with set analysis. I work on a graph whose dimensionality is the number of days of the month. Each of these numbers is associated to a weekday&amp;nbsp; contained in the column NoJourSemaineAchalandage . Here is the expression I would like to write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(DISTINCT {$&amp;lt;SousTypeFacture=SousTypeFacture-{"Pilulier"},NoJourSemaine=NoJourSemaineAchalandage&amp;gt;} Total NoPrescription)/ (COUNT(DISTINCT {$} Total NoSite))/Count(distinct {$&amp;lt;NoJourSemaine=NoJourSemaineAchalandage&amp;gt;} Total NomFraJourSemaine)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the part NoJourSemaine = NoJourSemaineAchalandage does not work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached an example of qvw where there is my model and the graph with the mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know a way to do this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Melissa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2012 19:07:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-09T19:07:42Z</dc:date>
    <item>
      <title>Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/376781#M1168971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having trouble with set analysis. I work on a graph whose dimensionality is the number of days of the month. Each of these numbers is associated to a weekday&amp;nbsp; contained in the column NoJourSemaineAchalandage . Here is the expression I would like to write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(DISTINCT {$&amp;lt;SousTypeFacture=SousTypeFacture-{"Pilulier"},NoJourSemaine=NoJourSemaineAchalandage&amp;gt;} Total NoPrescription)/ (COUNT(DISTINCT {$} Total NoSite))/Count(distinct {$&amp;lt;NoJourSemaine=NoJourSemaineAchalandage&amp;gt;} Total NomFraJourSemaine)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the part NoJourSemaine = NoJourSemaineAchalandage does not work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached an example of qvw where there is my model and the graph with the mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know a way to do this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Melissa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 19:07:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/376781#M1168971</guid>
      <dc:creator />
      <dc:date>2012-08-09T19:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/376782#M1168972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Melissa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry, I haven't really got what you're after, but maybe something like this (i.e. using the p() function for the NoJourSemaine field modifier) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Count(DISTINCT {$&amp;lt;NoJourSemaine=p(NoJourSemaineAchalendage)&amp;gt;} Total NoPrescription)/ &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(COUNT(DISTINCT {$} Total NoSite))/Count(distinct {$&amp;lt;NoJourSemaine=p(NoJourSemaineAchalendage)&amp;gt;} &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Total NomFraJourSemaine)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 21:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/376782#M1168972</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-08-09T21:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/376783#M1168973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt; I ever tried this solution but with the function P() the column NoJourSemaineAchalendage is independant of the dimentionality and it's not that I want to. Indeed, the NoJourSemaineAchalendage has to change whith the NoJourMois (Dimensionality).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mélissa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 13:10:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/376783#M1168973</guid>
      <dc:creator />
      <dc:date>2012-08-10T13:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/376784#M1168974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, I see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No good news, then: the set expression is evaluated once per chart, not per dimension value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using a conditional instead, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Count(TOTAL DISTINCT if(NoJourSemaine=NoJourSemaineAchalendage, NoPrescription))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another issue could be the use of total in &lt;EM&gt;all &lt;/EM&gt;aggregation functions in your expression, this will not take the dimension into account for any part of the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So all in all, maybe something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Count( DISTINCT if(NoJourSemaine=NoJourSemaineAchalendage,NoPrescription))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/ (COUNT(DISTINCT&amp;nbsp; Total NoSite))/Count(total distinct if(NoJourSemaine=NoJourSemaineAchalendage, NomFraJourSemaine))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[I am sorry, still no clue what you want to show here]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 13:37:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/376784#M1168974</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-08-10T13:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/376785#M1168975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you again for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this solution : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Count(TOTAL DISTINCT if(NoJourSemaine=NoJourSemaineAchalendage, NoPrescription))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;NoJourSemaineAchalendage is independant of the dimensionality because of "Total" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and with this solution :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #333333; font-size: 9pt; sans-serif&amp;amp;quot: ; font-family: &amp;amp;quot; Arial&amp;amp;quot: ; ,&amp;amp;quot: ;"&gt;Count( DISTINCT if(NoJourSemaine=NoJourSemaineAchalendage,NoPrescription)) &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;NoPrescription is dependant of the dimensionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like a way to have NoJourSemaineAchalendage dependant of the dimensionality and NoPrescription independant of the dimensionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mélissa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 14:01:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis/m-p/376785#M1168975</guid>
      <dc:creator />
      <dc:date>2012-08-10T14:01:45Z</dc:date>
    </item>
  </channel>
</rss>

