<?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: How to use in expression data from current year and previous year at the same time? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-in-expression-data-from-current-year-and-previous/m-p/1634087#M731957</link>
    <description>&lt;P&gt;Hi! Thank you for you answer!&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;'Fact YearBefore' values shall be calculated&amp;nbsp; of Fact KPIs values. So I can load Fact KPIs with 1 year offset to new field.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Looks as good idea. I'll try it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanx a lot, Rubenmarin!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Oct 2019 07:55:21 GMT</pubDate>
    <dc:creator>AlexChirkin</dc:creator>
    <dc:date>2019-10-11T07:55:21Z</dc:date>
    <item>
      <title>How to use in expression data from current year and previous year at the same time?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-in-expression-data-from-current-year-and-previous/m-p/1633580#M731955</link>
      <description>&lt;P&gt;Hi, All. Dear experts, I need your help.&lt;/P&gt;&lt;P&gt;I have 3 dynamical expressions. All three are depending of filters values.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_0.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/21133i7B0552C78267934B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Fact Growth' = FACT - 'Fact YearBefore'&lt;/P&gt;&lt;P&gt;The problem is FACT and 'Fact YearBefore' are in different periods: 'Fact YearBefore' uses the same period as FACT, but year before.&lt;/P&gt;&lt;P&gt;I see 2 ways to solve it:&lt;/P&gt;&lt;P&gt;1) use in 'Fact Growth' expression 'Fact YearBefore' data from previous year period;&lt;/P&gt;&lt;P&gt;2) keep 'Fact YearBefore' data on current year period&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my Expressions:&lt;/P&gt;&lt;P&gt;1) FACT:&lt;/P&gt;&lt;P&gt;IF($(vPeriodCalcSelected)='NoCalc',sum({$}$(vINDICATOR_F)),&lt;BR /&gt;IF($(vPeriodCalcSelected)='QRT',sum({1 &amp;lt;Start_Date = {"&amp;gt;=$(=vLastMQuarterStartDate)&amp;lt;=$(=vLastMQuarterEndDate)"}&amp;gt;}$(vINDICATOR_F)),&lt;BR /&gt;IF($(vPeriodCalcSelected)='YTD',sum({1 &amp;lt;Start_Date = {"&amp;gt;=$(=vLastMYearStartDate)&amp;lt;=$(=vLastMonthStartDate)"}&amp;gt;}$(vINDICATOR_F)),&lt;BR /&gt;IF($(vPeriodCalcSelected)='FY',sum({1 &amp;lt;Start_Date = {"&amp;gt;=$(=vLastMYearStartDate)&amp;lt;=$(=vLastMYearEndDate)"}&amp;gt;}$(vINDICATOR_F)),&lt;BR /&gt;IF($(vPeriodCalcSelected)='MQT',sum({1 &amp;lt;Start_Date = {"&amp;gt;=$(=vLastMFloatQuarterStartDate)&amp;lt;=$(=vLastMonthStartDate)"}&amp;gt;}$(vINDICATOR_F)),&lt;BR /&gt;IF($(vPeriodCalcSelected)='MAT',sum({1 &amp;lt;Start_Date = {"&amp;gt;=$(=vLastMFloatYearStartDate)&amp;lt;=$(=vLastMonthStartDate)"}&amp;gt;}$(vINDICATOR_F)),&lt;BR /&gt;IF($(vPeriodCalcSelected)='QTG',sum({1 &amp;lt;Start_Date = {"&amp;gt;$(=vLastMonthStartDate)&amp;lt;=$(=vLastMQuarterEndDate)"}&amp;gt;}$(vINDICATOR_F)),&lt;BR /&gt;IF($(vPeriodCalcSelected)='YTG',sum({1 &amp;lt;Start_Date = {"&amp;gt;$(=vLastMonthStartDate)&amp;lt;=$(=vLastMYearEndDate)"}&amp;gt;}$(vINDICATOR_F)),&lt;BR /&gt;'Custom'))))))))&lt;/P&gt;&lt;P&gt;2) Fact YearBefore:&lt;/P&gt;&lt;P&gt;IF($(vPeriodCalcSelected)='NoCalc',sum({$}$(vINDICATOR_F)),&lt;BR /&gt;IF($(vPeriodCalcSelected)='QRT',sum({1 &amp;lt;Start_Date = {"&amp;gt;=$(=vLastMQuarterStartDate_YB)&amp;lt;=$(=vLastMQuarterEndDate_YB)"}&amp;gt;}$(vINDICATOR_F)),&lt;BR /&gt;IF($(vPeriodCalcSelected)='YTD',sum({1 &amp;lt;Start_Date = {"&amp;gt;=$(=vLastMYearStartDate_YB)&amp;lt;=$(=vLastMonthStartDate_YB)"}&amp;gt;}$(vINDICATOR_F)),&lt;BR /&gt;IF($(vPeriodCalcSelected)='FY',sum({1 &amp;lt;Start_Date = {"&amp;gt;=$(=vLastMYearStartDate_YB)&amp;lt;=$(=vLastMYearEndDate_YB)"}&amp;gt;}$(vINDICATOR_F)),&lt;BR /&gt;IF($(vPeriodCalcSelected)='MQT',sum({1 &amp;lt;Start_Date = {"&amp;gt;=$(=vLastMFloatQuarterStartDate_YB)&amp;lt;=$(=vLastMonthStartDate_YB)"}&amp;gt;}$(vINDICATOR_F)),&lt;BR /&gt;IF($(vPeriodCalcSelected)='MAT',sum({1 &amp;lt;Start_Date = {"&amp;gt;=$(=vLastMFloatYearStartDate_YB)&amp;lt;=$(=vLastMonthStartDate_YB)"}&amp;gt;}$(vINDICATOR_F)),&lt;BR /&gt;IF($(vPeriodCalcSelected)='QTG',sum({1 &amp;lt;Start_Date = {"&amp;gt;$(=vLastMonthStartDate_YB)&amp;lt;=$(=vLastMQuarterEndDate_YB)"}&amp;gt;}$(vINDICATOR_F)),&lt;BR /&gt;IF($(vPeriodCalcSelected)='YTG',sum({1 &amp;lt;Start_Date = {"&amp;gt;$(=vLastMonthStartDate_YB)&amp;lt;=$(=vLastMYearEndDate_YB)"}&amp;gt;}$(vINDICATOR_F)),&lt;BR /&gt;'Custom'))))))))&lt;/P&gt;&lt;P&gt;Fact Growth:&lt;/P&gt;&lt;P&gt;$(mINDICATOR_F_CalcPer) - $(mINDICATOR_F_CalcPer_YB)&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-in-expression-data-from-current-year-and-previous/m-p/1633580#M731955</guid>
      <dc:creator>AlexChirkin</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use in expression data from current year and previous year at the same time?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-in-expression-data-from-current-year-and-previous/m-p/1633860#M731956</link>
      <description>&lt;P&gt;Hi, you can try changing data while loading, add 10000 to %MONTH_ID when loading&amp;nbsp;&lt;SPAN&gt;'Fact YearBefore' so it will be in the same line as Fact, fact growth will be easier to calulate using this. Is this what you want?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 18:15:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-in-expression-data-from-current-year-and-previous/m-p/1633860#M731956</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-10-10T18:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use in expression data from current year and previous year at the same time?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-in-expression-data-from-current-year-and-previous/m-p/1634087#M731957</link>
      <description>&lt;P&gt;Hi! Thank you for you answer!&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;'Fact YearBefore' values shall be calculated&amp;nbsp; of Fact KPIs values. So I can load Fact KPIs with 1 year offset to new field.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Looks as good idea. I'll try it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanx a lot, Rubenmarin!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 07:55:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-in-expression-data-from-current-year-and-previous/m-p/1634087#M731957</guid>
      <dc:creator>AlexChirkin</dc:creator>
      <dc:date>2019-10-11T07:55:21Z</dc:date>
    </item>
  </channel>
</rss>

