<?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 Pivot table display MTD &amp;amp; YTD in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Pivot-table-display-MTD-amp-YTD/m-p/1747855#M64110</link>
    <description>&lt;P&gt;successfully added MTD but trying to add YTD to same Pivot Table.&lt;/P&gt;&lt;P&gt;Currently have not found a viable solution&lt;/P&gt;&lt;P&gt;Measure:&lt;/P&gt;&lt;P&gt;SUM(&lt;BR /&gt;{&amp;lt;[EFFECTIVEDATE.autoCalendar.InYTD]={"$(=YEAR(TODAY())-1)","$(=YEAR(TODAY()))"}&lt;BR /&gt;,MONTH&lt;BR /&gt;,WEEK&lt;BR /&gt;,DATE={"=SETDATEYEAR(DATE,YEAR(TODAY()))&amp;gt;=YEARSTART(TODAY()) AND SETDATEYEAR(DATE,YEAR(TODAY()))&amp;lt;TODAY()"}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;NORMALBALANCE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;added YTD flag in calendar script&lt;/P&gt;&lt;P&gt;If( $1 - YearStart($1) &amp;lt;= Today() - YearStart(Today()), 1, 0 ) as IsInYTD,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried max date - max date of previous year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MTD set as single measure:&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum(NORMALBALANCE) - AFTER(SUM(NORMALBALANCE))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;want to see&lt;/P&gt;&lt;P&gt;for every month on current year, comparison of month over month and YTD comparison&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:22:01 GMT</pubDate>
    <dc:creator>SonOfJeffGoldblum</dc:creator>
    <dc:date>2024-11-16T01:22:01Z</dc:date>
    <item>
      <title>Pivot table display MTD &amp; YTD</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-table-display-MTD-amp-YTD/m-p/1747855#M64110</link>
      <description>&lt;P&gt;successfully added MTD but trying to add YTD to same Pivot Table.&lt;/P&gt;&lt;P&gt;Currently have not found a viable solution&lt;/P&gt;&lt;P&gt;Measure:&lt;/P&gt;&lt;P&gt;SUM(&lt;BR /&gt;{&amp;lt;[EFFECTIVEDATE.autoCalendar.InYTD]={"$(=YEAR(TODAY())-1)","$(=YEAR(TODAY()))"}&lt;BR /&gt;,MONTH&lt;BR /&gt;,WEEK&lt;BR /&gt;,DATE={"=SETDATEYEAR(DATE,YEAR(TODAY()))&amp;gt;=YEARSTART(TODAY()) AND SETDATEYEAR(DATE,YEAR(TODAY()))&amp;lt;TODAY()"}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;NORMALBALANCE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;added YTD flag in calendar script&lt;/P&gt;&lt;P&gt;If( $1 - YearStart($1) &amp;lt;= Today() - YearStart(Today()), 1, 0 ) as IsInYTD,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried max date - max date of previous year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MTD set as single measure:&amp;nbsp;&lt;/P&gt;&lt;P&gt;sum(NORMALBALANCE) - AFTER(SUM(NORMALBALANCE))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;want to see&lt;/P&gt;&lt;P&gt;for every month on current year, comparison of month over month and YTD comparison&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-table-display-MTD-amp-YTD/m-p/1747855#M64110</guid>
      <dc:creator>SonOfJeffGoldblum</dc:creator>
      <dc:date>2024-11-16T01:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table display MTD &amp; YTD</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-table-display-MTD-amp-YTD/m-p/1748161#M64111</link>
      <description>&lt;P&gt;Not sure I am clear as to what you are looking to do. Would you be able to share some sample data with the expected output based on the sample shared/&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:24:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-table-display-MTD-amp-YTD/m-p/1748161#M64111</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-29T15:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table display MTD &amp; YTD</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-table-display-MTD-amp-YTD/m-p/1748261#M64112</link>
      <description />
      <pubDate>Tue, 29 Sep 2020 21:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-table-display-MTD-amp-YTD/m-p/1748261#M64112</guid>
      <dc:creator>SonOfJeffGoldblum</dc:creator>
      <dc:date>2020-09-29T21:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table display MTD &amp; YTD</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-table-display-MTD-amp-YTD/m-p/1748879#M64113</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp; et. al&lt;/P&gt;&lt;P&gt;A little more background as I am finding:&lt;/P&gt;&lt;P&gt;Only month-end dates are available.&lt;/P&gt;&lt;P&gt;Yr and Mth are individual dimensions [EFFECTIVEDATE.autoCalendar.Year] &amp;amp; [EFFECTIVEDATE.autoCalendar.Month].&lt;/P&gt;&lt;P&gt;I have made a Master Calendar and As Of Table&lt;/P&gt;&lt;P&gt;In sample file attached, the ytd - NOW columns are calculated with the below, but I have not gotten any further. Several solutions I have tried that I have read of your solutions or others, I can get the values individually, but when subtracting from one another, I get nulls. That is even when including year=,quarter=,month=,date= or using yearmonth, year, month for the effectivedate field as a dimension.&lt;/P&gt;&lt;P&gt;=ABOVE(Sum({&amp;lt;EFFECTIVEDATE={"=SetDateYear(EFFECTIVEDATE, Year(Today())) &amp;gt;= YearStart(Today(),0,12) and SetDateYear(EFFECTIVEDATE, Year(Today())) &amp;lt;= Today()"}&amp;gt;} NORMALBALANCE))&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={$(=Only(Year))},Month= {"&amp;lt;=$(=max({&amp;lt;Year={$(=Only(Year))}&amp;gt;} Month))"}&amp;gt;}NORMALBALANCE)&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 14:49:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-table-display-MTD-amp-YTD/m-p/1748879#M64113</guid>
      <dc:creator>SonOfJeffGoldblum</dc:creator>
      <dc:date>2020-10-01T14:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table display MTD &amp; YTD</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-table-display-MTD-amp-YTD/m-p/1750780#M64114</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below i added sample data as requested. Do you have an idea on how to display this across all months of current year against max date of last year. Then the same for all of last year against previous year?&lt;/P&gt;&lt;P&gt;Based on the data we have, there is only month-end data per year-month which does make it difficult in expressions that ask a specific date per month.&lt;/P&gt;&lt;P&gt;I have not been able to find a single formula that will help outside of performing and loading manually.&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 15:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-table-display-MTD-amp-YTD/m-p/1750780#M64114</guid>
      <dc:creator>SonOfJeffGoldblum</dc:creator>
      <dc:date>2020-10-08T15:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot table display MTD &amp; YTD</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-table-display-MTD-amp-YTD/m-p/1753303#M64115</link>
      <description>&lt;P&gt;Separated Yr-Mth into two dimensions, one for Year and one for Month.&lt;/P&gt;&lt;P&gt;For MTD, used After() for comparison&lt;/P&gt;&lt;P&gt;For YTD, used Last() for comparison&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 16:25:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-table-display-MTD-amp-YTD/m-p/1753303#M64115</guid>
      <dc:creator>SonOfJeffGoldblum</dc:creator>
      <dc:date>2020-10-16T16:25:58Z</dc:date>
    </item>
  </channel>
</rss>

