<?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 Need select in Field action to a button. last 12 months in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Need-select-in-Field-action-to-a-button-last-12-months/m-p/1859024#M70911</link>
    <description>&lt;P&gt;in Qliksense,&amp;nbsp; last &lt;STRONG&gt;12 month&lt;/STRONG&gt; needs to be selected when we landed into any page from the Landing page.&lt;/P&gt;
&lt;P&gt;My landing page have Diff buttons to navigate to different pages, in the &lt;STRONG&gt;button&lt;/STRONG&gt; along with go to sheet action, am trying to add this action &lt;STRONG&gt;select in field&lt;/STRONG&gt; and using the Month field, but am not able to achieve it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have only Inflow Date and Inflow_Year_Month fields which is derived from Inflow_Month, using &lt;STRONG&gt;Inflow_Year_Month&lt;/STRONG&gt;&amp;nbsp; have to select last 12 months on landing, so that it will be clear to users that 12/56 are selected in current selection pane on landing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if we use Inflow_Date am getting like 326/1512 days...&lt;/P&gt;
&lt;P&gt;Infow_Date format is DD.MM.YYYY and Inflow_Year_Month format is YYYYMM.&lt;/P&gt;
&lt;P&gt;It would really helpful.. if any one provided the expression to use for this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks Much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 14 Nov 2021 10:19:25 GMT</pubDate>
    <dc:creator>dhasharadh</dc:creator>
    <dc:date>2021-11-14T10:19:25Z</dc:date>
    <item>
      <title>Need select in Field action to a button. last 12 months</title>
      <link>https://community.qlik.com/t5/App-Development/Need-select-in-Field-action-to-a-button-last-12-months/m-p/1859024#M70911</link>
      <description>&lt;P&gt;in Qliksense,&amp;nbsp; last &lt;STRONG&gt;12 month&lt;/STRONG&gt; needs to be selected when we landed into any page from the Landing page.&lt;/P&gt;
&lt;P&gt;My landing page have Diff buttons to navigate to different pages, in the &lt;STRONG&gt;button&lt;/STRONG&gt; along with go to sheet action, am trying to add this action &lt;STRONG&gt;select in field&lt;/STRONG&gt; and using the Month field, but am not able to achieve it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have only Inflow Date and Inflow_Year_Month fields which is derived from Inflow_Month, using &lt;STRONG&gt;Inflow_Year_Month&lt;/STRONG&gt;&amp;nbsp; have to select last 12 months on landing, so that it will be clear to users that 12/56 are selected in current selection pane on landing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if we use Inflow_Date am getting like 326/1512 days...&lt;/P&gt;
&lt;P&gt;Infow_Date format is DD.MM.YYYY and Inflow_Year_Month format is YYYYMM.&lt;/P&gt;
&lt;P&gt;It would really helpful.. if any one provided the expression to use for this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks Much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Nov 2021 10:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-select-in-Field-action-to-a-button-last-12-months/m-p/1859024#M70911</guid>
      <dc:creator>dhasharadh</dc:creator>
      <dc:date>2021-11-14T10:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need select in Field action to a button. last 12 months</title>
      <link>https://community.qlik.com/t5/App-Development/Need-select-in-Field-action-to-a-button-last-12-months/m-p/1859198#M70921</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe you can follow a different approach here. Instead of using &lt;SPAN style="color:#8e44ad"&gt;&lt;STRONG&gt;"Select values in a&amp;nbsp;field"&lt;/STRONG&gt;&lt;/SPAN&gt; action, you can use the &lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;"Select values matching search criteria"&lt;/STRONG&gt;&lt;/SPAN&gt;. This way you can use an expression like this:&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt; ='*/$(=Year(Today()))'&lt;/STRONG&gt;&lt;/SPAN&gt; where the dates in the dataset have the format:&lt;SPAN style="color:#f39c12"&gt;&lt;STRONG&gt; "MM/DD/YYYY"&lt;/STRONG&gt;&lt;/SPAN&gt;. This expression will select all the dates where the year is the one that we have currently!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you would like to select &lt;STRONG&gt;all the previous 12 months&lt;/STRONG&gt; then you can use the following expression for example:&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;&amp;nbsp;'&amp;gt;$(=&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;MonthStart&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;AddMonths&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#2980b9"&gt;&lt;STRONG&gt;Today&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color:#27ae60"&gt;&lt;STRONG&gt;(), -12)))'&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This expression will use the &lt;STRONG&gt;&lt;SPAN style="color:#2980b9"&gt;Today&lt;/SPAN&gt;() &lt;/STRONG&gt;function to get the current date and then it will use the&lt;STRONG&gt; &lt;SPAN style="color:#2980b9"&gt;AddMonths&lt;/SPAN&gt;()&lt;/STRONG&gt; function to subtract 12 months from the current date. Finally using the function &lt;STRONG&gt;&lt;SPAN style="color:#2980b9"&gt;MonthStart&lt;/SPAN&gt;()&lt;/STRONG&gt;, we can get the first day of the month so with the combination&amp;nbsp;&lt;STRONG&gt;"&amp;gt;"&lt;/STRONG&gt; in the expression it will select all the dates that are dated from 12 months before and after.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can modify the expression based on your needs and your dataset values, but you can also get the logic behind it and build on that for a more complex use case scenario!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;In my example this is the dataset that I have:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SCREENSHOT" src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/b1f5e3dd-027c-4fd1-a586-1ecf968f84b6.default.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;And with the expression&amp;nbsp;&amp;nbsp;&lt;SPAN style="color:#27ae60"&gt;'&amp;gt;$(=MonthStart(AddMonths(Today(), -12)))'&lt;/SPAN&gt; I get the following selected values:&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://lithium-response-prod.s3.us-west-2.amazonaws.com/qlik.response.lithium.com/RESPONSEIMAGE/b36a1e48-3afa-4f45-921e-e3977f1f29b8.default.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With minor modifications, you can get a much better result&amp;nbsp;if you like &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color:#7f8c8d"&gt;&lt;EM&gt;I hope that this information was helpful. In case the issue was resolved, please mark the answer as solution to give it more visibility for other community members. Otherwise, if I have misunderstood the use case scenario, please elaborated in details by providing additional information!&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 08:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-select-in-Field-action-to-a-button-last-12-months/m-p/1859198#M70921</guid>
      <dc:creator>Andrei_Cusnir</dc:creator>
      <dc:date>2021-11-15T08:48:09Z</dc:date>
    </item>
  </channel>
</rss>

