<?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: SQL-QlikView Editor and Case Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-QlikView-Editor-and-Case-Statement/m-p/855070#M1018963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I have my pivot table now but there are extra values and was wondering if there is any way we can not include some values/categories in the pivot table. For example, I do not want to include D, G, J, L and number 3, 5, and 6 in the below example. Consider A-L and 1-6 are columns values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp; B&amp;nbsp; C&amp;nbsp; D&amp;nbsp; E&amp;nbsp; F&amp;nbsp; G&amp;nbsp; H&amp;nbsp; I&amp;nbsp; J&amp;nbsp; K&amp;nbsp; L&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;6&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Apr 2015 23:35:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-06T23:35:37Z</dc:date>
    <item>
      <title>SQL-QlikView Editor and Case Statement</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-QlikView-Editor-and-Case-Statement/m-p/855064#M1018957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;First I want to ask if there is any free editor you recommend that can convert my SQL scripts to QlikView. I am very used to SQL and while I learn QlikView, I was thinking at the beginning if I can just convert my SQL scripts to Qlikview. Using an editor it will help me understand how QlikView works.&lt;/P&gt;&lt;P&gt;Second, can someone please give me some good tutorial or links or sample code to how SQL Case Statement works in QlikView? I have an example below if someone can create a sample QlikView code for me to understand.&lt;/P&gt;&lt;P&gt;Let's say I have the below table information and I need to count number of customers that fits in different categories:&lt;/P&gt;&lt;P&gt;Table Name: Customers&lt;/P&gt;&lt;P&gt;Column 1: Products - values iPad, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Notebook, &lt;/SPAN&gt;iPhone, and iPod&lt;/P&gt;&lt;P&gt;Column 2: Categories - values White, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Black,&lt;/SPAN&gt;Silver, and Red&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;White&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Silver&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Red&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;iPad&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Count(CustomerID)&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Count(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;CustomerID&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Count(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;CustomerID&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;iPhone&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Count(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;CustomerID&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Count(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;CustomerID&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Count(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;CustomerID&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;iPod&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Count(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;CustomerID&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Count(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;CustomerID&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Count(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;CustomerID&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Please note that I am not including product "Notebook" and category "Black".&lt;/P&gt;&lt;P&gt;I will really appreciate if someone can create a sample QlikView code for this example.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2020 18:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-QlikView-Editor-and-Case-Statement/m-p/855064#M1018957</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-20T18:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-QlikView Editor and Case Statement</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-QlikView-Editor-and-Case-Statement/m-p/855065#M1018958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you seem to be asking for is basic QlikView training.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you take a look here and see if you can find training in your language or direct environment:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.qlik.com/us/services/training/find-your-training" title="http://www.qlik.com/us/services/training/find-your-training"&gt;Find Training | Qlik&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If not listed, contact a regional training manager and I am sure you can work out what is the training for you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.qlik.com/us/services/training/training-contacts" title="http://www.qlik.com/us/services/training/training-contacts"&gt;Training Contacts | Qlik&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Back to the question you are asking: I would just build a chart for that with Categories as the Dimension and count(distinct CustomerID) as the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 11:22:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-QlikView-Editor-and-Case-Statement/m-p/855065#M1018958</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2015-04-06T11:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-QlikView Editor and Case Statement</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-QlikView-Editor-and-Case-Statement/m-p/855066#M1018959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My main concern in the example is how can I get the product values (iPad,iPhone,iPod) on the first column&amp;nbsp; and Category values (White,Silver,Red) in to the first row. And, what if I don't want to display few values like product with color Black. Or, don't want to display Notebook product. I will definitely go through the training to learn more about this example but if you can give me some ideas it will save me some time.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 17:51:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-QlikView-Editor-and-Case-Statement/m-p/855066#M1018959</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-06T17:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-QlikView Editor and Case Statement</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-QlikView-Editor-and-Case-Statement/m-p/855067#M1018960</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;If I understand you correct, than what you could do is add both Products and Category as Dimension in a Pivot table in which you drag Category to the top. The expression would still be the same count(distinct CustomerID).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could of course combine this with a List Box for Products in which you can select the values; only those in selection would be shown.&lt;/P&gt;&lt;P&gt;Alternatively, if you always have a few products (or categories for that matter) which you want to exclude, is use a Set Analysis statement. Here is an example in which product Notebook gets excluded:&lt;/P&gt;&lt;P&gt;count({ &amp;lt; Products &lt;STRONG&gt;-=&lt;/STRONG&gt; {Notebook} &amp;gt; } distinct CustomerID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 20:24:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-QlikView-Editor-and-Case-Statement/m-p/855067#M1018960</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2015-04-06T20:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-QlikView Editor and Case Statement</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-QlikView-Editor-and-Case-Statement/m-p/855068#M1018961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I was thinking about the pivot table and I saw a tutorial previously where a field was just dragged and it changed from column to row. Will try it and update you on how it goes. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 20:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-QlikView-Editor-and-Case-Statement/m-p/855068#M1018961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-06T20:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-QlikView Editor and Case Statement</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-QlikView-Editor-and-Case-Statement/m-p/855069#M1018962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good luck &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 20:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-QlikView-Editor-and-Case-Statement/m-p/855069#M1018962</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2015-04-06T20:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-QlikView Editor and Case Statement</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-QlikView-Editor-and-Case-Statement/m-p/855070#M1018963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I have my pivot table now but there are extra values and was wondering if there is any way we can not include some values/categories in the pivot table. For example, I do not want to include D, G, J, L and number 3, 5, and 6 in the below example. Consider A-L and 1-6 are columns values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A&amp;nbsp; B&amp;nbsp; C&amp;nbsp; D&amp;nbsp; E&amp;nbsp; F&amp;nbsp; G&amp;nbsp; H&amp;nbsp; I&amp;nbsp; J&amp;nbsp; K&amp;nbsp; L&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;6&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 23:35:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-QlikView-Editor-and-Case-Statement/m-p/855070#M1018963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-06T23:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-QlikView Editor and Case Statement</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-QlikView-Editor-and-Case-Statement/m-p/855071#M1018964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it. I just edited the WHERE clause that included only the values that I wanted to see in the pivot table. &lt;/P&gt;&lt;P&gt;Eg. WHERE Categories IN ('White','Silver','Red')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 00:15:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-QlikView-Editor-and-Case-Statement/m-p/855071#M1018964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-07T00:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: SQL-QlikView Editor and Case Statement</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-QlikView-Editor-and-Case-Statement/m-p/855072#M1018965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Downside of that is that the data never gets loaded into QlikView and as a result you will never be able to report / do analysis on it.&lt;/P&gt;&lt;P&gt;So from a BI point of view, I am not so sure if that is the best solution, but I don't know about the underlying customer data and requirements of course.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 08:16:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-QlikView-Editor-and-Case-Statement/m-p/855072#M1018965</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2015-04-07T08:16:25Z</dc:date>
    </item>
  </channel>
</rss>

