<?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: YTD mismatch value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-mismatch-value/m-p/1281119#M851640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Anil says I think you need to remove your distinct, I am guessing you have the same order numbers used in different months?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you could prove this by using something like this to sum the aggregation of the forumla for each month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SUM(AGGR(COUNT(DISTINCT{&amp;lt;FIN_YEAR_NO={$(=$(vMaxYear))},QUARTER_NO={'&amp;lt;=$(vMaxQtr)'},FIN_MONTH_NO={'&amp;lt;=$(vMaxMon)'},FIN_MONTH=,MONTH=,MONTH_NO=,FIN_QUARTER=&amp;gt;} ORDER_NUM),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FIN_MONTH_NO&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Mar 2017 10:10:52 GMT</pubDate>
    <dc:creator>adamdavi3s</dc:creator>
    <dc:date>2017-03-01T10:10:52Z</dc:date>
    <item>
      <title>YTD mismatch value</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-mismatch-value/m-p/1281115#M851633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It would be silly but am unable to get proper YTD calculation.As per YTD formula I am getting different value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YTD:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=COUNT(DISTINCT{&amp;lt;FIN_YEAR_NO={$(=$(vMaxYear))},QUARTER_NO={'&amp;lt;=$(vMaxQtr)'},FIN_MONTH_NO={'&amp;lt;=$(vMaxMon)'},FIN_MONTH=,MONTH=,MONTH_NO=,FIN_QUARTER=&amp;gt;} ORDER_NUM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MTD:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=COUNT(&lt;SPAN style="font-size: 13.3333px;"&gt;DISTINCT&lt;/SPAN&gt;{&amp;lt;FIN_YEAR_NO={$(=$(vMaxYear))},FIN_MONTH_NO={$(=$(vMaxMon))},FIN_MONTH=,MONTH=,MONTH_NO=,FIN_QUARTER=&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;ORDER_NUM&lt;/SPAN&gt;)&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; MTD is working fine and giving proper value but while cross checking YTD value am getting the big difference between total MTD for Financial year 16-17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g:&lt;/P&gt;&lt;P&gt;&amp;nbsp; YTD -&amp;nbsp; 2793&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; MTD&lt;/P&gt;&lt;P&gt;&amp;nbsp; APR - 0&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; MAY - 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; JUN - 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;JUL -71&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;AUG - 574&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SEP - 564&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;OCT - 583&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;NOV - 740&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;DEC -1060&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;JAN -758&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FEB -558&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Total YTD will be addition of all months(MTD) which should come as &lt;STRONG&gt;4908&lt;/STRONG&gt; but it is taking the count as&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;STRONG&gt;2793.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I have checked each and every row but don't know where is a loophole either in calculation or understading?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;KK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;A href="https://community.qlik.com/qlik-users/70029" target="_blank"&gt;celambarasan&lt;/A&gt;‌&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/183735" target="_blank"&gt;qlikrajan&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/2006" target="_blank"&gt;jimhalpert&lt;/A&gt;‌&lt;A href="https://community.qlik.com/space/2003" target="_blank"&gt;New to QlikView&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-mismatch-value/m-p/1281115#M851633</guid>
      <dc:creator>Karim_Khan</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: YTD mismatch value</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-mismatch-value/m-p/1281116#M851634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be remove DISTINCT and use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try some thing Like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MTD&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MTD is the label for expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 06:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-mismatch-value/m-p/1281116#M851634</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-03-01T06:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: YTD mismatch value</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-mismatch-value/m-p/1281117#M851636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you attach your sample document, so that it will be helpful to check the logic and try some alternative codes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 07:06:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-mismatch-value/m-p/1281117#M851636</guid>
      <dc:creator />
      <dc:date>2017-03-01T07:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: YTD mismatch value</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-mismatch-value/m-p/1281118#M851638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;try below&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;YTD:-&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=COUNT(DISTINCT{&amp;lt;FIN_YEAR_NO={$(=$&lt;STRONG&gt;(=vMaxYear)&lt;/STRONG&gt;)},QUARTER_NO={'&amp;lt;=$(&lt;STRONG&gt;=vMaxQtr)&lt;/STRONG&gt;'},FIN_MONTH_NO={'&amp;lt;=$(&lt;STRONG&gt;=vMaxMon)&lt;/STRONG&gt;'},FIN_MONTH=,MONTH=,MONTH_NO=,FIN_QUARTER=&amp;gt;} ORDER_NUM)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;why didn't you go for a Date&amp;nbsp; instead of year, quarter,Month with variables?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;OR&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try this &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Use&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(DISTINCT &lt;STRONG&gt;{&amp;lt;&amp;nbsp; date={"&amp;gt;= $(= MonthStart(max(date))) &amp;lt;= $(=max(Date))&lt;/STRONG&gt; "},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FIN_MONTH=,MONTH=,MONTH_NO=,FIN_QUARTER&lt;/SPAN&gt; &amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ORDER_NUM)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 07:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-mismatch-value/m-p/1281118#M851638</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2017-03-01T07:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: YTD mismatch value</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-mismatch-value/m-p/1281119#M851640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Anil says I think you need to remove your distinct, I am guessing you have the same order numbers used in different months?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you could prove this by using something like this to sum the aggregation of the forumla for each month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SUM(AGGR(COUNT(DISTINCT{&amp;lt;FIN_YEAR_NO={$(=$(vMaxYear))},QUARTER_NO={'&amp;lt;=$(vMaxQtr)'},FIN_MONTH_NO={'&amp;lt;=$(vMaxMon)'},FIN_MONTH=,MONTH=,MONTH_NO=,FIN_QUARTER=&amp;gt;} ORDER_NUM),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FIN_MONTH_NO&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 10:10:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-mismatch-value/m-p/1281119#M851640</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-03-01T10:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: YTD mismatch value</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-mismatch-value/m-p/1281120#M851642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TNX&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 12:37:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-mismatch-value/m-p/1281120#M851642</guid>
      <dc:creator>Karim_Khan</dc:creator>
      <dc:date>2017-03-01T12:37:24Z</dc:date>
    </item>
  </channel>
</rss>

