<?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: Qlik Sense: Combine Quarter with months in a dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Combine-Quarter-with-months-in-a-dimension/m-p/46846#M3189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if((QuarterEnd(max(saledate))&amp;lt;Today()),QuarterName(max(saledate)),MonthName(max(saledate)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the saledate as fields for calculating this chart, wherein you can modify the same accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can store maximum date available in the data into a variable and use it instead of Today() as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(QuarterEnd(Max(saledate))&amp;lt;QuarterEnd(Date($(Maximum_Date),'DD/MM/YYYY')),QuarterName(max(saledate)),MonthName(max(saledate)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jun 2018 11:49:54 GMT</pubDate>
    <dc:creator>rangam_s</dc:creator>
    <dc:date>2018-06-19T11:49:54Z</dc:date>
    <item>
      <title>Qlik Sense: Combine Quarter with months in a dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Combine-Quarter-with-months-in-a-dimension/m-p/46844#M3187</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;Thanks for looking into this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem Statement:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I want to create a dimension which would return the values in following format based on algorithm...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Let's assume that today is 10/09/2018&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a quarter is complete then only&amp;nbsp; it would show as Quarter&lt;/P&gt;&lt;P&gt;if a quarter is not finished then it would only show the month number&lt;/P&gt;&lt;P&gt;(in following summary, since Sep'18 is not finished yet.. we would want to show till Q2 followed by remaining months)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="249" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="border: 1px solid #000000; width: 336px; height: 240px;" width="334"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Month_Num&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;to be calculated in Dimension&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Q1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Q1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Q1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Q2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Q2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Q2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;7&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Jul-18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Aug-18&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;9&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;STRONG&gt;Sep-18&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried writing an expression which need to be amended to cater above changes:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;=If(Month_Num&amp;lt;Ceil(Max(TOTAL Month_Num),3)-2,[CLOSED.autoCalendar.YearQuarter], [CLOSED.autoCalendar.MonthYear])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for looking into this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 08:11:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Combine-Quarter-with-months-in-a-dimension/m-p/46844#M3187</guid>
      <dc:creator>rahulgoyal1287</dc:creator>
      <dc:date>2018-06-19T08:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense: Combine Quarter with months in a dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Combine-Quarter-with-months-in-a-dimension/m-p/46845#M3188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to create the same field in script like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;let vMin = num(MakeDate(2018));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Let vMax = num(today());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Temp:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD Date($(vMin) + RowNo() -1) as Date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;AutoGenerate 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;While Date($(vMin) + RowNo() -1) &amp;lt;Date($(vMax));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Master:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load Date,If(Today() - QuarterStart(Date) &amp;gt;=90,'Q' &amp;amp; Ceil(NUm(Month(Date))/3),MonthName(Date)) as Temp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Resident Temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Drop table Temp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Kaushik Solanki&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 08:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Combine-Quarter-with-months-in-a-dimension/m-p/46845#M3188</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2018-06-19T08:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense: Combine Quarter with months in a dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Combine-Quarter-with-months-in-a-dimension/m-p/46846#M3189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if((QuarterEnd(max(saledate))&amp;lt;Today()),QuarterName(max(saledate)),MonthName(max(saledate)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the saledate as fields for calculating this chart, wherein you can modify the same accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can store maximum date available in the data into a variable and use it instead of Today() as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(QuarterEnd(Max(saledate))&amp;lt;QuarterEnd(Date($(Maximum_Date),'DD/MM/YYYY')),QuarterName(max(saledate)),MonthName(max(saledate)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 11:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Combine-Quarter-with-months-in-a-dimension/m-p/46846#M3189</guid>
      <dc:creator>rangam_s</dc:creator>
      <dc:date>2018-06-19T11:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense: Combine Quarter with months in a dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Combine-Quarter-with-months-in-a-dimension/m-p/46847#M3190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Load Date,If(Today() - QuarterStart(Date) &amp;gt;=90,'Q' &amp;amp; Ceil(NUm(Month(Date))/3),MonthName(Date)) as Temp&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Resident table name;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 11:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Combine-Quarter-with-months-in-a-dimension/m-p/46847#M3190</guid>
      <dc:creator>arvind1494</dc:creator>
      <dc:date>2018-06-19T11:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense: Combine Quarter with months in a dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Combine-Quarter-with-months-in-a-dimension/m-p/46848#M3191</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 have tried aligning the calculated dimension based on solution provided &amp;amp; it is not working and start giving error -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Internal engine error'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 04:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Combine-Quarter-with-months-in-a-dimension/m-p/46848#M3191</guid>
      <dc:creator>rahulgoyal1287</dc:creator>
      <dc:date>2018-06-21T04:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense: Combine Quarter with months in a dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Combine-Quarter-with-months-in-a-dimension/m-p/46849#M3192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Arvind for this fabulous script.. it is working fine...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Compliments,&lt;/P&gt;&lt;P&gt;Rahul Goyal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 04:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Combine-Quarter-with-months-in-a-dimension/m-p/46849#M3192</guid>
      <dc:creator>rahulgoyal1287</dc:creator>
      <dc:date>2018-06-21T04:31:17Z</dc:date>
    </item>
  </channel>
</rss>

