<?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 How to set a default measure when Variable is blank? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-set-a-default-measure-when-Variable-is-blank/m-p/1393238#M32152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using thr QSVariable from Qlik Branch: &lt;A href="http://branch.qlik.com/#!/project/56728f52d1e497241ae697f8" title="http://branch.qlik.com/#!/project/56728f52d1e497241ae697f8"&gt;http://branch.qlik.com/#!/project/56728f52d1e497241ae697f8&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable is called vButton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two buttons based on the above variable:&lt;/P&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;P&gt;Orders&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following expression in Measure:&lt;/P&gt;&lt;P&gt;If($(vButton)='Sales',&lt;/P&gt;&lt;P&gt;Sum(Sales),&lt;/P&gt;&lt;P&gt;If($(vButton)='Orders',&lt;/P&gt;&lt;P&gt;Count(distinct OrderID)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I want to show Sum(Sales) when nothing is selected in the above buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the expression to work so that if the variable has nothing then it shows Sum(Sales) values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Nov 2017 15:20:12 GMT</pubDate>
    <dc:creator>mwallman</dc:creator>
    <dc:date>2017-11-01T15:20:12Z</dc:date>
    <item>
      <title>How to set a default measure when Variable is blank?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-set-a-default-measure-when-Variable-is-blank/m-p/1393238#M32152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using thr QSVariable from Qlik Branch: &lt;A href="http://branch.qlik.com/#!/project/56728f52d1e497241ae697f8" title="http://branch.qlik.com/#!/project/56728f52d1e497241ae697f8"&gt;http://branch.qlik.com/#!/project/56728f52d1e497241ae697f8&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable is called vButton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two buttons based on the above variable:&lt;/P&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;P&gt;Orders&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following expression in Measure:&lt;/P&gt;&lt;P&gt;If($(vButton)='Sales',&lt;/P&gt;&lt;P&gt;Sum(Sales),&lt;/P&gt;&lt;P&gt;If($(vButton)='Orders',&lt;/P&gt;&lt;P&gt;Count(distinct OrderID)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I want to show Sum(Sales) when nothing is selected in the above buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the expression to work so that if the variable has nothing then it shows Sum(Sales) values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2017 15:20:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-set-a-default-measure-when-Variable-is-blank/m-p/1393238#M32152</guid>
      <dc:creator>mwallman</dc:creator>
      <dc:date>2017-11-01T15:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a default measure when Variable is blank?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-set-a-default-measure-when-Variable-is-blank/m-p/1393239#M32153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change code to below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If($(vButton)='Orders',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(distinct OrderID),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2017 15:31:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-set-a-default-measure-when-Variable-is-blank/m-p/1393239#M32153</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2017-11-01T15:31:19Z</dc:date>
    </item>
  </channel>
</rss>

