<?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: Calculated Dimension with if Condition Qliksense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculated-Dimension-with-if-Condition-Qliksense/m-p/1448520#M35319</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhargav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might I suggest you try out the &lt;A href="http://branch.qlik.com/#!/project/56728f52d1e497241ae697f8"&gt;qsVariable&lt;/A&gt; extension over on Qlik Branch? It looks like it might be exactly what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create two buttons, Yearly and Monthly and based on the user's selection have the measure return different&amp;nbsp; calculations by way of an if statement. As an approach it's very similar to your implementation but it should be more fluid in terms of user interaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Dec 2017 06:53:45 GMT</pubDate>
    <dc:creator>calexandru</dc:creator>
    <dc:date>2017-12-08T06:53:45Z</dc:date>
    <item>
      <title>Calculated Dimension with if Condition Qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/Calculated-Dimension-with-if-Condition-Qliksense/m-p/1448516#M35315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are having a requirement where we have a filter with two options Yearly and&amp;nbsp; Monthly level in Qliksense.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Based on the selection, the Dimension in the charts should change to Year or Month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;We are using following expression for the Dimension&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;if(getfieldselections(Period) ='Yearly',[Year],[Month])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It works fine if you select Yearly or M&lt;SPAN style="font-size: 10pt;"&gt;onthly in Period filter but as soon as we filter using Dimension Year or Month &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;it behaves in a strange manner.I&lt;SPAN style="font-size: 13.3333px;"&gt;t shows Dimension only at Monthly Level e&lt;/SPAN&gt;ven if you have selected Yearly or Monthly&amp;nbsp; in Period filter&lt;/P&gt;&lt;P&gt;So it ignores the if condition and selects the else condition as shown below&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if(getfieldselections(Period) ='Yearly',[Year],[&lt;STRONG&gt;Month])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;We tried using Master items as dimension but it was giving same results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Needed help on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhargav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 02:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculated-Dimension-with-if-Condition-Qliksense/m-p/1448516#M35315</guid>
      <dc:creator>bhargav_bhat</dc:creator>
      <dc:date>2017-12-08T02:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension with if Condition Qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/Calculated-Dimension-with-if-Condition-Qliksense/m-p/1448517#M35316</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;Create a little text box and display the results of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;getfieldselections(Period) and see if it changes as you make other selections&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Luis&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 03:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculated-Dimension-with-if-Condition-Qliksense/m-p/1448517#M35316</guid>
      <dc:creator>luismadriz</dc:creator>
      <dc:date>2017-12-08T03:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension with if Condition Qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/Calculated-Dimension-with-if-Condition-Qliksense/m-p/1448518#M35317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No that's not it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is Period in any way linked to other fields in your database?&amp;nbsp; I hope not, it should be an island table (not connected to anything) and not existing in a table with other fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 04:20:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculated-Dimension-with-if-Condition-Qliksense/m-p/1448518#M35317</guid>
      <dc:creator>luismadriz</dc:creator>
      <dc:date>2017-12-08T04:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension with if Condition Qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/Calculated-Dimension-with-if-Condition-Qliksense/m-p/1448519#M35318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luis,&lt;/P&gt;&lt;P&gt;Thanks for Replying,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Period Field is not linked to any field and I have taken an inline load for it.But strange thing is when we filter a dimension Year or Month then both values in Period field i.e Quarterly and Monthly gets selected automatically even without association&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a qvf file for reference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Bhargav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 06:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculated-Dimension-with-if-Condition-Qliksense/m-p/1448519#M35318</guid>
      <dc:creator>bhargav_bhat</dc:creator>
      <dc:date>2017-12-08T06:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension with if Condition Qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/Calculated-Dimension-with-if-Condition-Qliksense/m-p/1448520#M35319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhargav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might I suggest you try out the &lt;A href="http://branch.qlik.com/#!/project/56728f52d1e497241ae697f8"&gt;qsVariable&lt;/A&gt; extension over on Qlik Branch? It looks like it might be exactly what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create two buttons, Yearly and Monthly and based on the user's selection have the measure return different&amp;nbsp; calculations by way of an if statement. As an approach it's very similar to your implementation but it should be more fluid in terms of user interaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2017 06:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculated-Dimension-with-if-Condition-Qliksense/m-p/1448520#M35319</guid>
      <dc:creator>calexandru</dc:creator>
      <dc:date>2017-12-08T06:53:45Z</dc:date>
    </item>
  </channel>
</rss>

