<?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: Long If Else in chart dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Long-If-Else-in-chart-dimension/m-p/1048309#M937935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Oleg and Marcus. I tried to implement the similar approach. The reason I couldnt implement master calendar is because all of these fields are from different tables I created in order to make it work with cumulative view. And also changed couple things in GUI. Still it is happening. Please find the attached picture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please also see below for calculated dimension field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(vTime = 'Calendar Month',AssetMonthYearAsOf,if(vTime = 'Calendar Quarter',AssetCalQuarterYearAsOf,if(vTime = 'Calendar Year',AssetYearAsOf,if(vTime = 'Fiscal Quarter',AssetFisQuarterYearAsOf,if(vTime = 'Fiscal Year',AssetShipFiscalYearAsOf)))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The key is if a person changes the view from Calendar Month to Fiscal Quarter -&amp;gt; it should change the view accordingly. And I am handling this through variable vTime.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if there is any alternative of this if else condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Parth&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;IMG __jive_id="115029" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/115029_Capture.PNG" style="height: 290px; width: 620px;" /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Feb 2016 18:17:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-17T18:17:43Z</dc:date>
    <item>
      <title>Long If Else in chart dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Long-If-Else-in-chart-dimension/m-p/1048306#M937932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to show Fiscal quarter and calendar quarter and fiscal year and calendar year at the same time in same chart. Please see an attached image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using variables for this selections. Please see my long calculated dimension below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(vTime = 'Month' and vMonthType = 'Calendar Month',UnitMonthYearAsOf,if(vTime = 'Quarter' and vQuarterType = 'Calendar Quarter',if(UnitQuarterYearAsOf like 'Jan*','Q1 ',if(UnitQuarterYearAsOf like 'Apr*','Q2 ',if(UnitQuarterYearAsOf like 'Jul*','Q3 ',if(UnitQuarterYearAsOf like 'Oct*','Q4 ')))) &amp;amp; Year(UnitQuarterYearAsOf),if(vTime = 'Year' and vYearType = 'Calendar Year',UnitYearAsOf,if(vTime = 'Quarter' and vQuarterType = 'Fiscal Quarter',if(UnitFiscalShipQuarterYearAsOf like 'Feb*','Q1 ',if(&lt;SPAN style="font-size: 13.3333px;"&gt;UnitFiscalShipQuarterYearAsOf &lt;/SPAN&gt;like 'May*','Q2 ',if(&lt;SPAN style="font-size: 13.3333px;"&gt;UnitFiscalShipQuarterYearAsOf &lt;/SPAN&gt;like 'Aug*','Q3 ',if(&lt;SPAN style="font-size: 13.3333px;"&gt;UnitFiscalShipQuarterYearAsOf &lt;/SPAN&gt;like 'Nov*','Q4 ')))) &amp;amp; Year(&lt;SPAN style="font-size: 13.3333px;"&gt;UnitFiscalShipQuarterYearAsOf &lt;/SPAN&gt;),if(vTime = 'Year' and vYearType = 'Fiscal Year',UnitShipFiscalYearAsOf)))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everytime I try to change the selection chart takes a long time to load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All of these fields are coming from different tables. &lt;SPAN style="font-size: 13.3333px;"&gt;UnitMonthYearAsOf, &lt;SPAN style="font-size: 13.3333px;"&gt;UnitQuarterYearAsOf, &lt;SPAN style="font-size: 13.3333px;"&gt;UnitYearAsOf, &lt;/SPAN&gt;etc&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone can please help me, I would greatly appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Parth Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 22:03:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Long-If-Else-in-chart-dimension/m-p/1048306#M937932</guid>
      <dc:creator />
      <dc:date>2016-02-16T22:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Long If Else in chart dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Long-If-Else-in-chart-dimension/m-p/1048307#M937933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Parth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you certainly shouldn't calculate fiscal Months and fiscal Quarters on the fly in your calculated dimensions. Instead, add a Master Calendar table in your data model and calculate all date-related fields there. It will help you improve the run-time performance tremendously!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;P&gt;Upgrade your Qlik skills at the &lt;A href="http://masterssummit.com/"&gt;Masters Summit for Qlik &lt;/A&gt;- coming soon to Milan, Italy!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 23:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Long-If-Else-in-chart-dimension/m-p/1048307#M937933</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-02-16T23:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Long If Else in chart dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Long-If-Else-in-chart-dimension/m-p/1048308#M937934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Oleg that calculated dimensions are the worst case from a performance point of view. Here you find many informations about &lt;A href="https://community.qlik.com/docs/DOC-8843"&gt;How to use - Master-Calendar and Date-Values&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 08:48:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Long-If-Else-in-chart-dimension/m-p/1048308#M937934</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-02-17T08:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Long If Else in chart dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Long-If-Else-in-chart-dimension/m-p/1048309#M937935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Oleg and Marcus. I tried to implement the similar approach. The reason I couldnt implement master calendar is because all of these fields are from different tables I created in order to make it work with cumulative view. And also changed couple things in GUI. Still it is happening. Please find the attached picture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please also see below for calculated dimension field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(vTime = 'Calendar Month',AssetMonthYearAsOf,if(vTime = 'Calendar Quarter',AssetCalQuarterYearAsOf,if(vTime = 'Calendar Year',AssetYearAsOf,if(vTime = 'Fiscal Quarter',AssetFisQuarterYearAsOf,if(vTime = 'Fiscal Year',AssetShipFiscalYearAsOf)))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The key is if a person changes the view from Calendar Month to Fiscal Quarter -&amp;gt; it should change the view accordingly. And I am handling this through variable vTime.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if there is any alternative of this if else condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Parth&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;IMG __jive_id="115029" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/115029_Capture.PNG" style="height: 290px; width: 620px;" /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 18:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Long-If-Else-in-chart-dimension/m-p/1048309#M937935</guid>
      <dc:creator />
      <dc:date>2016-02-17T18:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Long If Else in chart dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Long-If-Else-in-chart-dimension/m-p/1048310#M937936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Especially if you have multiple dates from various tables do you need a script-solution - here is an excellent explanation how to handle it: &lt;A href="https://community.qlik.com/qlik-blogpost/3585"&gt;Canonical Date&lt;/A&gt; and on them you could connect a fiscal calendar: &lt;A href="https://community.qlik.com/qlik-blogpost/3138"&gt;Fiscal Year&lt;/A&gt;. More informations could you find within the link from above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 19:16:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Long-If-Else-in-chart-dimension/m-p/1048310#M937936</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-02-17T19:16:53Z</dc:date>
    </item>
  </channel>
</rss>

