<?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: Count 2 fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-2-fields/m-p/1334472#M834764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have no idea how much this has been driving me mad. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jun 2017 11:13:28 GMT</pubDate>
    <dc:creator>peterderrington</dc:creator>
    <dc:date>2017-06-08T11:13:28Z</dc:date>
    <item>
      <title>Count 2 fields</title>
      <link>https://community.qlik.com/t5/QlikView/Count-2-fields/m-p/1334467#M834759</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;&lt;/P&gt;&lt;P&gt;I have two fields in my Qlikview Data - Procedures and 2nd Element&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They both contain data that is duplicated between them;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg Procedures field has: "This", "That", "The other" whilst 2nd Element Field has: "This", "That", "Something else"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a bar chart that can show the combined totals of the two fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg "This" = 2, "That" = 2, "The other" = 1, "something else" = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No matter what expression i put in though i can't get it to work properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure i'm doing something stupid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should my Dimension be? I've tried as either one field or the other and both and nothing returns the right result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone got any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is an example of the Excel Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-2-fields/m-p/1334467#M834759</guid>
      <dc:creator>peterderrington</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count 2 fields</title>
      <link>https://community.qlik.com/t5/QlikView/Count-2-fields/m-p/1334468#M834760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you can modify a bit of script like below&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/166179_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;you can get it easily in the script like:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/166180_Capture2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 10:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-2-fields/m-p/1334468#M834760</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-06-08T10:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Count 2 fields</title>
      <link>https://community.qlik.com/t5/QlikView/Count-2-fields/m-p/1334469#M834761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT:&lt;/P&gt;&lt;P&gt;LOAD Recno() as RecID, *&lt;/P&gt;&lt;P&gt;FROM YourExcelFile;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CROSS:&lt;/P&gt;&lt;P&gt;CROSSTABLE( Field, Value)&lt;/P&gt;&lt;P&gt;LOAD RecID, Procedures, [2nd Element]&lt;/P&gt;&lt;P&gt;RESIDENT INPUT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use &lt;EM&gt;Value&lt;/EM&gt; field as dimension in your chart and &lt;/P&gt;&lt;P&gt;&lt;EM&gt; =Count(Value)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;as expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 10:25:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-2-fields/m-p/1334469#M834761</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-06-08T10:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Count 2 fields</title>
      <link>https://community.qlik.com/t5/QlikView/Count-2-fields/m-p/1334470#M834762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;ok.....&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The values in the two fields add up to something like 40 distinct values. Do i need to add each value to the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 10:35:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-2-fields/m-p/1334470#M834762</guid>
      <dc:creator>peterderrington</dc:creator>
      <dc:date>2017-06-08T10:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count 2 fields</title>
      <link>https://community.qlik.com/t5/QlikView/Count-2-fields/m-p/1334471#M834763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it's just that I have shown using INLINE method. You can get the fields directly from your data source like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;New:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Procedure as CommonDim&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;From &amp;lt;&amp;gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [2nd Element] as CommonDim&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;From &amp;lt;&amp;gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case you would not have to bother about bringing them into the script manually.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 10:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-2-fields/m-p/1334471#M834763</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-06-08T10:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Count 2 fields</title>
      <link>https://community.qlik.com/t5/QlikView/Count-2-fields/m-p/1334472#M834764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have no idea how much this has been driving me mad. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 11:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-2-fields/m-p/1334472#M834764</guid>
      <dc:creator>peterderrington</dc:creator>
      <dc:date>2017-06-08T11:13:28Z</dc:date>
    </item>
  </channel>
</rss>

