<?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: Re: Re: chart to cycle between weekly and monthly (first week only) view in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/chart-to-cycle-between-weekly-and-monthly-first-week-only-view/m-p/585054#M547403</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would create a month field in script like:&lt;/P&gt;&lt;P&gt;month(Week) as Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then my formula should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Feb 2014 15:00:39 GMT</pubDate>
    <dc:creator>jerem1234</dc:creator>
    <dc:date>2014-02-28T15:00:39Z</dc:date>
    <item>
      <title>chart to cycle between weekly and monthly (first week only) view</title>
      <link>https://community.qlik.com/t5/QlikView/chart-to-cycle-between-weekly-and-monthly-first-week-only-view/m-p/585050#M547399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some charts, which I need to display both in weekly and monthly details.&lt;/P&gt;&lt;P&gt;Lowest granularity of data is weekly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to use the cyclic dimension, so to switch from week to month.&lt;/P&gt;&lt;P&gt;But (expectably enough), when I switch to month, QV is aggregating all the weekly data for that specific month.&lt;/P&gt;&lt;P&gt;Is there a way to just show the first instance of the month?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 12:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-to-cycle-between-weekly-and-monthly-first-week-only-view/m-p/585050#M547399</guid>
      <dc:creator />
      <dc:date>2014-02-28T12:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: chart to cycle between weekly and monthly (first week only) view</title>
      <link>https://community.qlik.com/t5/QlikView/chart-to-cycle-between-weekly-and-monthly-first-week-only-view/m-p/585051#M547400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can probably achieve this through a calculated dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a calculated dimension, you can try something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(only({&amp;lt;Week ={'=aggr(rank(-Week), Month, Week)=1'}&amp;gt;}Week), Week)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached for an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 14:36:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-to-cycle-between-weekly-and-monthly-first-week-only-view/m-p/585051#M547400</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-02-28T14:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: chart to cycle between weekly and monthly (first week only) view</title>
      <link>https://community.qlik.com/t5/QlikView/chart-to-cycle-between-weekly-and-monthly-first-week-only-view/m-p/585052#M547401</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;Did you define your group as Cyclic? I believe that it should be a Drill-Down Group, as Monthly and Weekly are Time Dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;BS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 14:48:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-to-cycle-between-weekly-and-monthly-first-week-only-view/m-p/585052#M547401</guid>
      <dc:creator />
      <dc:date>2014-02-28T14:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Re: chart to cycle between weekly and monthly (first week only) view</title>
      <link>https://community.qlik.com/t5/QlikView/chart-to-cycle-between-weekly-and-monthly-first-week-only-view/m-p/585053#M547402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your example works cahrmingly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but&amp;nbsp; sadly my data is a bit more " difficult"&amp;nbsp; than yours..&lt;/P&gt;&lt;P&gt;pls see attached example!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have timestamps (and data is refreshed weekly) .&lt;/P&gt;&lt;P&gt;Perhaps is the use of the MonthStart function which is complicating things?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 14:52:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-to-cycle-between-weekly-and-monthly-first-week-only-view/m-p/585053#M547402</guid>
      <dc:creator />
      <dc:date>2014-02-28T14:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: chart to cycle between weekly and monthly (first week only) view</title>
      <link>https://community.qlik.com/t5/QlikView/chart-to-cycle-between-weekly-and-monthly-first-week-only-view/m-p/585054#M547403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would create a month field in script like:&lt;/P&gt;&lt;P&gt;month(Week) as Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then my formula should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 15:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-to-cycle-between-weekly-and-monthly-first-week-only-view/m-p/585054#M547403</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-02-28T15:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re: chart to cycle between weekly and monthly (first week only) view</title>
      <link>https://community.qlik.com/t5/QlikView/chart-to-cycle-between-weekly-and-monthly-first-week-only-view/m-p/585055#M547404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that' s an effective workaround!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but once I have a month field, wouldnt it be easier to use something like a set analysis with min(Month) or something like that?&lt;BR /&gt;Just wondering which would be the best approach to tackle this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 15:11:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-to-cycle-between-weekly-and-monthly-first-week-only-view/m-p/585055#M547404</guid>
      <dc:creator />
      <dc:date>2014-02-28T15:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: chart to cycle between weekly and monthly (first week only) view</title>
      <link>https://community.qlik.com/t5/QlikView/chart-to-cycle-between-weekly-and-monthly-first-week-only-view/m-p/585056#M547405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could add set analysis, but since you are using a group, the new formula would work for one of your groups, but since it is now restricting which week you want, it won't work for the other. You'd have to add an if statement to it like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(GetCurrentField([New Group2]) = 'Week', sum(Value), sum({&amp;lt;Week ={'=aggr(rank(-Week), Month, Week)=1'}&amp;gt;}Value))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to make it work, but by then the calculated dimension is probably easier to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also create a flag in script like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Monthstart(Week)&amp;lt;&amp;gt;previous(Monthstart(Week)), 1, 0) as FirstWeekFlag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then this would reduce your set analysis a bit to just:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(only({&amp;lt;FirstWeekFlag={1}&amp;gt;}Week), Week)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a large data set and are worried about performance, I would try to move as much as you can into the script (such as the new month field or the flag if you need). Then this would reduce the amount you have to calculate for the charts. If not, I would go with the calculated dimension, since then you won't need the if statement for your expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached for examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 16:24:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-to-cycle-between-weekly-and-monthly-first-week-only-view/m-p/585056#M547405</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-02-28T16:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: chart to cycle between weekly and monthly (first week only) view</title>
      <link>https://community.qlik.com/t5/QlikView/chart-to-cycle-between-weekly-and-monthly-first-week-only-view/m-p/585057#M547406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for all the detailed information jeremy.&lt;/P&gt;&lt;P&gt;indeed my data set is large or bound to become large, hence I was having the intention to move as much as possible to the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am actually implementing the Month field in-script and using the calculated dimension&lt;/P&gt;&lt;P&gt;thank you again for the great help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 09:51:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-to-cycle-between-weekly-and-monthly-first-week-only-view/m-p/585057#M547406</guid>
      <dc:creator />
      <dc:date>2014-03-03T09:51:12Z</dc:date>
    </item>
  </channel>
</rss>

