<?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 Monthday based on range ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-Monthday-based-on-range/m-p/1442250#M432647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not 100% sure of what you're trying to achieve but if you want the week of the month based on a datefield in your calendar you could use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month(DateKey)&amp;amp;' W'&amp;amp;Ceil((Day(DateKey)+WeekDay(MonthStart(DateKey),0))/7,1) as WeekoftheMonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please double check it as I haven't fully tested it, but it seemed alright. Let me know how did it go,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Nov 2017 01:25:09 GMT</pubDate>
    <dc:creator>luismadriz</dc:creator>
    <dc:date>2017-11-09T01:25:09Z</dc:date>
    <item>
      <title>How to get Monthday based on range ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-Monthday-based-on-range/m-p/1442249#M432646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our business is very focused on "weeks" in a given month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So November would be reported as&lt;/P&gt;&lt;P&gt;Nov - Week 1 =&amp;nbsp; 11/01/17 - 11/05/17&lt;/P&gt;&lt;P&gt;Nov Week 2 =&amp;nbsp; 11/06/17 -&amp;nbsp; 11/12/17&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now on the pivot tables.. I need to also include "Prior Year" therefore, If I can create MonthDays in the data load script.. I can reference them in the pivot tables thus the only set expression I would need to worry about is just the year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the question is - how do I create a "MonthDay range" in a dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attempted to do it below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(dimPeriodFilter)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;"Num" As [DateKey],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Nov Week 1 As [PeriodNameNov]&lt;/P&gt;&lt;P&gt;Resident TempCalendar&lt;/P&gt;&lt;P&gt;Where Monthday(date)) &amp;gt;= Date('11/01/2017')&lt;/P&gt;&lt;P&gt;And Monthday(date) &amp;lt;= Date('11/05/2017')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the output to be this,&lt;/P&gt;&lt;P&gt;Nov 1, Nov 2, Nov 3, Nov 4, Nov 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 23:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-Monthday-based-on-range/m-p/1442249#M432646</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-08T23:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Monthday based on range ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-Monthday-based-on-range/m-p/1442250#M432647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not 100% sure of what you're trying to achieve but if you want the week of the month based on a datefield in your calendar you could use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month(DateKey)&amp;amp;' W'&amp;amp;Ceil((Day(DateKey)+WeekDay(MonthStart(DateKey),0))/7,1) as WeekoftheMonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please double check it as I haven't fully tested it, but it seemed alright. Let me know how did it go,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2017 01:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-Monthday-based-on-range/m-p/1442250#M432647</guid>
      <dc:creator>luismadriz</dc:creator>
      <dc:date>2017-11-09T01:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Monthday based on range ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-Monthday-based-on-range/m-p/1442251#M432648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Just wondering to know how you went about this one,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Cheers,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Luis&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;PS. When applicable please mark the appropriate replies as Correct. This will help community members know which discussions have already been addressed and have a possible known solution. Please mark replies as Helpful if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as Helpful if you feel additional info is useful to others&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 22:48:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-Monthday-based-on-range/m-p/1442251#M432648</guid>
      <dc:creator>luismadriz</dc:creator>
      <dc:date>2017-11-21T22:48:42Z</dc:date>
    </item>
  </channel>
</rss>

