<?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: Formula help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formula-help/m-p/127685#M19330</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I put in the expression I suggested to you in my first response I get the correct result which is 38:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2018-08-10 12_36_29-QlikView x64 - Evaluation Copy - [C__Users_pts_Downloads_T.qvw_].png" class="jive-image image-1" height="270" src="/legacyfs/online/210520_2018-08-10 12_36_29-QlikView x64 - Evaluation Copy - [C__Users_pts_Downloads_T.qvw_].png" style="height: 269.873px; width: 451px;" width="451" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it seems like you got your answer then doesn't it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Aug 2018 10:38:08 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2018-08-10T10:38:08Z</dc:date>
    <item>
      <title>Formula help</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-help/m-p/127679#M19324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have period , flag and market as fields in a list box and &lt;SPAN style="font-size: 13.3333px;"&gt;I am trying to calculate average for YTD .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is when i select period and flag the average value is showing for that month. instead of showing for selected months and dividing by the selected month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ex: I have month selected as march. the values for jan and feb and mar are 10,20,30. I need to get output as (10+20+30)/3 = 20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i here it is happening 30/3 =10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is happening only if i select period and if i remove period and select any other combination&amp;nbsp; i am getting value correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below image for your reference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="T.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/210518_T.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the value is showing is 12 instead of 38. Can you please help me where i am doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formula i have used is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(SubStringCount('|' &amp;amp; Concat(distinct Dimension2, '|') &amp;amp; '|', '|Flag|'),Num(SUM({&amp;lt;Period_NR={'&amp;gt;=$(=MonthStart(vCurrYear_SelectedMnth1, 1-NUM(Month(vCurrYear_SelectedMnth1))))&amp;lt;=$(=vCurrYear_SelectedMnth1)'}&lt;/P&gt;&lt;P&gt;&amp;gt;}IB),'#,##0.0%')/Month(Period_NR))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bharat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 09:11:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-help/m-p/127679#M19324</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-08-10T09:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Formula help</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-help/m-p/127680#M19325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using a recent version of QlikView like QlikView November 2017 or newer you should use the correct quotation marks for a search which is double quotes - not single quotes as you have used. In older versions QlikView didn't care whether you had single or double quotation marks for search actually....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #999999;"&gt;=If(SubStringCount('|' &amp;amp; Concat(distinct Dimension2, '|') &amp;amp; '|', '|Flag|'),Num(SUM({&amp;lt;Period_NR={&lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff0000;"&gt;"&lt;/STRONG&gt;&lt;SPAN style="color: #ffcc00;"&gt;&amp;gt;=$(=MonthStart(vCurrYear_SelectedMnth1, 1-NUM(Month(vCurrYear_SelectedMnth1))))&amp;lt;=$(=vCurrYear_SelectedMnth1)&lt;/SPAN&gt;&lt;STRONG style="color: #ff0000;"&gt;"&lt;/STRONG&gt;&lt;SPAN style="color: #999999;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #999999;"&gt;&amp;gt;}IB),'#,##0.0%')/Month(Period_NR))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 09:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-help/m-p/127680#M19325</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-08-10T09:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Formula help</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-help/m-p/127681#M19326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still i am getting the same value as 12 instead of 38. It is not summing up. Do i need to use rangesum or anything or i need to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 09:44:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-help/m-p/127681#M19326</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-08-10T09:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Formula help</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-help/m-p/127682#M19327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌ Can you please help me Sunny Bhai..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 10:04:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-help/m-p/127682#M19327</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-08-10T10:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Formula help</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-help/m-p/127683#M19328</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;Check your variables that they are working correctly when selecting the Period_NR by placing them in text boxes and making the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other than that I'm not seeing any issues, the only thing would be if there are other selections besides the periods that influence the data set and disqualifies the months before March.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 10:19:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-help/m-p/127683#M19328</guid>
      <dc:creator>niclaz79</dc:creator>
      <dc:date>2018-08-10T10:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Formula help</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-help/m-p/127684#M19329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attaching the file for reference. Please let me know if you need anything more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i take expression total 38 is coming correct. But in the chart it is showing 12 only for that month instead of 38.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 10:29:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-help/m-p/127684#M19329</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-08-10T10:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Formula help</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-help/m-p/127685#M19330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I put in the expression I suggested to you in my first response I get the correct result which is 38:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2018-08-10 12_36_29-QlikView x64 - Evaluation Copy - [C__Users_pts_Downloads_T.qvw_].png" class="jive-image image-1" height="270" src="/legacyfs/online/210520_2018-08-10 12_36_29-QlikView x64 - Evaluation Copy - [C__Users_pts_Downloads_T.qvw_].png" style="height: 269.873px; width: 451px;" width="451" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it seems like you got your answer then doesn't it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 10:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-help/m-p/127685#M19330</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-08-10T10:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Formula help</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-help/m-p/127686#M19331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you need to use the expression in a chart you will have to use the TOTAL qualifier in the Sum() like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2018-08-10 12_41_11-Edit Expression.png" class="jive-image image-1" src="/legacyfs/online/210533_2018-08-10 12_41_11-Edit Expression.png" style="height: 179px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 10:42:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-help/m-p/127686#M19331</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-08-10T10:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Formula help</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-help/m-p/127687#M19332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. But in chart it is showing as 12. That is why i don't know where it is getting wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 10:43:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-help/m-p/127687#M19332</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-08-10T10:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Formula help</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-help/m-p/127688#M19333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Peter.. Missed it..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 10:45:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-help/m-p/127688#M19333</guid>
      <dc:creator>bharatkishore</dc:creator>
      <dc:date>2018-08-10T10:45:17Z</dc:date>
    </item>
  </channel>
</rss>

