<?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 MTD/PMTD  bar chart in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/MTD-PMTD-bar-chart/m-p/1717964#M54531</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I created a bar chart which displays current year and previous year&amp;nbsp; MTD.&lt;/P&gt;&lt;P&gt;I need to show the difference between the 2 values. Couldn’t figure out a way add this to the chart, so I added it to the title.&lt;/P&gt;&lt;P&gt;Anyone has an idea?&lt;/P&gt;&lt;P&gt;The dimension is Year&lt;/P&gt;&lt;P&gt;The bar expression:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Calendar.Year] ={"&amp;gt;=$(vPrevYear)&amp;lt;=$(vMaxYear_1)"},[Calendar.MonthNum] = {'$(vMaxMonth_1)'}, [Calendar.Day] = {"&amp;lt;=$(vMaxDay_1)"}&amp;gt;}Customers_Count)&lt;/P&gt;&lt;P&gt;The difference expression:&lt;/P&gt;&lt;P&gt;($(v_CustCount_MTD_Dashboard)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;$(v_CustCount_PMTD_Dashboard) )&lt;/P&gt;&lt;P&gt;-1,'#,##0%')&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MTD_BAR_CHART.png" style="width: 383px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/35370i1371898AD4E07683/image-size/large?v=v2&amp;amp;px=999" role="button" title="MTD_BAR_CHART.png" alt="MTD_BAR_CHART.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:10:25 GMT</pubDate>
    <dc:creator>dana</dc:creator>
    <dc:date>2024-11-16T02:10:25Z</dc:date>
    <item>
      <title>MTD/PMTD  bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/MTD-PMTD-bar-chart/m-p/1717964#M54531</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I created a bar chart which displays current year and previous year&amp;nbsp; MTD.&lt;/P&gt;&lt;P&gt;I need to show the difference between the 2 values. Couldn’t figure out a way add this to the chart, so I added it to the title.&lt;/P&gt;&lt;P&gt;Anyone has an idea?&lt;/P&gt;&lt;P&gt;The dimension is Year&lt;/P&gt;&lt;P&gt;The bar expression:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Calendar.Year] ={"&amp;gt;=$(vPrevYear)&amp;lt;=$(vMaxYear_1)"},[Calendar.MonthNum] = {'$(vMaxMonth_1)'}, [Calendar.Day] = {"&amp;lt;=$(vMaxDay_1)"}&amp;gt;}Customers_Count)&lt;/P&gt;&lt;P&gt;The difference expression:&lt;/P&gt;&lt;P&gt;($(v_CustCount_MTD_Dashboard)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;$(v_CustCount_PMTD_Dashboard) )&lt;/P&gt;&lt;P&gt;-1,'#,##0%')&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MTD_BAR_CHART.png" style="width: 383px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/35370i1371898AD4E07683/image-size/large?v=v2&amp;amp;px=999" role="button" title="MTD_BAR_CHART.png" alt="MTD_BAR_CHART.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/MTD-PMTD-bar-chart/m-p/1717964#M54531</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2024-11-16T02:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: MTD/PMTD  bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/MTD-PMTD-bar-chart/m-p/1717989#M54534</link>
      <description>&lt;P&gt;Set Analysis happens before the data gets calculated over the dimensions. You can't do value of Dimension A vs Dimension B, while the Dimension is in the chart, unless you use inter-record functions, like &lt;A href="https://help.qlik.com/en-US/sense/April2020/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/InterRecordFunctions/above.htm" target="_self"&gt;Above&lt;/A&gt;() or change the model.&lt;/P&gt;&lt;P&gt;Here is how you can do it using Above().&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum({&amp;lt;[Calendar.Year] ={"&amp;gt;=$(vPrevYear)&amp;lt;=$(vMaxYear_1)"},[Calendar.MonthNum] = {'$(vMaxMonth_1)'}, [Calendar.Day] = {"&amp;lt;=$(vMaxDay_1)"}&amp;gt;}Customers_Count)

/ 

Above(Sum({&amp;lt;[Calendar.Year] ={"&amp;gt;=$(vPrevYear)&amp;lt;=$(vMaxYear_1)"},[Calendar.MonthNum] = {'$(vMaxMonth_1)'}, [Calendar.Day] = {"&amp;lt;=$(vMaxDay_1)"}&amp;gt;}Customers_Count))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should probably include year 2018 as well, so 2019 has a comparison value. If you uncheck 'Include zero Values' in the Add-Ons section, it will hide 2018 from the chart and only show 2019 &amp;amp; 2020, which the comparison %.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 15:25:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/MTD-PMTD-bar-chart/m-p/1717989#M54534</guid>
      <dc:creator>treysmithdev</dc:creator>
      <dc:date>2020-06-11T15:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: MTD/PMTD  bar chart</title>
      <link>https://community.qlik.com/t5/App-Development/MTD-PMTD-bar-chart/m-p/1718000#M54535</link>
      <description>&lt;P&gt;It works!&amp;nbsp; Thank you very much!&lt;/P&gt;&lt;P&gt;No need to add 2018.&lt;/P&gt;&lt;P&gt;The only issue is the visibility:&amp;nbsp; the point hides the bar's value and I the value of the point is not displayed..&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="MTD_BAR_CHART1.png" style="width: 512px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/35377iD58135777A859C14/image-size/large?v=v2&amp;amp;px=999" role="button" title="MTD_BAR_CHART1.png" alt="MTD_BAR_CHART1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 15:54:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/MTD-PMTD-bar-chart/m-p/1718000#M54535</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2020-06-11T15:54:04Z</dc:date>
    </item>
  </channel>
</rss>

