<?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: Alternate State Expression Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Alternate-State-Expression-Help/m-p/1741963#M721320</link>
    <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Thanks again. The first expression again gives the same as with e. That is only on selection of Expenditure_Category, it shows data else 0. 2nd expression says 'Error in Expression'. Expression used is below&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;&lt;BR /&gt;[Cost Status]={'ACT'},&lt;BR /&gt;Master.MonthYr =,&lt;BR /&gt;[Archive Status]=,&lt;BR /&gt;Master.Date = {"&amp;lt;=$(=max({StateA}Master.Date))"},&lt;BR /&gt;[Expenditure Type]-=p({&amp;lt;[Expenditure Type] = [Alt]::[Expenditure Type]&amp;gt;})&lt;BR /&gt;//[Expenditure Type]={'*'}-{'$(=GetFieldSelections([Expenditure Type], ',', 100, 'Alt'))'}&lt;BR /&gt;&amp;gt;}Amount)&lt;/P&gt;</description>
    <pubDate>Tue, 08 Sep 2020 13:34:39 GMT</pubDate>
    <dc:creator>Ankhi</dc:creator>
    <dc:date>2020-09-08T13:34:39Z</dc:date>
    <item>
      <title>Alternate State Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-State-Expression-Help/m-p/1741925#M721315</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Can you please help me in correcting the below expression. The Expenditure Type is in a different state in my report . State A. How to rewrite the below with Expenditure Type in State A.&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;&lt;BR /&gt;[Cost Status]={'ACT'},&lt;BR /&gt;[Expenditure Type]={'*'}-{'$(=GetFieldSelections([Expenditure Type]))'}&lt;BR /&gt;&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ankhi&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:00:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-State-Expression-Help/m-p/1741925#M721315</guid>
      <dc:creator>Ankhi</dc:creator>
      <dc:date>2024-11-16T00:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate State Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-State-Expression-Help/m-p/1741936#M721316</link>
      <description>&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, you want to exclude which ever Expenditure Type is selected in the alternate state? May be try this&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Sum({&amp;lt;[Cost Status] = {'ACT'}, [Expenditure Type] = e({&amp;lt;[Expenditure Type] = [State A]::[Expenditure Type]&amp;gt;})&amp;gt;} Amount)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 08 Sep 2020 12:45:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-State-Expression-Help/m-p/1741936#M721316</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-08T12:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate State Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-State-Expression-Help/m-p/1741937#M721317</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/114262"&gt;@Ankhi&lt;/a&gt;&amp;nbsp;or this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Sum({&amp;lt;[Cost Status] = {'ACT'}, [Expenditure Type] = e({&amp;lt;[Cost Status] = {'ACT'}, [Expenditure Type] = [State A]::[Expenditure Type]&amp;gt;})&amp;gt;} Amount)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 08 Sep 2020 12:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-State-Expression-Help/m-p/1741937#M721317</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-08T12:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate State Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-State-Expression-Help/m-p/1741949#M721318</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Thanks for the reply. There is only one value in the list Box [Expenditure Type]. The expression that I have used to create the list box is below . So it only shows 'Non-Specific Accruals'&lt;/P&gt;&lt;P&gt;=If([Expenditure Type]='Non-Specific Accruals',[Expenditure Type]).&lt;/P&gt;&lt;P&gt;Now in the measure I want to show sum of all Expenditure Types except 'Non-Specific Accruals' when I select 'Non Specific Accruals' in Expenditure Type&lt;/P&gt;&lt;P&gt;So I used..&lt;/P&gt;&lt;P&gt;[Expenditure Type]={'*'}-{'$(=GetFieldSelections([Expenditure Type]))'} and it was giving me correct output.&lt;/P&gt;&lt;P&gt;The only thing now changed is I have to put the Expenditure Type in a diff State.&amp;nbsp; I tried your expression.&lt;/P&gt;&lt;P&gt;But only shows output when I select the value from Expenditure Type otherwise shows 0.&lt;/P&gt;&lt;P&gt;Full expression below:&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;&lt;BR /&gt;[Cost Status]={'ACT'},&lt;BR /&gt;Master.MonthYr =,&lt;BR /&gt;[Archive Status]=,&lt;BR /&gt;Master.Date = {"&amp;lt;=$(=max({StateA}Master.Date))"},&lt;BR /&gt;//[Expenditure Type]={'*'}-{'$(=GetFieldSelections([Expenditure Type]))'}&lt;BR /&gt;[Expenditure Type]= e({&amp;lt;[Expenditure Type] = [Alt]::[Expenditure Type]&amp;gt;})&lt;BR /&gt;&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;Hope I have been able to make my req clear.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ankhi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 13:11:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-State-Expression-Help/m-p/1741949#M721318</guid>
      <dc:creator>Ankhi</dc:creator>
      <dc:date>2020-09-08T13:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate State Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-State-Expression-Help/m-p/1741959#M721319</link>
      <description>&lt;P&gt;How about this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Sum({&amp;lt;
[Cost Status]={'ACT'},
Master.MonthYr =,
[Archive Status]=,
Master.Date = {"&amp;lt;=$(=max({StateA}Master.Date))"},
[Expenditure Type] -= p({&amp;lt;[Expenditure Type] = [Alt]::[Expenditure Type]&amp;gt;})
&amp;gt;}Amount)&lt;/LI-CODE&gt;&lt;P&gt;or you can try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Sum({&amp;lt;
[Cost Status]={'ACT'},
Master.MonthYr =,
[Archive Status]=,
Master.Date = {"&amp;lt;=$(=max({StateA}Master.Date))"},
[Expenditure Type]={'*'}-{'$(=GetFieldSelections([Expenditure Type], ',', 100, 'Alt'))'}
&amp;gt;}Amount)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 08 Sep 2020 13:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-State-Expression-Help/m-p/1741959#M721319</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-08T13:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate State Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-State-Expression-Help/m-p/1741963#M721320</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Thanks again. The first expression again gives the same as with e. That is only on selection of Expenditure_Category, it shows data else 0. 2nd expression says 'Error in Expression'. Expression used is below&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;&lt;BR /&gt;[Cost Status]={'ACT'},&lt;BR /&gt;Master.MonthYr =,&lt;BR /&gt;[Archive Status]=,&lt;BR /&gt;Master.Date = {"&amp;lt;=$(=max({StateA}Master.Date))"},&lt;BR /&gt;[Expenditure Type]-=p({&amp;lt;[Expenditure Type] = [Alt]::[Expenditure Type]&amp;gt;})&lt;BR /&gt;//[Expenditure Type]={'*'}-{'$(=GetFieldSelections([Expenditure Type], ',', 100, 'Alt'))'}&lt;BR /&gt;&amp;gt;}Amount)&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 13:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-State-Expression-Help/m-p/1741963#M721320</guid>
      <dc:creator>Ankhi</dc:creator>
      <dc:date>2020-09-08T13:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate State Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-State-Expression-Help/m-p/1741974#M721321</link>
      <description>&lt;P&gt;Sorry, my bad, try this for second expression&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Sum({&amp;lt;
[Cost Status]={'ACT'},
Master.MonthYr =,
[Archive Status]=,
Master.Date = {"&amp;lt;=$(=max({StateA}Master.Date))"},
[Expenditure Type]={'*'}-{"$(=GetFieldSelections([Expenditure Type], ',', 100, 'Alt'))"}
&amp;gt;}Amount)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 08 Sep 2020 13:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-State-Expression-Help/m-p/1741974#M721321</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-08T13:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate State Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-State-Expression-Help/m-p/1741995#M721322</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;This works. Thank you so much again.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ankhi&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 14:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-State-Expression-Help/m-p/1741995#M721322</guid>
      <dc:creator>Ankhi</dc:creator>
      <dc:date>2020-09-08T14:07:01Z</dc:date>
    </item>
  </channel>
</rss>

