<?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 Variables and Flags in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Variables-and-Flags/m-p/1334559#M29209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to exclude some types of my calculated measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I need to define a flag. My approach was to define a variable in the UI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vFlag:&lt;/STRONG&gt; if( TYPE='A', 1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I created a master element Using this Formula (and lots of variations):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mRevenue:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Sum(If(($(&lt;STRONG&gt;vFlag&lt;/STRONG&gt;),REVENUE,0)))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum(If(($(&lt;STRONG&gt;vFlag&lt;/STRONG&gt;)=1,REVENUE,0)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no syntax error. No results. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's wrong here ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what are your experiences with the handling of measures in the UI ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Apr 2017 14:47:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-04-18T14:47:23Z</dc:date>
    <item>
      <title>Variables and Flags</title>
      <link>https://community.qlik.com/t5/App-Development/Variables-and-Flags/m-p/1334559#M29209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to exclude some types of my calculated measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I need to define a flag. My approach was to define a variable in the UI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vFlag:&lt;/STRONG&gt; if( TYPE='A', 1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I created a master element Using this Formula (and lots of variations):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mRevenue:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Sum(If(($(&lt;STRONG&gt;vFlag&lt;/STRONG&gt;),REVENUE,0)))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum(If(($(&lt;STRONG&gt;vFlag&lt;/STRONG&gt;)=1,REVENUE,0)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no syntax error. No results. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's wrong here ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what are your experiences with the handling of measures in the UI ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2017 14:47:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Variables-and-Flags/m-p/1334559#M29209</guid>
      <dc:creator />
      <dc:date>2017-04-18T14:47:23Z</dc:date>
    </item>
  </channel>
</rss>

