<?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: How to get row specific values into Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-row-specific-values-into-Set-Analysis/m-p/635691#M233144</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm...I have several sets of rules - some for country, some for category, some for content, etc. 8 or so different fields in total. I guess I could create a rule_map for each field as a character string. I have the rules and schedule linked through channel right now so I guess my composite key would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;channel, country, exhibition, source, etc, etc. (00 being an "All" wildcard) - e.g. 'NICK0200000000000000'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll give it a go and let you know...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jun 2014 15:30:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-02T15:30:04Z</dc:date>
    <item>
      <title>How to get row specific values into Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-row-specific-values-into-Set-Analysis/m-p/635689#M233142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Been struggling with this problem for a few days and thought I'd share my pain...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two data sets. One containing a schedule, one containing some rules:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Schedule:&lt;/P&gt;&lt;P&gt;Channel, Date, Start Time, End Time, Duration, ScheduleCountry, Category&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;Nickelodeon, 01/03/2014, 06:00:00, 06:59:59, 60:00, Canada, Animation&lt;/P&gt;&lt;P&gt;Nickelodeon, 01/03/2014, 07:00:00, 07:29:59, 30:00, USA, Live Action&lt;/P&gt;&lt;P&gt;(couple-hundred thousand rows in all)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rules:&lt;/P&gt;&lt;P&gt;Channel, RuleCountry, Category, Percentage&lt;/P&gt;&lt;P&gt;Nickelodeon, Canada, All, 50&lt;/P&gt;&lt;P&gt;Nickelodeon, All, Animation, 40&lt;/P&gt;&lt;P&gt;(about 50 rules)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, first rule says "the total time in the schedule for Nickelodeon must have 50% or higher with Canada as the Country value". I hard-coded this formula for just that rule. In my pivot table I have a formula that includes my current selected channel, year and month (year and month derived at load time) but only country code 2 (Canada):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=interval(timestamp#(sum({1&amp;lt;CHANNEL=P(CHANNEL),SCHEDULE_YEAR=P(SCHEDULE_YEAR), SCHEDULE_MONTH=P(SCHEDULE_MONTH),ScheduleCountry={2}&amp;gt;}SCHEDULE_DURATION_SECONDS),'ss'),'hh:mm:ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That gives me the correct total time! Woo! But...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because I have about 50 different rules I don't want 50 hard-coded statements. I want to display in the rules table the total time dependent on the value of the columns in that particular rule row (and later I'll extrapolate this to a percentage). If I change the hard-coded value "2" into "RuleCountry" I just get 00:00:00. Attached a pic of how it looks now...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice would be appreciated. I'm pretty new to QlikView so just getting this hard-coded set analysis statement working was mind-blowing!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 13:21:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-row-specific-values-into-Set-Analysis/m-p/635689#M233142</guid>
      <dc:creator />
      <dc:date>2014-06-02T13:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get row specific values into Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-row-specific-values-into-Set-Analysis/m-p/635690#M233143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Antony.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately Set Analysis is evaluated only once per chart, it's not in a per line basis, so it won't work for you. What I advise is for you to create a composite key CHANNEL_COUNTRY to link the Schedule table and the Rules table. That way you won't need the last part regarding &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ScheduleCountry&lt;/SPAN&gt; in the Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 14:54:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-row-specific-values-into-Set-Analysis/m-p/635690#M233143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-02T14:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get row specific values into Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-row-specific-values-into-Set-Analysis/m-p/635691#M233144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm...I have several sets of rules - some for country, some for category, some for content, etc. 8 or so different fields in total. I guess I could create a rule_map for each field as a character string. I have the rules and schedule linked through channel right now so I guess my composite key would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;channel, country, exhibition, source, etc, etc. (00 being an "All" wildcard) - e.g. 'NICK0200000000000000'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll give it a go and let you know...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 15:30:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-row-specific-values-into-Set-Analysis/m-p/635691#M233144</guid>
      <dc:creator />
      <dc:date>2014-06-02T15:30:04Z</dc:date>
    </item>
  </channel>
</rss>

