<?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: Condiitional Measure Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Condiitional-Measure-Expression/m-p/1743754#M453108</link>
    <description>&lt;P&gt;you can surely create a variable for the expression that changes based on the selected field.&amp;nbsp; however, it may be difficult to maintain.&lt;BR /&gt;&lt;BR /&gt;if this is a chart, i suggest you create two expressions set the condition for each expression with your two criteria:&lt;BR /&gt;&lt;BR /&gt;=only(archive_status)='Archive'&lt;BR /&gt;or&lt;BR /&gt;=if(getselectedcount(archive_status)=0 or only(archive_status)='Current' ,1,0)&amp;nbsp; and maybe add a default Current&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Sep 2020 21:13:23 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2020-09-14T21:13:23Z</dc:date>
    <item>
      <title>Condiitional Measure Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Condiitional-Measure-Expression/m-p/1741592#M452978</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Can any one please help me with the below requirement??&lt;/P&gt;&lt;P&gt;I have a report where I need to show archive data and current data for forecast data. But for Actual data it is just the current only.&lt;/P&gt;&lt;P&gt;My data model has a field called Archive_Status=Current/Archive. Actual data is always Current. Forecast one set is current and the other set is Archive. All in same table.&lt;/P&gt;&lt;P&gt;In the report, I have added a list box Archive_Status. There is also a list box called MonthYr&amp;nbsp; (YYYY-MMM). There are other list boxes as well. So that the MonthYr&amp;nbsp; selection does not impact the other list boxes the MonthYr&amp;nbsp; is in a different state(StateA)&lt;/P&gt;&lt;P&gt;Now my requirement is when I select Current, from Archive_Status list box&lt;/P&gt;&lt;P&gt;the measure called TRC should show sum of all the available data(total sum).&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I select archive from the list box the same measure (TRC) should show only data for the selected date in the MonthYr&amp;nbsp; column.&lt;/P&gt;&lt;P&gt;The current measure I have is something like below for TRC.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TRC&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;&lt;BR /&gt;[Cost Status]={'TRC'},&lt;BR /&gt;Master.MonthYr =,&lt;BR /&gt;Master.Date =,&lt;BR /&gt;[Expenditure Type]=&lt;BR /&gt;&amp;gt;}[Amount])&lt;/P&gt;&lt;P&gt;ACT:( I need to show data &amp;lt;= selected date in the MonthYr list box)&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;&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me to write the TRC measure based on the archive status and date.?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ankhi&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:01:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condiitional-Measure-Expression/m-p/1741592#M452978</guid>
      <dc:creator>Ankhi</dc:creator>
      <dc:date>2024-11-16T00:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Condiitional Measure Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Condiitional-Measure-Expression/m-p/1743754#M453108</link>
      <description>&lt;P&gt;you can surely create a variable for the expression that changes based on the selected field.&amp;nbsp; however, it may be difficult to maintain.&lt;BR /&gt;&lt;BR /&gt;if this is a chart, i suggest you create two expressions set the condition for each expression with your two criteria:&lt;BR /&gt;&lt;BR /&gt;=only(archive_status)='Archive'&lt;BR /&gt;or&lt;BR /&gt;=if(getselectedcount(archive_status)=0 or only(archive_status)='Current' ,1,0)&amp;nbsp; and maybe add a default Current&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 21:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condiitional-Measure-Expression/m-p/1743754#M453108</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-09-14T21:13:23Z</dc:date>
    </item>
  </channel>
</rss>

