<?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: Monthly value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Monthly-value/m-p/690219#M249920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - just getting back to this.&amp;nbsp; Can you share the QVW (scramble the data if needed) and show me which expressions or charts aren't giving you the right numbers ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Aug 2014 14:57:27 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2014-08-05T14:57:27Z</dc:date>
    <item>
      <title>Monthly value</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-value/m-p/690216#M249917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to do and P&amp;amp;L table showing:&lt;/P&gt;&lt;P&gt;- the values for the selected month if only one month is selected (=sum({$&amp;lt;Indicateur={"I3"} &amp;gt;} MONTANT)/1000)&lt;/P&gt;&lt;P&gt;- the monthly value of each month selected if several months are selected&lt;/P&gt;&lt;P&gt;- the YTD value (=sum({$&amp;lt;%Annee = {$(=only(%Annee))}, %NoMois = {"&amp;lt;=$(=max(%NoMois))"}, Indicateur={'I3'} &amp;gt;} MONTANT)/1000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know how to display the columns of the selected months but can't get to display the correct values. Everytime, the table shows the sum of all the months selected in each column. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you what expression I should type? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lorraine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the expressions I tried:&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;[%Nomois (#)] = {$(=Only([%NoMois (#)]))},&amp;nbsp; Indicateur={"I3"}&amp;gt;} MONTANT)&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;[%Nomois (#)] = {$(=Only([%NoMois (#)]) – 1)},&amp;nbsp; Indicateur={"I3"}&amp;gt;} MONTANT)&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;[Month (#)] = {$(=Max([Month (#)]) – 1)},&amp;nbsp; Indicateur={"I3"}&amp;gt;} MONTANT)&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt; , Indicateur={"I3"}&amp;gt;} MONTANT)/1000&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;%Annee = {$(=only(%Annee))}, %NoMois = {$(=only(%NoMois))},&amp;nbsp; Indicateur={"I3"}&amp;gt;} MONTANT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 13:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-value/m-p/690216#M249917</guid>
      <dc:creator />
      <dc:date>2014-07-31T13:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly value</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-value/m-p/690217#M249918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The answer will depend on your data model.. can you share your QVW or a sample ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 13:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-value/m-p/690217#M249918</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-07-31T13:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly value</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-value/m-p/690218#M249919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the time script:&lt;/P&gt;&lt;P&gt;//Let vYear&amp;nbsp; = Num(year(Today())) ;&lt;/P&gt;&lt;P&gt;set vToday = date(today(), 'DD/MM/YYYY');&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;LET vThisYear = year($(vToday)) ; //year(vToday);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LET vLastYear = year($(vToday)) - 1;&lt;/P&gt;&lt;P&gt;LET vThisQuarter = 'Q' &amp;amp; ceil(month($(vToday) / 3));&lt;/P&gt;&lt;P&gt;LET vThisMonth = num(month($(vToday)));&lt;/P&gt;&lt;P&gt;LET vThisMonthText = month($(vToday));&lt;/P&gt;&lt;P&gt;LET vLastMonth = num(month(addmonths($(vToday), -1)));&lt;/P&gt;&lt;P&gt;LET vLastMonthText = month(addmonths($(vToday), -1));&lt;/P&gt;&lt;P&gt;LET vTodayWithinYear = num($(vToday) - yearstart($(vToday))) + 1;&lt;/P&gt;&lt;P&gt;LET vTodayWithinMonth = num($(vToday) - monthstart($(vToday))) + 1;&lt;/P&gt;&lt;P&gt;Is this sample enough for you? &lt;/P&gt;&lt;P&gt;&lt;IMG alt="data model.PNG.png" class="jive-image" src="/legacyfs/online/63491_data model.PNG.png" style="width: 620px; height: 398px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 13:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-value/m-p/690218#M249919</guid>
      <dc:creator />
      <dc:date>2014-07-31T13:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly value</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-value/m-p/690219#M249920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - just getting back to this.&amp;nbsp; Can you share the QVW (scramble the data if needed) and show me which expressions or charts aren't giving you the right numbers ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 14:57:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-value/m-p/690219#M249920</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-08-05T14:57:27Z</dc:date>
    </item>
  </channel>
</rss>

