<?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: Hard Coded Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507135#M436357</link>
    <description>&lt;P&gt;It should work - at least if I use the following as dummy:&lt;/P&gt;&lt;P&gt;= alt(100 / GetSelectedCount(Application), 70)&lt;/P&gt;&lt;P&gt;it worked. Therefore check if you use the right field/variable or if there is any typo or something similar.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Thu, 15 Nov 2018 12:18:18 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2018-11-15T12:18:18Z</dc:date>
    <item>
      <title>Hard Coded Values</title>
      <link>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507077#M436352</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a variable called 'Company' of which is used as a Filter and this has two options - RI and NT each has there own values. So when I select the individual options, the charts change as expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However what I need is one variable 'FC_New' to show a hard coded value of 70 when the filter is &lt;EM&gt;&lt;STRONG&gt;not &lt;/STRONG&gt;&lt;/EM&gt;selected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my existing measure logic:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;CV_Year={$(=YEAR(TODAY()))},[Dash]={'Rate_On'}&amp;gt;}[Budget Value])&lt;/P&gt;&lt;P&gt;&amp;nbsp;I'm assuming I would need to create a new variable like below and call it say 'vRate'&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(getselectedcount([Company])=0,70,1))&lt;/P&gt;&lt;P&gt;and then my measure logic will look something like&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sum({$&amp;lt;CV_Year={$(=YEAR(TODAY()))},[Dash]={'Rate_On'}&amp;gt;}[Budget Value]) / $vRate&amp;nbsp; ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 11:11:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507077#M436352</guid>
      <dc:creator>SJ_16</dc:creator>
      <dc:date>2018-11-15T11:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Coded Values</title>
      <link>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507114#M436353</link>
      <description>&lt;P&gt;Looks good... but just make sure to use $(vRate) instead of $vRate&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 11:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507114#M436353</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-15T11:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Coded Values</title>
      <link>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507116#M436354</link>
      <description>&lt;P&gt;Thanks, I have tried that but doesn't work, it just adds the values together when the filter hasn't been selected rather than displaying 70&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 12:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507116#M436354</guid>
      <dc:creator>SJ_16</dc:creator>
      <dc:date>2018-11-15T12:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Coded Values</title>
      <link>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507119#M436355</link>
      <description>&lt;P&gt;Try it with:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;vRate&lt;/SPAN&gt;: if(getselectedcount([Company])=0,0,1))&lt;/P&gt;&lt;P&gt;and then:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;alt(sum({$&amp;lt;CV_Year={$(=YEAR(TODAY()))},[Dash]={'Rate_On'}&amp;gt;}[Budget Value]) / $(vRate), 70)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 12:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507119#M436355</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-11-15T12:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Coded Values</title>
      <link>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507126#M436356</link>
      <description>&lt;P&gt;Thanks for your suggestion Marcus. I have tried this but the values still seem to add up.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 12:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507126#M436356</guid>
      <dc:creator>SJ_16</dc:creator>
      <dc:date>2018-11-15T12:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Coded Values</title>
      <link>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507135#M436357</link>
      <description>&lt;P&gt;It should work - at least if I use the following as dummy:&lt;/P&gt;&lt;P&gt;= alt(100 / GetSelectedCount(Application), 70)&lt;/P&gt;&lt;P&gt;it worked. Therefore check if you use the right field/variable or if there is any typo or something similar.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 12:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507135#M436357</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-11-15T12:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Coded Values</title>
      <link>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507137#M436358</link>
      <description>Would you be able to share a sample where we can see the issue?</description>
      <pubDate>Thu, 15 Nov 2018 12:20:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507137#M436358</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-15T12:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Coded Values</title>
      <link>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507144#M436363</link>
      <description>What it looks like the logic is doing is hard coding a value of 70 to each individual Company.&lt;BR /&gt;&lt;BR /&gt;What I should see when selecting the filters are -&lt;BR /&gt;Company:&lt;BR /&gt;RI = 75&lt;BR /&gt;RT = 65&lt;BR /&gt;&lt;BR /&gt;When the company hasn't been selected I should see 70 (as the hardcoded value)&lt;BR /&gt;&lt;BR /&gt;What is happening with the logic used is this&lt;BR /&gt;RI = 70&lt;BR /&gt;RT = 70&lt;BR /&gt;No filter selected = 140</description>
      <pubDate>Thu, 15 Nov 2018 12:28:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507144#M436363</guid>
      <dc:creator>SJ_16</dc:creator>
      <dc:date>2018-11-15T12:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Coded Values</title>
      <link>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507150#M436365</link>
      <description>In your example, 75 and 65 are just Budget Values? Or what exactly are they?</description>
      <pubDate>Thu, 15 Nov 2018 12:31:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507150#M436365</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-15T12:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Coded Values</title>
      <link>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507153#M436366</link>
      <description>Yes, that's right</description>
      <pubDate>Thu, 15 Nov 2018 12:33:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507153#M436366</guid>
      <dc:creator>SJ_16</dc:creator>
      <dc:date>2018-11-15T12:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Hard Coded Values</title>
      <link>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507163#M436367</link>
      <description>&lt;P&gt;May be you need this&lt;/P&gt;&lt;PRE&gt;If(GetSelectedCount(Company) = 0, 70, Sum({$&amp;lt;CV_Year = {$(=Year(Today()))}, [Dash] = {'Rate_On'}&amp;gt;} [Budget Value]))&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Nov 2018 12:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hard-Coded-Values/m-p/1507163#M436367</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-15T12:39:48Z</dc:date>
    </item>
  </channel>
</rss>

