<?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: Latest 2 months data in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Latest-2-months-data/m-p/1782061#M31208</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48729"&gt;@Ruggero_Piccoli&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;it doesn't work with text or num either...&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Artur&lt;/P&gt;</description>
    <pubDate>Thu, 11 Feb 2021 16:57:09 GMT</pubDate>
    <dc:creator>Uri</dc:creator>
    <dc:date>2021-02-11T16:57:09Z</dc:date>
    <item>
      <title>Latest 2 months data</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Latest-2-months-data/m-p/1781663#M31198</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a field YearMonth (format: jan. 2021).&lt;/P&gt;&lt;P&gt;Today Im using =YearMonth=max(total YearMonth) to get the latest YearMonth when I open the app.&lt;/P&gt;&lt;P&gt;I want to use a filter in NPrinting to show last 2 months data.&lt;/P&gt;&lt;P&gt;How can I do this?&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Artur&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:10:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Latest-2-months-data/m-p/1781663#M31198</guid>
      <dc:creator>Uri</dc:creator>
      <dc:date>2024-11-15T23:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Latest 2 months data</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Latest-2-months-data/m-p/1781727#M31199</link>
      <description>&lt;P&gt;Hi Artur,&lt;/P&gt;&lt;P&gt;you can add a new value in the same filter and add the previous month.&lt;/P&gt;&lt;P&gt;The formula could be =YearMonth=max(total YearMonth)-1 but this depends on how you defined the YearMonth field&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 16:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Latest-2-months-data/m-p/1781727#M31199</guid>
      <dc:creator>Andrea_Bertazzo</dc:creator>
      <dc:date>2021-02-10T16:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Latest 2 months data</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Latest-2-months-data/m-p/1781793#M31202</link>
      <description>&lt;P&gt;Here you have short scenarios and things you have to be aware of when working with Advanced Searches and also When working with dates...&lt;/P&gt;&lt;P&gt;&lt;A href="https://nprintingadventures.com/2019/06/26/nprinting-filters-part-3-advanced-search/" target="_blank"&gt;https://nprintingadventures.com/2019/06/26/nprinting-filters-part-3-advanced-search/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nprintingadventures.com/2019/02/15/the-pitfalls-of-nprinting-filters-part-1-dates-and-duals/" target="_blank"&gt;https://nprintingadventures.com/2019/02/15/the-pitfalls-of-nprinting-filters-part-1-dates-and-duals/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;landing page: &lt;A href="https://nprintingadventures.com" target="_blank"&gt;https://nprintingadventures.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 22:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Latest-2-months-data/m-p/1781793#M31202</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2021-02-10T22:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Latest 2 months data</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Latest-2-months-data/m-p/1782014#M31206</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;YearMonth defined as &lt;STRONG&gt;MonthName(dat) as YearMonth.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I already tried like&amp;nbsp;&lt;SPAN&gt;=YearMonth=max(total YearMonth)-1&amp;nbsp;and it didn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Artur&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 14:38:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Latest-2-months-data/m-p/1782014#M31206</guid>
      <dc:creator>Uri</dc:creator>
      <dc:date>2021-02-11T14:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Latest 2 months data</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Latest-2-months-data/m-p/1782031#M31207</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could be a problem due to the dual representation of data. Try to force to Text().&lt;/P&gt;&lt;P&gt;Remember also that when you use formulas in filters, you have to select Evaluate value from the dropdown menu.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ruggero&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 15:18:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Latest-2-months-data/m-p/1782031#M31207</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2021-02-11T15:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Latest 2 months data</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Latest-2-months-data/m-p/1782061#M31208</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/48729"&gt;@Ruggero_Piccoli&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;it doesn't work with text or num either...&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Artur&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 16:57:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Latest-2-months-data/m-p/1782061#M31208</guid>
      <dc:creator>Uri</dc:creator>
      <dc:date>2021-02-11T16:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Latest 2 months data</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Latest-2-months-data/m-p/1782140#M31209</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/86861"&gt;@Uri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you gone through the links I have sent in my previous post? So the first question is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;how is you&amp;nbsp;&lt;SPAN&gt;YearMonth field created in your load script?&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;is it stored in Qlik as text or number&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;I assume it is actually created as Date(MonthStart(YourDate),'MMM.YYYY') or similar which is still a date!!!! grouped as 1st day of month and with Month.Year format&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;If that is the case then your filter can be created in 2 ways:&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;by creating filter to select current and last month (with Evaluate value option)&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;if your current filter works for current month&amp;nbsp;&lt;STRONG&gt;=YearMonth=max(total YearMonth)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;then for last month I would do something like this:&amp;nbsp;&lt;STRONG&gt;=YearMonth=AddMonths(max(total YearMonth),-1)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;by creating range using advanced search&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Understanding how is your calendar built as well as if there is association&amp;nbsp;with date field could help as well as I would then use different formulas to select your month year field. I would use this option:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;current month: =Only({&amp;lt;SomeDateField={'$(=Today())'}&amp;gt;}MonthYear)&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;last month: =Only({&amp;lt;SomeDateField={'$(=AddMonths(Today(),-1))'}&amp;gt;}MonthYear)&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;There is no point talking about filters if we dont know how is your calendar built. It is not really NPrinitng question - it is Qlik Sense question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;... or maybe you are using autogenerated calendar from Qlik Sense by using "derived fileds" ???&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 20:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Latest-2-months-data/m-p/1782140#M31209</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2021-02-11T20:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Latest 2 months data</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Latest-2-months-data/m-p/1782151#M31210</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/1326"&gt;@Lech_Miszkiewicz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;=AddMonths(max(total YearMonth),-1)&amp;nbsp;&lt;/STRONG&gt;did the trick.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My YearMonth field looks like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;MonthName(dat) as YearMonth&amp;nbsp;&lt;/STRONG&gt;and stored like (dec. 2020). I will go through your links since I'm still not getting why text() didn't work... I really appreciate&amp;nbsp;your help guys.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Artur&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 21:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Latest-2-months-data/m-p/1782151#M31210</guid>
      <dc:creator>Uri</dc:creator>
      <dc:date>2021-02-11T21:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Latest 2 months data</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Latest-2-months-data/m-p/1782191#M31211</link>
      <description>&lt;P&gt;Text did not work because your YearMonth field is not text field!!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/DateAndTimeFunctions/monthname.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/DateAndTimeFunctions/monthname.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You always need to know what data type you are working with...&amp;nbsp; Since it is created by using monthname function it is actually dual field which contains numerical representation and text sumbol of it. For all dual values NPrinting is requiring numerical filter which is documented here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/nprinting/February2021/Content/NPrinting/ReportsDevelopment/Static-dynamic-filters.htm#anchor-5" target="_blank"&gt;https://help.qlik.com/en-US/nprinting/February2021/Content/NPrinting/ReportsDevelopment/Static-dynamic-filters.htm#anchor-5&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I also mention all this in one of my blog topics "Pitfalls of NPrinitng filters dates and duals...."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 03:40:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Latest-2-months-data/m-p/1782191#M31211</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2021-02-12T03:40:49Z</dc:date>
    </item>
  </channel>
</rss>

