<?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 IF statement for Alternate State in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-statement-for-Alternate-State/m-p/708200#M1084290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello QV genius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you make an IF STATEMENT for alternate states?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(alternate_state=test, sum(field), if(alternate_state=test2, sum(field)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible? Because I want my pie chart to calculate only one expression but based on what alternate state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jun 2014 06:21:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-19T06:21:52Z</dc:date>
    <item>
      <title>IF statement for Alternate State</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-for-Alternate-State/m-p/708200#M1084290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello QV genius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you make an IF STATEMENT for alternate states?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(alternate_state=test, sum(field), if(alternate_state=test2, sum(field)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible? Because I want my pie chart to calculate only one expression but based on what alternate state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 06:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-for-Alternate-State/m-p/708200#M1084290</guid>
      <dc:creator />
      <dc:date>2014-06-19T06:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement for Alternate State</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-for-Alternate-State/m-p/708201#M1084291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternative state is simply the set of selections in fields. If there are two alternative states they are both exist all the time containing different sets of selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you describe the issue in detail or add a sample ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 06:27:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-for-Alternate-State/m-p/708201#M1084291</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-06-19T06:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement for Alternate State</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-for-Alternate-State/m-p/708202#M1084292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;i think this should work &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If(alternate_state=test, sum(field), if(alternate_state=test2, sum(field)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or if&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;test&lt;/SPAN&gt; and test2 are data then you could&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If(alternate_state='test', sum(field), if(alternate_state='test2', sum(field)))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 06:32:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-for-Alternate-State/m-p/708202#M1084292</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2014-06-19T06:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement for Alternate State</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-for-Alternate-State/m-p/708203#M1084293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a pie chart with one expression: sum(total)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I have 2 Straight tables(table1 and table2) both in different state: State1 and State2 respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want that if I select table1, the pie chart will calculate the sum. And if I choose table2 , it will do the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to do comparative analysis since I am using pie chart. I just want the pie chart to update on which state it is being calculated. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 06:38:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-for-Alternate-State/m-p/708203#M1084293</guid>
      <dc:creator />
      <dc:date>2014-06-19T06:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement for Alternate State</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-for-Alternate-State/m-p/708204#M1084294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the syntax for getting the alternate states? That's what I want &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 06:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-for-Alternate-State/m-p/708204#M1084294</guid>
      <dc:creator />
      <dc:date>2014-06-19T06:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement for Alternate State</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-for-Alternate-State/m-p/708205#M1084295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read: &lt;A href="http://community.qlikview.com/message/209604#209604" title="http://community.qlikview.com/message/209604#209604"&gt;Is possible to use alternate States with set an... | Qlik Community&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 06:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-for-Alternate-State/m-p/708205#M1084295</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-19T06:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement for Alternate State</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-for-Alternate-State/m-p/708206#M1084296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can find about alternate state in the Reference Manual.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 07:06:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-for-Alternate-State/m-p/708206#M1084296</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-06-19T07:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement for Alternate State</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-for-Alternate-State/m-p/708207#M1084297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem here is your statement "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I want that if I select table1...&lt;/SPAN&gt;". You can't "select" a table. Do you mean click this table and make it the active object? There used to be an OnActivate Object trigger you could have used for this purpose. but it was removed in QV11. So you may have to use a button or listbox as the control for letting the user select which State the Pie Chart should reflect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 07:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-for-Alternate-State/m-p/708207#M1084297</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-06-19T07:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement for Alternate State</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-for-Alternate-State/m-p/708208#M1084298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can go even further. It depends on the problem that you're trying to help to solve for the user.&lt;/P&gt;&lt;P&gt;For example, place the transparent text objects on top of the straight tables and use the actions to treigger the variable. Then you can use the variable to trigger the expression in pie chart and to make some visual accents like object color to visualize the selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 07:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-for-Alternate-State/m-p/708208#M1084298</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-06-19T07:24:07Z</dc:date>
    </item>
  </channel>
</rss>

