<?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: Dimensional scope problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dimensional-scope-problem/m-p/532971#M549988</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using a master calendar like this one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vDateMax = Floor(MonthEnd(Today())); &lt;/P&gt;&lt;P&gt;LET vDateToday = Num(Today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp_Calendario: &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; $(vDateMin) + RowNo() - 1 as DateNumber, &lt;/P&gt;&lt;P&gt;&amp;nbsp; Date($(vDateMin) + RowNo() - 1) as TempDate &lt;/P&gt;&lt;P&gt;&amp;nbsp; AUTOGENERATE 1 &lt;/P&gt;&lt;P&gt;&amp;nbsp; WHILE $(vDateMin)+IterNo()-1&amp;lt;= $(vDateMax); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendario: &lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp; AutoNumber(Date(TempDate, 'DD.MMM.YY')) as Key.Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; AutoNumber(TempDate, 'PeriodID') as KeyV.PeriodID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; AutoNumber(QuarterName(TempDate)) as KeyV.QuarterID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(MakeDate(Year(TempDate), Num(Month(TempDate)), 1), 'MMM.YY') as Period,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(TempDate, 'DD.MMM.YY') as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Day(TempDate) as Day, &lt;/P&gt;&lt;P&gt;&amp;nbsp; Month(TempDate) as Month, &lt;/P&gt;&lt;P&gt;&amp;nbsp; Year(TempDate) as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp; QuarterName(TempDate) as Quarter,&lt;/P&gt;&lt;P&gt;&amp;nbsp; WeekDay(TempDate) as Weekday,&lt;/P&gt;&lt;P&gt;&amp;nbsp; QuarterName(TempDate)&amp;amp;' '&amp;amp;Ceil(Month(TempDate)/3) as Quarter_Short&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT Temp_Calendario &lt;/P&gt;&lt;P&gt;where WeekDay(TempDate) &amp;lt;&amp;gt; 'Sun'&lt;/P&gt;&lt;P&gt;ORDER BY TempDate ASC; &lt;/P&gt;&lt;P&gt;DROP TABLE Temp_Calendario; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vDateMin = Num(MakeDate(2011,1,1)); &lt;/P&gt;&lt;P&gt;LET vDateMax = Floor(YearEnd(AddMonths(Today(), 12))); &lt;/P&gt;&lt;P&gt;LET vDateToday = Num(Today()); &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Dec 2013 13:40:11 GMT</pubDate>
    <dc:creator>angelaecheverri</dc:creator>
    <dc:date>2013-12-05T13:40:11Z</dc:date>
    <item>
      <title>Dimensional scope problem</title>
      <link>https://community.qlik.com/t5/QlikView/Dimensional-scope-problem/m-p/532970#M549987</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;I am m.o.l. continually struggling with the fact that, in the charts where I have "day" as dimension, I want six days (Mo-Sat) to be displayed, whether there is data for a given day or not, and, if possible, independent of any non_time user_selections (e.g. if the user selects one plant out of several, the timeframe remains unchanged and I would still want six days to be displayed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; It seems (I can't test it, I see it for the first time today) that in some charts where I have a selection_field "plant" although the user cannot actually select as the data is available for only one plant,&lt;/P&gt;&lt;P&gt;=&amp;gt; as long as there is no selection, six dimension_points (days) are displayed all right, but as soon as the user selects that plant, only the days up to "today" are in the chart.&lt;/P&gt;&lt;P&gt;=&amp;gt; The same thing happens when the user makes any other selections (there are some selection_fields where the user CAN actually choose)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; Is there any way I can block that dynamism and just keep the chart static insofar as there shall always be six dimension_points (days) in the chart as long as the user does not select any of the time_fields (year/month/week/day)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 12:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimensional-scope-problem/m-p/532970#M549987</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-12-05T12:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dimensional scope problem</title>
      <link>https://community.qlik.com/t5/QlikView/Dimensional-scope-problem/m-p/532971#M549988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using a master calendar like this one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vDateMax = Floor(MonthEnd(Today())); &lt;/P&gt;&lt;P&gt;LET vDateToday = Num(Today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp_Calendario: &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; $(vDateMin) + RowNo() - 1 as DateNumber, &lt;/P&gt;&lt;P&gt;&amp;nbsp; Date($(vDateMin) + RowNo() - 1) as TempDate &lt;/P&gt;&lt;P&gt;&amp;nbsp; AUTOGENERATE 1 &lt;/P&gt;&lt;P&gt;&amp;nbsp; WHILE $(vDateMin)+IterNo()-1&amp;lt;= $(vDateMax); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendario: &lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp; AutoNumber(Date(TempDate, 'DD.MMM.YY')) as Key.Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; AutoNumber(TempDate, 'PeriodID') as KeyV.PeriodID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; AutoNumber(QuarterName(TempDate)) as KeyV.QuarterID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(MakeDate(Year(TempDate), Num(Month(TempDate)), 1), 'MMM.YY') as Period,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(TempDate, 'DD.MMM.YY') as Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Day(TempDate) as Day, &lt;/P&gt;&lt;P&gt;&amp;nbsp; Month(TempDate) as Month, &lt;/P&gt;&lt;P&gt;&amp;nbsp; Year(TempDate) as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp; QuarterName(TempDate) as Quarter,&lt;/P&gt;&lt;P&gt;&amp;nbsp; WeekDay(TempDate) as Weekday,&lt;/P&gt;&lt;P&gt;&amp;nbsp; QuarterName(TempDate)&amp;amp;' '&amp;amp;Ceil(Month(TempDate)/3) as Quarter_Short&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT Temp_Calendario &lt;/P&gt;&lt;P&gt;where WeekDay(TempDate) &amp;lt;&amp;gt; 'Sun'&lt;/P&gt;&lt;P&gt;ORDER BY TempDate ASC; &lt;/P&gt;&lt;P&gt;DROP TABLE Temp_Calendario; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vDateMin = Num(MakeDate(2011,1,1)); &lt;/P&gt;&lt;P&gt;LET vDateMax = Floor(YearEnd(AddMonths(Today(), 12))); &lt;/P&gt;&lt;P&gt;LET vDateToday = Num(Today()); &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 13:40:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimensional-scope-problem/m-p/532971#M549988</guid>
      <dc:creator>angelaecheverri</dc:creator>
      <dc:date>2013-12-05T13:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dimensional scope problem</title>
      <link>https://community.qlik.com/t5/QlikView/Dimensional-scope-problem/m-p/532972#M549989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angela,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a master_calendar - that was one of the first things we implemented. In all the apps in use here - currently maybe around 40 - there is a master_calendar (identical, from a central qvs file).&lt;/P&gt;&lt;P&gt;I use the date_field %Date to link all data_tables to this and I always have the same expression for the dimension "day" (in a variable).&lt;/P&gt;&lt;P&gt;That does work fine - but only as long as there are no - well, no, that's not entirely true:&lt;/P&gt;&lt;P&gt;=&amp;gt; In most charts, I have an automatic selection of the current_year and the current_week, that seems to do no harm - such is my default_setting and there I have six days on display.&lt;/P&gt;&lt;P&gt;I will have to do some more testing to find out just what exactly causes the dimension to "shrink".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 13:47:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimensional-scope-problem/m-p/532972#M549989</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2013-12-05T13:47:39Z</dc:date>
    </item>
  </channel>
</rss>

