<?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 What is wrong with my line chart? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-is-wrong-with-my-line-chart/m-p/1747253#M506244</link>
    <description>&lt;P&gt;I tried to create 3 different line charts for 2018, 2019 and 2020 respectively. I have a column, [invoiced_mo], that is formatted like so: YYYY_MM. I want it to be 'MMM-YY' so I created a new field called [MONTH_YEAR] in my script to do so, which did work.&lt;/P&gt;&lt;P&gt;LOAD Date(MonthName(Date#([invoiced_mo], 'YYYY_MM')), 'MMM-YY') as MONTH_YEAR&lt;BR /&gt;FROM $(vQVDPathExtract)Vendor_Billing.qvd (qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because [MONTH_YEAR] includes all 3 years, I then separated by the corresponding year as a calculated dimension in each line chart:&lt;/P&gt;&lt;P&gt;=if(subfield(MONTH_YEAR,'-',2)='18',MONTH_YEAR)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if(subfield(MONTH_YEAR,'-',2)='19',MONTH_YEAR)&lt;/P&gt;&lt;P&gt;=if(subfield(MONTH_YEAR,'-',2)='20',MONTH_YEAR)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then for each of the line charts, I did 2 simple expressions to sum the total costs and total number of requests (e.g. sum(price), count(requests)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, my line charts are showing a straight line across for the price and requests for each year. I'm not sure why the total costs/number of requests are not properly corresponding to the month/year data.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Sep 2020 15:37:31 GMT</pubDate>
    <dc:creator>cgbhello</dc:creator>
    <dc:date>2020-09-25T15:37:31Z</dc:date>
    <item>
      <title>What is wrong with my line chart?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-wrong-with-my-line-chart/m-p/1747253#M506244</link>
      <description>&lt;P&gt;I tried to create 3 different line charts for 2018, 2019 and 2020 respectively. I have a column, [invoiced_mo], that is formatted like so: YYYY_MM. I want it to be 'MMM-YY' so I created a new field called [MONTH_YEAR] in my script to do so, which did work.&lt;/P&gt;&lt;P&gt;LOAD Date(MonthName(Date#([invoiced_mo], 'YYYY_MM')), 'MMM-YY') as MONTH_YEAR&lt;BR /&gt;FROM $(vQVDPathExtract)Vendor_Billing.qvd (qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because [MONTH_YEAR] includes all 3 years, I then separated by the corresponding year as a calculated dimension in each line chart:&lt;/P&gt;&lt;P&gt;=if(subfield(MONTH_YEAR,'-',2)='18',MONTH_YEAR)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if(subfield(MONTH_YEAR,'-',2)='19',MONTH_YEAR)&lt;/P&gt;&lt;P&gt;=if(subfield(MONTH_YEAR,'-',2)='20',MONTH_YEAR)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then for each of the line charts, I did 2 simple expressions to sum the total costs and total number of requests (e.g. sum(price), count(requests)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, my line charts are showing a straight line across for the price and requests for each year. I'm not sure why the total costs/number of requests are not properly corresponding to the month/year data.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 15:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-wrong-with-my-line-chart/m-p/1747253#M506244</guid>
      <dc:creator>cgbhello</dc:creator>
      <dc:date>2020-09-25T15:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with my line chart?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-wrong-with-my-line-chart/m-p/1747351#M506245</link>
      <description>&lt;P&gt;You may need to provide more info or a QVW at best.&amp;nbsp; just looking at the pics, a lot of info is missed.&lt;/P&gt;&lt;P&gt;having said that, normally you would limit the YEAR in the expression and not in the dimension.&amp;nbsp; You should link your fact to a calendar and in the calendar, you determine the year, month, etc..&lt;/P&gt;&lt;P&gt;then in your chart (if you really need a chart just for a specific year), you would have an expression&amp;nbsp;&lt;BR /&gt;SUM({&amp;lt;YEAR={2020}&amp;gt;}Measure)&lt;BR /&gt;Your dimension could be MONTH (whatever format)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Sep 2020 03:04:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-wrong-with-my-line-chart/m-p/1747351#M506245</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-09-26T03:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with my line chart?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-wrong-with-my-line-chart/m-p/1749255#M506246</link>
      <description>&lt;P&gt;Thank you for your response! I'm relatively new to qlik (been using it for a little over a month) so I apologize for the silly question I'm about to ask, but could you please explain what all the additional characters mean or do in your expression,&amp;nbsp;&lt;SPAN&gt;SUM({&amp;lt;YEAR={2020}&amp;gt;}Measure)?&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I created the master calendar per your suggestion and put the month as a dimension. I'm just not understanding how to properly execute the expression line. Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 15:52:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-wrong-with-my-line-chart/m-p/1749255#M506246</guid>
      <dc:creator>cgbhello</dc:creator>
      <dc:date>2020-10-02T15:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong with my line chart?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-wrong-with-my-line-chart/m-p/1754199#M506247</link>
      <description>&lt;P&gt;That is Set Analysis, here is a Design Blog post that should be useful as well as Help Doc Link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/ChartFunctions/SetAnalysis/set-analysis-expressions.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/ChartFunctions/SetAnalysis/set-analysis-expressions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you wish to search more in the Design Blog area, use this link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2020 15:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-wrong-with-my-line-chart/m-p/1754199#M506247</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-10-20T15:56:38Z</dc:date>
    </item>
  </channel>
</rss>

