<?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: How to have 2 fields in the X axis of a graph in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/297851#M585998</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 you have only one expression, the second dimension will be used as label, with two or more expressions, you get something I think you intend to get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look at my attached image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used two dimensions, week# and day of week.&lt;/P&gt;&lt;P&gt;One expression is count of something, one is 1 and made invisible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nachricht geändert durch swuehl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jul 2011 15:24:33 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-07-21T15:24:33Z</dc:date>
    <item>
      <title>How to have 2 fields in the X axis of a graph</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/297847#M585994</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;Im new to Qlikview, and have the Personal Edition to see if its the right product for us. One test we are carrying out is replicating data and graphs we have in Excel into Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to have 2 fields in the X axis in a line graph? I have 3 fields, Day, Week of Year and Amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im looking to have a graph that has Day and WeekofYear on the X axis, represented as the following;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mon Tue Wed Thu Fri&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mon Tue Wed Thu Fri&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mon Tue Wed Thu Fri&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment, when I add Day and WeekofYear in the dimensions, it puts Day in the X axis, and treats WeekofYear as a legend entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to achieve this? Its a very important measure for the company I am trying to create, and will probably be the a key factor on if we purchase the product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 14:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/297847#M585994</guid>
      <dc:creator />
      <dc:date>2011-07-21T14:59:09Z</dc:date>
    </item>
    <item>
      <title>How to have 2 fields in the X axis of a graph</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/297848#M585995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Normally there is something called a Cyclic Group whcih is used in between days, months and years. But if you want to see both the dimensions at onetime, then you can create a dimension field with with a concatenation of day and week and use it as a dimension. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 15:12:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/297848#M585995</guid>
      <dc:creator />
      <dc:date>2011-07-21T15:12:48Z</dc:date>
    </item>
    <item>
      <title>How to have 2 fields in the X axis of a graph</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/297849#M585996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a second expression and make it invisible should do the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 15:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/297849#M585996</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-21T15:13:00Z</dc:date>
    </item>
    <item>
      <title>How to have 2 fields in the X axis of a graph</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/297850#M585997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried both suggestions, and they dont work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Swuehl, how will adding a second expression give the x axis a second layer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 15:19:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/297850#M585997</guid>
      <dc:creator />
      <dc:date>2011-07-21T15:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to have 2 fields in the X axis of a graph</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/297851#M585998</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 you have only one expression, the second dimension will be used as label, with two or more expressions, you get something I think you intend to get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look at my attached image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used two dimensions, week# and day of week.&lt;/P&gt;&lt;P&gt;One expression is count of something, one is 1 and made invisible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nachricht geändert durch swuehl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 15:24:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/297851#M585998</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-21T15:24:33Z</dc:date>
    </item>
    <item>
      <title>How to have 2 fields in the X axis of a graph</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/297852#M585999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" create a dimension field with a concatenation of day and week and use it as a dimension" ----&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work for you as i had a similar requirement in the past. Even now when I have to show data for Year and Months, I dont use 2 dimensions, instead I created a new dimension in the script which is called YearMonth and then use it. however you need to do it in the master calendar or your Time periods(Calendar) Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 15:26:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/297852#M585999</guid>
      <dc:creator />
      <dc:date>2011-07-21T15:26:42Z</dc:date>
    </item>
    <item>
      <title>How to have 2 fields in the X axis of a graph</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/297853#M586000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works with a bar chart, but I need a line graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached the line graph I've created in excel...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="untitled.JPG" class="jive-image-thumbnail jive-image" height="449" onclick="" src="https://community.qlik.com/legacyfs/online/6043_untitled.JPG" width="715" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 15:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/297853#M586000</guid>
      <dc:creator />
      <dc:date>2011-07-21T15:31:40Z</dc:date>
    </item>
    <item>
      <title>How to have 2 fields in the X axis of a graph</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/297854#M586001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I missed your line chart requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried for a while and also searched in the forum, and couldn't get it to work exactely as you require.&lt;/P&gt;&lt;P&gt;Furthermore, it seems that QlikView has some issues with line charts / combo charts with more than one dimension, for example if I do a combo with week# and day of week as dimension and count something as expression as line and bar chart, the line look pretty strange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think a good solution is to use Mady mama's suggestion with a concatenated dimension field, I also use this quite often.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think since Version 10, there is the possibility to use extension objects (like 3rd party sheet objects, extending the available graph objects). There might be an extension object which may fulfil the requirements, but haven't looked for that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 17:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/297854#M586001</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-07-21T17:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to have 2 fields in the X axis of a graph</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/297855#M586002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a very basic capability, but I don't think QlikView does it.&amp;nbsp; As mentioned, concatenating the day and week would work fine and is a typical solution.&amp;nbsp; The only thing is that it will repeat your week for every date, like 'week 27 Mon 2' 'week 27 Tue 3' and so on.&amp;nbsp; You can sort of work around this if it really bothers you.&amp;nbsp; I've attached an example with years and months as my "dimensions", and the year only displaying next to the first month of that year included in the chart, but you have personal edition so can't see it, so...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,month(YearMonth) as Month&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,year(YearMonth) as Year&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;date(addmonths(makedate(2009,1,1),floor(rand()*24)),'YYYY MMM') as YearMonth&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,ceil(rand()*10) as Amount&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;AUTOGENERATE 100&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The line chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;dimension=aggr(date(YearMonth,if(Month=min(total &amp;lt;Year&amp;gt; Month),'YYYY MMM','&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MMM')),Year,YearMonth)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;expression=sum(Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's possible that things are better in version 10 or 11.&amp;nbsp; I mostly use version 9.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 23:53:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/297855#M586002</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-07-21T23:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to have 2 fields in the X axis of a graph</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/1571710#M586003</link>
      <description>&lt;P&gt;Is it possible to achieve this in Qlik Sense? So far I haven't find any chart or extension that allows two dimensions the way described in this thread.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 13:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/1571710#M586003</guid>
      <dc:creator>morenoju</dc:creator>
      <dc:date>2019-04-22T13:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to have 2 fields in the X axis of a graph</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/1572062#M586004</link>
      <description>For future reference: I've been trying to do this in Qlik Sense and so far the answer has been like the one Johnw provided 8 years ago (concatenating).&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Sense/Two-dimensions-on-x-axis/m-p/1572058" target="_blank"&gt;https://community.qlik.com/t5/New-to-Qlik-Sense/Two-dimensions-on-x-axis/m-p/1572058&lt;/A&gt;</description>
      <pubDate>Tue, 23 Apr 2019 12:12:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-have-2-fields-in-the-X-axis-of-a-graph/m-p/1572062#M586004</guid>
      <dc:creator>morenoju</dc:creator>
      <dc:date>2019-04-23T12:12:32Z</dc:date>
    </item>
  </channel>
</rss>

