<?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 Line chart with two dimentions do not display correctly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Line-chart-with-two-dimentions-do-not-display-correctly/m-p/1778663#M718039</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I need to create a Line chart with the given values into the table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Barry-Gon_0-1612045043728.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/48030i7B58058D3B63DF98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Barry-Gon_0-1612045043728.png" alt="Barry-Gon_0-1612045043728.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Pivot Table works fine, but when I change the view to Line Chart, for some reason the values are not display as the REAL column.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;AmtUSD&lt;/STRONG&gt; - Is the full accumulation of the month from the previous month&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;DaysOfMonth&lt;/STRONG&gt; - Is the full accumulation of the number of dates from the previous month&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Real&lt;/STRONG&gt; - The result od divide the value of AmtUSD / DaysOfMonth&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I need to create two separate charts&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1) With the REAL value of the month&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Barry-Gon_1-1612045079509.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/48031iFE08E10AEC124B00/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Barry-Gon_1-1612045079509.png" alt="Barry-Gon_1-1612045079509.png" /&gt;&lt;/span&gt;&lt;BR /&gt;2) With the REAL Full Accumulation from the previous month&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Barry-Gon_2-1612045119222.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/48032iCBDF4BA9D3B3BE4F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Barry-Gon_2-1612045119222.png" alt="Barry-Gon_2-1612045119222.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please Help&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Sat, 30 Jan 2021 22:22:31 GMT</pubDate>
    <dc:creator>Barry-Gon</dc:creator>
    <dc:date>2021-01-30T22:22:31Z</dc:date>
    <item>
      <title>Line chart with two dimentions do not display correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-with-two-dimentions-do-not-display-correctly/m-p/1778663#M718039</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I need to create a Line chart with the given values into the table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Barry-Gon_0-1612045043728.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/48030i7B58058D3B63DF98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Barry-Gon_0-1612045043728.png" alt="Barry-Gon_0-1612045043728.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Pivot Table works fine, but when I change the view to Line Chart, for some reason the values are not display as the REAL column.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;AmtUSD&lt;/STRONG&gt; - Is the full accumulation of the month from the previous month&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;DaysOfMonth&lt;/STRONG&gt; - Is the full accumulation of the number of dates from the previous month&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Real&lt;/STRONG&gt; - The result od divide the value of AmtUSD / DaysOfMonth&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I need to create two separate charts&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1) With the REAL value of the month&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Barry-Gon_1-1612045079509.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/48031iFE08E10AEC124B00/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Barry-Gon_1-1612045079509.png" alt="Barry-Gon_1-1612045079509.png" /&gt;&lt;/span&gt;&lt;BR /&gt;2) With the REAL Full Accumulation from the previous month&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Barry-Gon_2-1612045119222.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/48032iCBDF4BA9D3B3BE4F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Barry-Gon_2-1612045119222.png" alt="Barry-Gon_2-1612045119222.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please Help&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2021 22:22:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-with-two-dimentions-do-not-display-correctly/m-p/1778663#M718039</guid>
      <dc:creator>Barry-Gon</dc:creator>
      <dc:date>2021-01-30T22:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart with two dimentions do not display correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-with-two-dimentions-do-not-display-correctly/m-p/1778683#M718040</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/134234"&gt;@Barry-Gon&lt;/a&gt;, the issue is that line chart is sorted by month-year (instead of the year-month used in pivot), so the Above() will get the previous year, not the previous month.&lt;/P&gt;&lt;P&gt;The count of days can be easily switched using another kind of expression that doesn't uses Above(), like:&lt;/P&gt;&lt;P&gt;=Floor(MonthEnd(MakeDate(Año, Mes_Num)))- YearStart(MakeDate(Año))+1&lt;/P&gt;&lt;P&gt;The amount con be trickier, you can use an as-of calendar to do the accumulations of each month&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But in this case another solution can be having the calculated value for max year and another for the previous, like:&lt;/P&gt;&lt;P&gt;MontoUSDYTD:&amp;nbsp;=rangesum(above(TOTAL If(Año=Max(TOTAL Año),(sum({ &amp;lt;[Escenario] = {'REAL'},[Concepto01]={'Egresos'} &amp;gt; }MontoUSD ) / vDivision),0),0,RowNo(TOTAL)))&lt;/P&gt;&lt;P&gt;MontoUSDLYTD: =rangesum(above(TOTAL If(Año=Max(TOTAL Año)-1,(sum({ &amp;lt;[Escenario] = {'REAL'},[Concepto01]={'Egresos'} &amp;gt; }MontoUSD ) / vDivision),0),0,RowNo(TOTAL)))&lt;/P&gt;&lt;P&gt;And use an If()in REAL expression to pick one or the other:&lt;/P&gt;&lt;P&gt;=Num((If(Año=Max(TOTAL Año),MontoUSDYTD, MontoUSDLYTD)/DiasDelMes1) , vFormatoInd)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2021 09:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-with-two-dimentions-do-not-display-correctly/m-p/1778683#M718040</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-01-31T09:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Line chart with two dimentions do not display correctly</title>
      <link>https://community.qlik.com/t5/QlikView/Line-chart-with-two-dimentions-do-not-display-correctly/m-p/1779489#M718041</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593"&gt;@rubenmarin&lt;/a&gt;&amp;nbsp;it works perfect for two years. Now I have the question below&amp;nbsp;&lt;A href="https://community.qlik.com/t5/New-to-QlikView/Line-Chart-max-year-and-min-year-behavior/m-p/1779487#M396334" target="_blank"&gt;https://community.qlik.com/t5/New-to-QlikView/Line-Chart-max-year-and-min-year-behavior/m-p/1779487#M396334&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 18:33:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Line-chart-with-two-dimentions-do-not-display-correctly/m-p/1779489#M718041</guid>
      <dc:creator>Barry-Gon</dc:creator>
      <dc:date>2021-02-02T18:33:41Z</dc:date>
    </item>
  </channel>
</rss>

