<?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 issue in straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-issue-in-straight-table/m-p/283038#M706704</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WeekDayNum would be fine to use. The problem is that deliveryweekday and ShiftDate are detached. The model is connected as shown below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ShiftDate - Delivery - SiteId - DeliveryHourWeekDay - DeliveryStartTime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set analysis still evauluates all the DeliveryWeekDay instead of 1 since it somehow doesn't uses the ShiftDate from the dimension but all available shiftdates. If I select a single shiftdate it works correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understand the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jan 2012 14:42:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-17T14:42:31Z</dc:date>
    <item>
      <title>Set analysis issue in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-issue-in-straight-table/m-p/283036#M706702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following problem. I have a delivery which is linked to a shiftdate. This delivery is done at a site which has certain delivery hours. Now I want to show in a straight table which was the deliverywindow for that site on that shiftdate. Right now my set analysis looks as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only({&amp;lt;DeliveryWeekDay = {$(=WeekDayNum)}&amp;gt;} DeliveryStartTime)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DeliveryWeekDay and DeliveryStartTime are specified in the deliveryhours table&lt;/P&gt;&lt;P&gt;WeekDayNum is the weekdaynumber of the master calendar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with his equation is that it will evaluate WeekDayNum as a variable instead of using the ShiftDate Dimension to evaluate it. Is there a way so that it will take the DeliveryWeekDay of the ShiftDate specified as a dimension? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 13:58:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-issue-in-straight-table/m-p/283036#M706702</guid>
      <dc:creator />
      <dc:date>2012-01-17T13:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis issue in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-issue-in-straight-table/m-p/283037#M706703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean using ShiftDate week day instead of WeekDayNum? Then something like this might work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Only({&amp;lt; DeliveryWeekDay = {"=Num(WeekDay(ShiftDate))"} &amp;gt;} DeliveryStartTime)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on how you have linked your tables this may make no sense at all, though. A few sample records would be great to better understand your model and what results do you expect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 14:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-issue-in-straight-table/m-p/283037#M706703</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-01-17T14:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis issue in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-issue-in-straight-table/m-p/283038#M706704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WeekDayNum would be fine to use. The problem is that deliveryweekday and ShiftDate are detached. The model is connected as shown below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ShiftDate - Delivery - SiteId - DeliveryHourWeekDay - DeliveryStartTime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set analysis still evauluates all the DeliveryWeekDay instead of 1 since it somehow doesn't uses the ShiftDate from the dimension but all available shiftdates. If I select a single shiftdate it works correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understand the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 14:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-issue-in-straight-table/m-p/283038#M706704</guid>
      <dc:creator />
      <dc:date>2012-01-17T14:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis issue in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-issue-in-straight-table/m-p/283039#M706705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's detached, then it's unlikely to work. You may use the P() function to get all possible values, but that will return all values as well. Without knowing your model, I've run out of suggestions except for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;Only(DeliveryStartTime * (ShiftDate=DeliveryDate) * -1)&lt;/CODE&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where DeliveryDate is the field in the same table that DeliveryStartTime that stores the date in the same format that ShiftDate.&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;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2012 15:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-issue-in-straight-table/m-p/283039#M706705</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-01-17T15:05:11Z</dc:date>
    </item>
  </channel>
</rss>

