<?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: TY vs LY Triggers, alternate states and copy state contents in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/TY-vs-LY-Triggers-alternate-states-and-copy-state-contents/m-p/1112756#M367801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this for &lt;STRONG&gt;LYREV&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;TransactionDate = {"$(='&amp;gt;=' &amp;amp; Date(AddYears(Min(TransactionDate), -1)) &amp;amp; '&amp;lt;=' &amp;amp; Date(AddYears(Max(TransactionDate), -1)))"}&amp;gt;} LegFare) &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jun 2016 09:52:45 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-06-02T09:52:45Z</dc:date>
    <item>
      <title>TY vs LY Triggers, alternate states and copy state contents</title>
      <link>https://community.qlik.com/t5/QlikView/TY-vs-LY-Triggers-alternate-states-and-copy-state-contents/m-p/1112754#M367799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Was wondering if you had any idea on this problem.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;I have Ty v LY Revenue, the TY and LY figures needs to have a certain formula added to it to give "advance bookings".&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;This equation says take all of the departures from the start of the week with sales from today and before. For LY it takes this date range and figures out what this is in the Last year.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;I am using triggers in a button to do this, see "Apply changes" button.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Now this all works fine until I have selected some selections that generate revenue for the TY figure but there is no revenue for LY for these selections. When I hit the button "Apply changes" the Copy state contents trigger doesn't pass over all the selections. then because of this the LY figure is massively out compared to the TY figure. &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;I have added an example on the QVW that i sent you, where I chose DepartureName "Megkzfo-kjwb-Shhpg"&amp;nbsp; in TY selection but when i hit the "apply changes" button it doesn't copy over selections as this wasn't available last year so therefor gives huge number of 38,677.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Is there a way of getting around this with set analysis?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 08:39:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TY-vs-LY-Triggers-alternate-states-and-copy-state-contents/m-p/1112754#M367799</guid>
      <dc:creator />
      <dc:date>2016-06-02T08:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: TY vs LY Triggers, alternate states and copy state contents</title>
      <link>https://community.qlik.com/t5/QlikView/TY-vs-LY-Triggers-alternate-states-and-copy-state-contents/m-p/1112755#M367800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What would be the expected number for LY for these particular selections?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 09:47:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TY-vs-LY-Triggers-alternate-states-and-copy-state-contents/m-p/1112755#M367800</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-02T09:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: TY vs LY Triggers, alternate states and copy state contents</title>
      <link>https://community.qlik.com/t5/QlikView/TY-vs-LY-Triggers-alternate-states-and-copy-state-contents/m-p/1112756#M367801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this for &lt;STRONG&gt;LYREV&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;TransactionDate = {"$(='&amp;gt;=' &amp;amp; Date(AddYears(Min(TransactionDate), -1)) &amp;amp; '&amp;lt;=' &amp;amp; Date(AddYears(Max(TransactionDate), -1)))"}&amp;gt;} LegFare) &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 09:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TY-vs-LY-Triggers-alternate-states-and-copy-state-contents/m-p/1112756#M367801</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-02T09:52:45Z</dc:date>
    </item>
  </channel>
</rss>

