<?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 Combine two fields om X-axe in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Combine-two-fields-om-X-axe/m-p/294266#M109170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your feedback. I am having V9 SR2 and getting the wrong results - which means it is time for me to upgrade.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sajeevan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2011 11:44:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-16T11:44:10Z</dc:date>
    <item>
      <title>Combine two fields om X-axe</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-two-fields-om-X-axe/m-p/294260#M109164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following question:&lt;/P&gt;&lt;P&gt;I have a table like this:&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="0" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Transaction_ID_In&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Transaction_ID_Out&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Station_ID_In&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Station_ID_Out&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;London&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Liverpool&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;3&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;4&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;London&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Liverpool&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;5&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;6&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;London&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;York&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;7&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;8&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Liverpool&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;York&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;9&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;10&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;York&lt;/SPAN&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Amsterdam&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I want to show in a graph how many people check &lt;STRONG&gt;IN&lt;/STRONG&gt; per station, I use Station_ID_In as Dimension and I Count(Transaction_ID_In) to count per station&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I want to show in a graph how many people check &lt;STRONG&gt;OUT&lt;/STRONG&gt; per station, I use Station_ID_Out as Dimension and I Count(Transaction_ID_Out) to count per station.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want to show the Check ins AND check outs combined in ONE graph. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means: Station names as dimension, and two expressions, one that counts the check ins and one that counts the check outs. Is this possible?&lt;/P&gt;&lt;P&gt;See attached file:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 10:24:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-two-fields-om-X-axe/m-p/294260#M109164</guid>
      <dc:creator>beunderf</dc:creator>
      <dc:date>2011-06-16T10:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Combine two fields om X-axe</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-two-fields-om-X-axe/m-p/294261#M109165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hopefully solution attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Slight addition to the script and a change to the expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure there are alternate methods to achieve this - I'll let you know if I come across any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt - Visual Analytics Ltd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 10:57:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-two-fields-om-X-axe/m-p/294261#M109165</guid>
      <dc:creator>matt_crowther</dc:creator>
      <dc:date>2011-06-16T10:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Combine two fields om X-axe</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-two-fields-om-X-axe/m-p/294262#M109166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Excellent Matt.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;I am about to write the same. Recommending to amend the script and you gave a good example. Please share more techniques if any...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;Thanks - &lt;STRONG&gt;DV&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 11:02:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-two-fields-om-X-axe/m-p/294262#M109166</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-06-16T11:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Combine two fields om X-axe</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-two-fields-om-X-axe/m-p/294263#M109167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank and Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found some count mismatch in Matt's solution. I have a different approach to this to make the count correct. I have created a new table using the resident table as below and created a new chart which shows the correct counts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NewData:&lt;BR /&gt;load Station_ID_In&amp;nbsp; as Station, Transaction_ID_In&amp;nbsp; as Transaction_ID, 'IN'&amp;nbsp; as Transaction resident Data_1;&lt;BR /&gt;load Station_ID_Out as Station, Transaction_ID_Out as Transaction_ID, 'OUT' as Transaction resident Data_1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA the modified QV file for the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sajeevan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 11:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-two-fields-om-X-axe/m-p/294263#M109167</guid>
      <dc:creator />
      <dc:date>2011-06-16T11:25:18Z</dc:date>
    </item>
    <item>
      <title>Combine two fields om X-axe</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-two-fields-om-X-axe/m-p/294264#M109168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; That's very strange; in my version (v9 SR7) I get correct counts:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Results.PNG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/5258_Results.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;But when I open your posted example the same chart does indeed show the incorrect counts:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Results2.PNG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/5259_Results2.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Strange indeed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt - Visual Analytics Ltd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 11:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-two-fields-om-X-axe/m-p/294264#M109168</guid>
      <dc:creator>matt_crowther</dc:creator>
      <dc:date>2011-06-16T11:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Combine two fields om X-axe</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-two-fields-om-X-axe/m-p/294265#M109169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt, this looks nice, If I add 'distinct' while creating the stations, it gives the correct values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this is usefull, but is there a way of doing this, without creating an extra table. Is it possible to use some kind of Set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 11:41:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-two-fields-om-X-axe/m-p/294265#M109169</guid>
      <dc:creator>beunderf</dc:creator>
      <dc:date>2011-06-16T11:41:51Z</dc:date>
    </item>
    <item>
      <title>Combine two fields om X-axe</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-two-fields-om-X-axe/m-p/294266#M109170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your feedback. I am having V9 SR2 and getting the wrong results - which means it is time for me to upgrade.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sajeevan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 11:44:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-two-fields-om-X-axe/m-p/294266#M109170</guid>
      <dc:creator />
      <dc:date>2011-06-16T11:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Combine two fields om X-axe</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-two-fields-om-X-axe/m-p/294267#M109171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sajeevan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer. The only problem is that your solution doubles the number of rows. If I tell you that in my real table every row has 30 fields and the the table contains over 90.000.000 rows, this is not very useful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have an idea creating the same graph without doubling the rows. Maybe with some kind of Set Analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 11:48:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-two-fields-om-X-axe/m-p/294267#M109171</guid>
      <dc:creator>beunderf</dc:creator>
      <dc:date>2011-06-16T11:48:42Z</dc:date>
    </item>
    <item>
      <title>Combine two fields om X-axe</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-two-fields-om-X-axe/m-p/294268#M109172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the feedback. If this is the case then what Matt suggested is the best approach but just load only the distinct station names in a different table like below then the counts will become correct if you are using lower version of the QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Station:&lt;/P&gt;&lt;P&gt;load distinct Station_ID_In as Station resident Data_1;&lt;/P&gt;&lt;P&gt;load distinct Station_ID_Out as Station resident Data_1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set analysis requires a searching value which in your case is the station name or the IN/OUT activity and are in two different fields which will be quite complex. I will let you know the solution if I am successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sajeevan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 12:18:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-two-fields-om-X-axe/m-p/294268#M109172</guid>
      <dc:creator />
      <dc:date>2011-06-16T12:18:52Z</dc:date>
    </item>
  </channel>
</rss>

