<?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 Time periods and alternate states in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Time-periods-and-alternate-states/m-p/1564995#M41143</link>
    <description>&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;I have a calculation that aggregates numbers in a filed and allows selection between MTD, YTD, WTD and Custom Periods. I need to use it with Alternate States as well. I've tried this:&lt;/P&gt;&lt;P&gt;(the field is called GGR)&lt;/P&gt;&lt;P&gt;Pick($(vPeriodPicker)&lt;BR /&gt;//MTD&lt;BR /&gt;,Sum({[State A]&amp;lt;Year=&amp;nbsp;&lt;BR /&gt;,Month=&amp;nbsp;&lt;BR /&gt;,Day=&amp;nbsp;&lt;BR /&gt;,Week=&amp;nbsp;&lt;BR /&gt;,[Week day] =&amp;nbsp;&lt;BR /&gt;,Date={"&amp;gt;=$(=MonthStart(vMaxDate))&amp;lt;=$(vMaxDate)"}&amp;gt;}&lt;BR /&gt;GGR)&lt;BR /&gt;//YTD&lt;BR /&gt;,Sum({[State A]&amp;lt;Year=&amp;nbsp;&lt;BR /&gt;,Month=&lt;BR /&gt;,Day=&amp;nbsp;&lt;BR /&gt;,Week=&amp;nbsp;&lt;BR /&gt;,[Week day] =&amp;nbsp;&lt;BR /&gt;,Date={"&amp;gt;=$(=YearStart(vMaxDate))&amp;lt;=$(vMaxDate)"}&amp;gt;}&lt;BR /&gt;GGR)&amp;nbsp;&lt;BR /&gt;//Custom&lt;BR /&gt;,Sum({[State A]&amp;lt;Year=&amp;nbsp;&lt;BR /&gt;,Month=&amp;nbsp;&lt;BR /&gt;,Day=&amp;nbsp;&lt;BR /&gt;,Week=&amp;nbsp;&lt;BR /&gt;,[Week day] =&amp;nbsp;&lt;BR /&gt;,Date={"&amp;gt;=$(vMinDate)&amp;lt;=$(vMaxDate)"}&amp;gt;}&lt;BR /&gt;GGR)&amp;nbsp;&lt;BR /&gt;//WTD&lt;BR /&gt;,Sum({[State A]&amp;lt;Year=&amp;nbsp;&lt;BR /&gt;,Month=&amp;nbsp;&lt;BR /&gt;,Day=&amp;nbsp;&lt;BR /&gt;,Week=&amp;nbsp;&lt;BR /&gt;,[Week day] =&amp;nbsp;&lt;BR /&gt;,Date={"&amp;gt;=$(=WeekStart(vMaxDate))&amp;lt;=$(vMaxDate)"}&amp;gt;}&lt;BR /&gt;GGR)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;(the same calculation exist for State B)&lt;/P&gt;&lt;P&gt;the calculation works for every other selection i do (selecting between regions, products, etc.) except when selecting different time periods. I'll appreciate any help or guidance&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Ettiene&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2019 08:39:56 GMT</pubDate>
    <dc:creator>ettienero</dc:creator>
    <dc:date>2019-04-04T08:39:56Z</dc:date>
    <item>
      <title>Time periods and alternate states</title>
      <link>https://community.qlik.com/t5/App-Development/Time-periods-and-alternate-states/m-p/1564995#M41143</link>
      <description>&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;I have a calculation that aggregates numbers in a filed and allows selection between MTD, YTD, WTD and Custom Periods. I need to use it with Alternate States as well. I've tried this:&lt;/P&gt;&lt;P&gt;(the field is called GGR)&lt;/P&gt;&lt;P&gt;Pick($(vPeriodPicker)&lt;BR /&gt;//MTD&lt;BR /&gt;,Sum({[State A]&amp;lt;Year=&amp;nbsp;&lt;BR /&gt;,Month=&amp;nbsp;&lt;BR /&gt;,Day=&amp;nbsp;&lt;BR /&gt;,Week=&amp;nbsp;&lt;BR /&gt;,[Week day] =&amp;nbsp;&lt;BR /&gt;,Date={"&amp;gt;=$(=MonthStart(vMaxDate))&amp;lt;=$(vMaxDate)"}&amp;gt;}&lt;BR /&gt;GGR)&lt;BR /&gt;//YTD&lt;BR /&gt;,Sum({[State A]&amp;lt;Year=&amp;nbsp;&lt;BR /&gt;,Month=&lt;BR /&gt;,Day=&amp;nbsp;&lt;BR /&gt;,Week=&amp;nbsp;&lt;BR /&gt;,[Week day] =&amp;nbsp;&lt;BR /&gt;,Date={"&amp;gt;=$(=YearStart(vMaxDate))&amp;lt;=$(vMaxDate)"}&amp;gt;}&lt;BR /&gt;GGR)&amp;nbsp;&lt;BR /&gt;//Custom&lt;BR /&gt;,Sum({[State A]&amp;lt;Year=&amp;nbsp;&lt;BR /&gt;,Month=&amp;nbsp;&lt;BR /&gt;,Day=&amp;nbsp;&lt;BR /&gt;,Week=&amp;nbsp;&lt;BR /&gt;,[Week day] =&amp;nbsp;&lt;BR /&gt;,Date={"&amp;gt;=$(vMinDate)&amp;lt;=$(vMaxDate)"}&amp;gt;}&lt;BR /&gt;GGR)&amp;nbsp;&lt;BR /&gt;//WTD&lt;BR /&gt;,Sum({[State A]&amp;lt;Year=&amp;nbsp;&lt;BR /&gt;,Month=&amp;nbsp;&lt;BR /&gt;,Day=&amp;nbsp;&lt;BR /&gt;,Week=&amp;nbsp;&lt;BR /&gt;,[Week day] =&amp;nbsp;&lt;BR /&gt;,Date={"&amp;gt;=$(=WeekStart(vMaxDate))&amp;lt;=$(vMaxDate)"}&amp;gt;}&lt;BR /&gt;GGR)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;(the same calculation exist for State B)&lt;/P&gt;&lt;P&gt;the calculation works for every other selection i do (selecting between regions, products, etc.) except when selecting different time periods. I'll appreciate any help or guidance&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Ettiene&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 08:39:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-periods-and-alternate-states/m-p/1564995#M41143</guid>
      <dc:creator>ettienero</dc:creator>
      <dc:date>2019-04-04T08:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Time periods and alternate states</title>
      <link>https://community.qlik.com/t5/App-Development/Time-periods-and-alternate-states/m-p/1565175#M41159</link>
      <description>&lt;P&gt;Which state do you have your variables in (&lt;SPAN&gt;vMaxDate and vMinDate)? Are those stored as Max({[StateA]} Date) or Max(Date)? If it is not stored as&amp;nbsp;Max({[StateA]} Date)... it will probably be driven based on selection in inherited state&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 12:53:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-periods-and-alternate-states/m-p/1565175#M41159</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-04T12:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Time periods and alternate states</title>
      <link>https://community.qlik.com/t5/App-Development/Time-periods-and-alternate-states/m-p/1577281#M42060</link>
      <description>&lt;P&gt;Thank you, that was the problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 10:20:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-periods-and-alternate-states/m-p/1577281#M42060</guid>
      <dc:creator>ettienero</dc:creator>
      <dc:date>2019-05-07T10:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Time periods and alternate states</title>
      <link>https://community.qlik.com/t5/App-Development/Time-periods-and-alternate-states/m-p/1577304#M42061</link>
      <description>&lt;P&gt;So is this resolved now? or are you still seeking help?&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 10:58:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-periods-and-alternate-states/m-p/1577304#M42061</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-07T10:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Time periods and alternate states</title>
      <link>https://community.qlik.com/t5/App-Development/Time-periods-and-alternate-states/m-p/1577368#M42063</link>
      <description>It is resolved, thank you&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 May 2019 12:02:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-periods-and-alternate-states/m-p/1577368#M42063</guid>
      <dc:creator>ettienero</dc:creator>
      <dc:date>2019-05-07T12:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Time periods and alternate states</title>
      <link>https://community.qlik.com/t5/App-Development/Time-periods-and-alternate-states/m-p/1577374#M42065</link>
      <description>&lt;P&gt;Awesome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 12:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Time-periods-and-alternate-states/m-p/1577374#M42065</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-07T12:08:20Z</dc:date>
    </item>
  </channel>
</rss>

