<?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 Set Default Selections in Alternate States When Opening Sheet in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Default-Selections-in-Alternate-States-When-Opening-Sheet/m-p/1963592#M79439</link>
    <description>&lt;P&gt;I have the Year-Month selection in two separate filter panes and set to P0 and P1 alternate states respectively.&lt;/P&gt;
&lt;P&gt;I am unable to find a way to set a default selection in the sheet properties actions upon sheet opening.&lt;/P&gt;
&lt;P&gt;The desired action would be to set P0:Year-Month to the previous month and P1:Year-Month to the current month in&lt;/P&gt;
&lt;P&gt;these alternate states panes when the sheet is open.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know how to set defaults, but not when you add&amp;nbsp;alternate states in the mix.&lt;/P&gt;
&lt;P&gt;See the example attached with a&amp;nbsp; bookmark created. What would be the converted expression to set the default selection actions in the sheet?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-08-02 122429.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85721iAB3B7FFE285D273D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-08-02 122429.png" alt="Screenshot 2022-08-02 122429.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Need this as the default selection upon opening the sheet:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-08-02 123048.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85722i9BE836AFF0F6BED2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-08-02 123048.png" alt="Screenshot 2022-08-02 123048.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2022 17:39:36 GMT</pubDate>
    <dc:creator>marcoyukon</dc:creator>
    <dc:date>2022-08-02T17:39:36Z</dc:date>
    <item>
      <title>Set Default Selections in Alternate States When Opening Sheet</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Default-Selections-in-Alternate-States-When-Opening-Sheet/m-p/1963592#M79439</link>
      <description>&lt;P&gt;I have the Year-Month selection in two separate filter panes and set to P0 and P1 alternate states respectively.&lt;/P&gt;
&lt;P&gt;I am unable to find a way to set a default selection in the sheet properties actions upon sheet opening.&lt;/P&gt;
&lt;P&gt;The desired action would be to set P0:Year-Month to the previous month and P1:Year-Month to the current month in&lt;/P&gt;
&lt;P&gt;these alternate states panes when the sheet is open.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know how to set defaults, but not when you add&amp;nbsp;alternate states in the mix.&lt;/P&gt;
&lt;P&gt;See the example attached with a&amp;nbsp; bookmark created. What would be the converted expression to set the default selection actions in the sheet?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-08-02 122429.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85721iAB3B7FFE285D273D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-08-02 122429.png" alt="Screenshot 2022-08-02 122429.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Need this as the default selection upon opening the sheet:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-08-02 123048.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85722i9BE836AFF0F6BED2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-08-02 123048.png" alt="Screenshot 2022-08-02 123048.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 17:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Default-Selections-in-Alternate-States-When-Opening-Sheet/m-p/1963592#M79439</guid>
      <dc:creator>marcoyukon</dc:creator>
      <dc:date>2022-08-02T17:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Default Selections in Alternate States When Opening Sheet</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Default-Selections-in-Alternate-States-When-Opening-Sheet/m-p/1963865#M79450</link>
      <description>&lt;P&gt;Hi, how I would do in this case: as there are 2 filters with separate alternate states, in one filter I would write&lt;/P&gt;
&lt;P&gt;{&amp;lt;Date(Date#([Year-Month],'YYYY-MM'))= {"=Date(Date#([Year-Month],'YYYY-MM'))=monthstart(today())"}&amp;gt;}&lt;/P&gt;
&lt;P&gt;to get current month and for previous month in another state/filter I would write&lt;/P&gt;
&lt;P&gt;{&amp;lt;Date(Date#([Year-Month],'YYYY-MM'))= {"=Date(Date#([Year-Month],'YYYY-MM'))=addmonths(monthstart(today()),-1)"}&amp;gt;}&lt;/P&gt;
&lt;P&gt;Now with these 2 dates in filters, separated by states I go and create new bookmark:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="justISO_0-1659515091703.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85798iF47A12B7C4928DF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="justISO_0-1659515091703.png" alt="justISO_0-1659515091703.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now, as I have dynamic dates bookmark, I in sheet properties go to Actions and add action 'Apply bookmark' and from bookmarks list select one needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 08:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Default-Selections-in-Alternate-States-When-Opening-Sheet/m-p/1963865#M79450</guid>
      <dc:creator>justISO</dc:creator>
      <dc:date>2022-08-03T08:26:18Z</dc:date>
    </item>
  </channel>
</rss>

