<?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: Case Statement in Dimension Qlik Sense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Case-Statement-in-Dimension-Qlik-Sense/m-p/1312852#M28080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; line-height: 115%; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; mso-ansi-language: EN; font-weight: normal; mso-bidi-font-weight: bold;"&gt;Hi &lt;A _jive_internal="true" href="https://community.qlik.com/people/rsvebeck"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; line-height: 115%; font-family: 'Calibri','sans-serif'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; color: #3d3d3d; mso-ansi-language: EN-US; mso-bidi-font-weight: normal; text-decoration: none; text-underline: none;"&gt;Robert,&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; line-height: 115%; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; mso-ansi-language: EN; mso-bidi-font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; line-height: 115%; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; mso-ansi-language: EN; mso-bidi-font-weight: bold;"&gt;I am very familiar with the nested “if” solution and I was look for something cleaner. My initial question provided a poor example. A better example would be distance between the home office and the customer home office in 25 mile increments. This will potentially have hundreds of categories and would require a lot of changes if the user wanted to see the categories by 50 mile increments. Can you provide an example of the class solution? I am looking more for a method that maximizes scalability. Thanks for your help! &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 May 2017 18:41:37 GMT</pubDate>
    <dc:creator>wdchristensen</dc:creator>
    <dc:date>2017-05-09T18:41:37Z</dc:date>
    <item>
      <title>Case Statement in Dimension Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Case-Statement-in-Dimension-Qlik-Sense/m-p/1312848#M28076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlik Community, I am trying to create age groupings for a dimension. In this example, I want to count customers in each age category. Currently I am making these derived category types in the load script but occasionally the business wants to test how things would look, given different ranges. This is a bit of a hassle to modify the script just to preview the data. How can the case statement below be rewritten to work in the formula for the dimension for a given visualization?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #eff0f1; white-space: inherit;"&gt;&lt;SPAN class="kwd" style="font-size: 13px; color: #101094;"&gt;CASE&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 13px; color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-size: 13px; color: #101094;"&gt;when&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 13px; color: #303336;"&gt; age &lt;/SPAN&gt;&lt;SPAN class="pun" style="font-size: 13px; color: #303336;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="lit" style="font-size: 13px; color: #7d2727;"&gt;18&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 13px; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-size: 13px; color: #101094;"&gt;then&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 13px; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="font-size: 13px; color: #7d2727;"&gt;'Under 18'&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 13px; color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-size: 13px; color: #101094;"&gt;when&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 13px; color: #303336;"&gt; age &lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-size: 13px; color: #101094;"&gt;between&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 13px; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-size: 13px; color: #7d2727;"&gt;18&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 13px; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-size: 13px; color: #101094;"&gt;and&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 13px; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-size: 13px; color: #7d2727;"&gt;24&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 13px; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-size: 13px; color: #101094;"&gt;then&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 13px; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="font-size: 13px; color: #7d2727;"&gt;'18-24'&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 13px; color: #303336;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-size: 13px; color: #101094;"&gt;when&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 13px; color: #303336;"&gt; age &lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-size: 13px; color: #101094;"&gt;between&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 13px; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-size: 13px; color: #7d2727;"&gt;25&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 13px; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-size: 13px; color: #101094;"&gt;and&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 13px; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit" style="font-size: 13px; color: #7d2727;"&gt;34 &lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-size: 13px; color: #101094;"&gt;then&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 13px; color: #303336;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="font-size: 13px; color: #7d2727;"&gt;'25-34'&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; background-color: #eff0f1; white-space: inherit;"&gt;&lt;SPAN class="str" style="font-size: 13px; color: #7d2727;"&gt;&lt;SPAN style="color: #303336; font-family: Consolas; background-color: #eff0f1;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #101094; font-size: 13px; background-color: #eff0f1; font-family: Consolas;"&gt;when&lt;/SPAN&gt;&lt;SPAN style="color: #303336; font-size: 13px; background-color: #eff0f1; font-family: Consolas;"&gt; age &amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7d2727; font-size: 13px; background-color: #eff0f1; font-family: Consolas;"&gt;34&lt;/SPAN&gt;&lt;SPAN style="color: #303336; font-size: 13px; background-color: #eff0f1; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #101094; font-size: 13px; background-color: #eff0f1; font-family: Consolas;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="color: #303336; font-size: 13px; background-color: #eff0f1; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7d2727; font-size: 13px; background-color: #eff0f1; font-family: Consolas;"&gt;34 &lt;/SPAN&gt;&lt;SPAN style="color: #101094; font-size: 13px; background-color: #eff0f1; font-family: Consolas;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #303336; font-size: 13px; background-color: #eff0f1; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7d2727; font-size: 13px; background-color: #eff0f1; font-family: Consolas;"&gt;'34 Plus'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="pln" style="font-size: 13px; color: #303336;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="font-size: 13px; color: #101094;"&gt;END&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 15:21:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Case-Statement-in-Dimension-Qlik-Sense/m-p/1312848#M28076</guid>
      <dc:creator>wdchristensen</dc:creator>
      <dc:date>2017-05-09T15:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Case Statement in Dimension Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Case-Statement-in-Dimension-Qlik-Sense/m-p/1312849#M28077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi William,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the expression below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i&lt;SPAN style="font-size: 10pt;"&gt;f(age &amp;lt; 18, 'Under 18',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(age &amp;gt;=18 and age&amp;lt;=24, '18-24'),&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if(age &amp;gt;=25 and age&amp;lt;=34, '25-34'),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if(age &amp;gt;34, '34 Plus))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 15:39:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Case-Statement-in-Dimension-Qlik-Sense/m-p/1312849#M28077</guid>
      <dc:creator />
      <dc:date>2017-05-09T15:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Case Statement in Dimension Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Case-Statement-in-Dimension-Qlik-Sense/m-p/1312850#M28078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since only 1 if() will be true, you can skip the "and" by writing it in this order:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(age &amp;gt; 34, '34 Plus'&lt;/P&gt;&lt;P&gt;,if(age &amp;gt;= 25, '25-34'&lt;/P&gt;&lt;P&gt;,if(age &amp;gt;= 18, '18-24'&lt;/P&gt;&lt;P&gt;,'Under 18'&lt;/P&gt;&lt;P&gt;)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 16:34:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Case-Statement-in-Dimension-Qlik-Sense/m-p/1312850#M28078</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-05-09T16:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Case Statement in Dimension Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Case-Statement-in-Dimension-Qlik-Sense/m-p/1312851#M28079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;If you can accept a stable interwall width over the complete range, you could use the class function with a variable for its second parameter, allowing users to adjust the intervall width themselves as they are doing their analysis.&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 16:47:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Case-Statement-in-Dimension-Qlik-Sense/m-p/1312851#M28079</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2017-05-09T16:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Case Statement in Dimension Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Case-Statement-in-Dimension-Qlik-Sense/m-p/1312852#M28080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; line-height: 115%; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; mso-ansi-language: EN; font-weight: normal; mso-bidi-font-weight: bold;"&gt;Hi &lt;A _jive_internal="true" href="https://community.qlik.com/people/rsvebeck"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.0pt; line-height: 115%; font-family: 'Calibri','sans-serif'; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; color: #3d3d3d; mso-ansi-language: EN-US; mso-bidi-font-weight: normal; text-decoration: none; text-underline: none;"&gt;Robert,&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; line-height: 115%; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; mso-ansi-language: EN; mso-bidi-font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0 0 10pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; line-height: 115%; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; mso-ansi-language: EN; mso-bidi-font-weight: bold;"&gt;I am very familiar with the nested “if” solution and I was look for something cleaner. My initial question provided a poor example. A better example would be distance between the home office and the customer home office in 25 mile increments. This will potentially have hundreds of categories and would require a lot of changes if the user wanted to see the categories by 50 mile increments. Can you provide an example of the class solution? I am looking more for a method that maximizes scalability. Thanks for your help! &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 18:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Case-Statement-in-Dimension-Qlik-Sense/m-p/1312852#M28080</guid>
      <dc:creator>wdchristensen</dc:creator>
      <dc:date>2017-05-09T18:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Case Statement in Dimension Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Case-Statement-in-Dimension-Qlik-Sense/m-p/1312853#M28081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;To get familiar with the class() function, Look at the video of &amp;nbsp;&lt;A _jive_internal="true" class="jive_macro jive-link-profile-small jive_macro_user" href="https://community.qlik.com/people/mto"&gt;Michael Tarallo&lt;/A&gt;&amp;nbsp;&lt;A _jive_internal="true" href="https://community.qlik.com/videos/4326"&gt;https://community.qlik.com/videos/4326&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;The second parameter in the class function could be a user related value, so for one user it can be 50, and another it can be 25. If you need more help I could make a small example.&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;//Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 18:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Case-Statement-in-Dimension-Qlik-Sense/m-p/1312853#M28081</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2017-05-09T18:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Case Statement in Dimension Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Case-Statement-in-Dimension-Qlik-Sense/m-p/1312854#M28082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an example. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://svebeck.com/joo/index.php/en/blog/16-blog/16-flexible-class-function-in-qlik-sense" title="http://svebeck.com/joo/index.php/en/blog/16-blog/16-flexible-class-function-in-qlik-sense"&gt;Svebeck Consulting - Flexible Class Function in Qlik Sense&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 20:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Case-Statement-in-Dimension-Qlik-Sense/m-p/1312854#M28082</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2017-05-09T20:18:18Z</dc:date>
    </item>
  </channel>
</rss>

