<?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 shorten the filter content in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-shorten-the-filter-content/m-p/2021854#M84367</link>
    <description>&lt;P&gt;Create a variable having previous month value, i.e&amp;nbsp;&lt;/P&gt;
&lt;P&gt;vprevmonth= month(today())-1 or as depicted if any specific format is being used for the month value then use that, and use it first in a table value to check if the values are actually matching or not.Then use&lt;/P&gt;
&lt;P&gt;if (monthfieldname&amp;gt;=vprevmonth, monthfieldname, null())&lt;/P&gt;
&lt;P&gt;Most likely the error is due to the mismatch in the search string and the data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, while posting the doubt do provide the error facing and the correct dataset for getting better responses and results.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2023 16:50:52 GMT</pubDate>
    <dc:creator>deepanshuSh</dc:creator>
    <dc:date>2023-01-04T16:50:52Z</dc:date>
    <item>
      <title>How to shorten the filter content</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-shorten-the-filter-content/m-p/2021765#M84347</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;I have a filter with Content Year_Month, previously it shows all of the available value for this Coulmn&lt;/P&gt;
&lt;P&gt;but now my Customer want me to show just last Month and current Month.&lt;/P&gt;
&lt;P&gt;Is there any person who could help me how I can show just current Month and previous Month in my Filter?&lt;/P&gt;
&lt;P&gt;I had tried this one but it gives me error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if(zeitpunktverarbeitungYearMonth&amp;gt;=Max(zeitpunktverarbeitungYearMonth)-1,&lt;BR /&gt;zeitpunktverarbeitungYearMonth, null()&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advanced&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Filter.PNG" style="width: 434px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/97228i507B0FBE178790A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Filter.PNG" alt="Filter.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 13:57:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-shorten-the-filter-content/m-p/2021765#M84347</guid>
      <dc:creator>Samanehsorournejad</dc:creator>
      <dc:date>2023-01-04T13:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to shorten the filter content</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-shorten-the-filter-content/m-p/2021778#M84349</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A id="link_2" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.qlik.com/t5/user/viewprofilepage/user-id/154056" target="_self" aria-label="View Profile of Samanehsorournejad" aria-describedby="userProfileCard-154056"&gt;&lt;SPAN class=""&gt;anehsorournejad&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;I think you can create a Dimension that search for these 2 field, the current month and the last month.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;And when you add these dimension to your field only appear the 2 field that your customer want.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 14:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-shorten-the-filter-content/m-p/2021778#M84349</guid>
      <dc:creator>rui24</dc:creator>
      <dc:date>2023-01-04T14:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to shorten the filter content</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-shorten-the-filter-content/m-p/2021854#M84367</link>
      <description>&lt;P&gt;Create a variable having previous month value, i.e&amp;nbsp;&lt;/P&gt;
&lt;P&gt;vprevmonth= month(today())-1 or as depicted if any specific format is being used for the month value then use that, and use it first in a table value to check if the values are actually matching or not.Then use&lt;/P&gt;
&lt;P&gt;if (monthfieldname&amp;gt;=vprevmonth, monthfieldname, null())&lt;/P&gt;
&lt;P&gt;Most likely the error is due to the mismatch in the search string and the data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, while posting the doubt do provide the error facing and the correct dataset for getting better responses and results.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 16:50:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-shorten-the-filter-content/m-p/2021854#M84367</guid>
      <dc:creator>deepanshuSh</dc:creator>
      <dc:date>2023-01-04T16:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to shorten the filter content</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-shorten-the-filter-content/m-p/2022051#M84376</link>
      <description>&lt;P&gt;If( montnOfyourColumn=month (today()) or&amp;nbsp;montnOfyourColumn=month (today()-30) ,&amp;nbsp;montnOfyourColumn=month)&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 06:40:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-shorten-the-filter-content/m-p/2022051#M84376</guid>
      <dc:creator>tkas</dc:creator>
      <dc:date>2023-01-05T06:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to shorten the filter content</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-shorten-the-filter-content/m-p/2022077#M84378</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I would approach this is script, Create a new dimension in your calendar which just populated with the Dates that are equal to this month or last month, then use this field front end,.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 08:33:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-shorten-the-filter-content/m-p/2022077#M84378</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2023-01-05T08:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to shorten the filter content</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-shorten-the-filter-content/m-p/2022095#M84379</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Looks like your field&amp;nbsp;&lt;SPAN&gt;zeitpunktverarbeitungYearMonth is not a date field as you have "letzte 30 Tage" as a value. So if you need to create this in the interface you have to do something like this where you define each possible value, you can't base it on a &lt;EM&gt;"x&amp;gt;Date"&lt;/EM&gt; condition .&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=if(match(zeitpunktverarbeitungYearMonth,&lt;BR /&gt;year(today())&amp;amp;'-'&amp;amp;num(month(today()),'00'),&lt;BR /&gt;year(monthstart(today())-1)&amp;amp;'-'&amp;amp;num(month(monthstart(today())-1),'00'),&lt;BR /&gt;'letzte 30 Tage')&lt;BR /&gt;,zeitpunktverarbeitungYearMonth,&lt;BR /&gt;Null())&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It will work, but will not look very good:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jbhappysocks_0-1672908904030.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/97312i35540180C0164056/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jbhappysocks_0-1672908904030.png" alt="jbhappysocks_0-1672908904030.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you instead add something like this in your script:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;PeriodSelect:&lt;BR /&gt;Load&lt;BR /&gt;year(today())&amp;amp;'-'&amp;amp;num(month(today()),'00') as zeitpunktverarbeitungYearMonth&lt;BR /&gt;AutoGenerate 1;&lt;/P&gt;
&lt;P&gt;Concatenate (PeriodSelect)&lt;BR /&gt;Load&lt;BR /&gt;year(monthstart(today())-1)&amp;amp;'-'&amp;amp;num(month(monthstart(today())-1),'00') as zeitpunktverarbeitungYearMonth&lt;BR /&gt;AutoGenerate 1;&lt;/P&gt;
&lt;P&gt;Concatenate (PeriodSelect)&lt;BR /&gt;Load &lt;BR /&gt;'letzte 30 Tage' as zeitpunktverarbeitungYearMonth&lt;BR /&gt;AutoGenerate 1;&lt;/P&gt;
&lt;P&gt;left join (datetable)&lt;BR /&gt;Load&lt;BR /&gt;zeitpunktverarbeitungYearMonth,&lt;BR /&gt;zeitpunktverarbeitungYearMonth as "Period Selection"&lt;BR /&gt;Resident PeriodSelect; drop Table PeriodSelect;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You will get a new dimension you can use instead of&amp;nbsp;zeitpunktverarbeitungYearMonth that will look better for the user:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jbhappysocks_2-1672909032964.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/97314iEF840CCEE205928A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jbhappysocks_2-1672909032964.png" alt="jbhappysocks_2-1672909032964.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 08:59:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-shorten-the-filter-content/m-p/2022095#M84379</guid>
      <dc:creator>jbhappysocks</dc:creator>
      <dc:date>2023-01-05T08:59:04Z</dc:date>
    </item>
  </channel>
</rss>

