<?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: If is not working while creating value bucket as dimension in qliksense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/If-is-not-working-while-creating-value-bucket-as-dimension-in/m-p/1919080#M75587</link>
    <description>&lt;P&gt;Your logic looks fine, I would guess there is something with your values, try loading them as a NUM() .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: there is a syntax mistake in your expression. You have a punctuation mark, not comma, after&amp;nbsp;'Category B'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Apr 2022 13:42:25 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2022-04-16T13:42:25Z</dc:date>
    <item>
      <title>If is not working while creating value bucket as dimension in qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/If-is-not-working-while-creating-value-bucket-as-dimension-in/m-p/1918983#M75566</link>
      <description>&lt;P&gt;Dear all,,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to create value bucket using if condition but only for one the values the bucket is showing wrong records.&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;P&gt;1 to &amp;lt; 10 --- 'Category A'&lt;/P&gt;
&lt;P&gt;10 to &amp;lt;20 --- 'Category B'&lt;/P&gt;
&lt;P&gt;20 to &amp;lt;30 -- 'Category C'&lt;/P&gt;
&lt;P&gt;30 to 40 -- ''Category D'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I have written below script :&lt;/P&gt;
&lt;P&gt;if( Value = 1 and Value &amp;lt;10 , 'Category A',&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;if( Value &amp;gt;=10 and Value &amp;lt;20, 'Category B'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if( Value &amp;gt;=20 and Value &amp;lt;30, 'Category C',,'D')));&lt;/P&gt;
&lt;P&gt;Expected output :&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Value&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Category&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Category A&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Category B&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;22&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Category C&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;33&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Category D&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I m getting&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Value&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Category&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Category A&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;12&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Category B&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;22&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Category B&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;21&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Category C&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;23&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Category C&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;33&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Category D&lt;/P&gt;
&lt;P&gt;this is happing only for only one value from Category C that is 22 showing under Category B for rest it is showing correct.&lt;/P&gt;
&lt;P&gt;Kindly help&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 18:42:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-is-not-working-while-creating-value-bucket-as-dimension-in/m-p/1918983#M75566</guid>
      <dc:creator>Mahamed_Qlik</dc:creator>
      <dc:date>2022-04-15T18:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: If is not working while creating value bucket as dimension in qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/If-is-not-working-while-creating-value-bucket-as-dimension-in/m-p/1919051#M75581</link>
      <description>&lt;P&gt;Hi, there must be something else here, can you upload a sample to check? Maybe the '22' is 2 '11' values added.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2022 08:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-is-not-working-while-creating-value-bucket-as-dimension-in/m-p/1919051#M75581</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-04-16T08:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: If is not working while creating value bucket as dimension in qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/If-is-not-working-while-creating-value-bucket-as-dimension-in/m-p/1919064#M75585</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Could you please share the original data source?&lt;/P&gt;
&lt;P&gt;I've tried to reproduce your issue, but in my case, everything works fine&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vchuprina_1-1650101935566.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/77230i4A8FE025B7566901/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vchuprina_1-1650101935566.png" alt="vchuprina_1-1650101935566.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DATA:&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Value,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if( Value &amp;gt;= 1 and Value &amp;lt;10 , 'Category A',&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if( Value &amp;gt;=10 and Value &amp;lt;20, 'Category B',&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if( Value &amp;gt;=20 and Value &amp;lt;30, 'Category C','Category D'))) AS Bucket;&lt;BR /&gt;LOAD * Inline[&lt;BR /&gt;Value, Category&lt;BR /&gt;2, Category A&lt;BR /&gt;12, Category B&lt;BR /&gt;22, Category B&lt;BR /&gt;21, Category C&lt;BR /&gt;23, Category C&lt;BR /&gt;33, Category D&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vitalii&lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2022 09:37:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-is-not-working-while-creating-value-bucket-as-dimension-in/m-p/1919064#M75585</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2022-04-16T09:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: If is not working while creating value bucket as dimension in qliksense</title>
      <link>https://community.qlik.com/t5/App-Development/If-is-not-working-while-creating-value-bucket-as-dimension-in/m-p/1919080#M75587</link>
      <description>&lt;P&gt;Your logic looks fine, I would guess there is something with your values, try loading them as a NUM() .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: there is a syntax mistake in your expression. You have a punctuation mark, not comma, after&amp;nbsp;'Category B'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2022 13:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/If-is-not-working-while-creating-value-bucket-as-dimension-in/m-p/1919080#M75587</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2022-04-16T13:42:25Z</dc:date>
    </item>
  </channel>
</rss>

