<?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 Button Object with calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Button-Object-with-calculation/m-p/1066011#M643535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a button object but it's not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Action - Select in Field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field&lt;/P&gt;&lt;P&gt;=Inventory/Weekly_Demand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search String&lt;/P&gt;&lt;P&gt;&amp;lt;1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I want divide my inventory quantity by weekly demand to see how many weeks of inventory I have and want the button to show the items where my inventory is less than 1 week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestion will be highly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;MT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Feb 2016 15:59:19 GMT</pubDate>
    <dc:creator>london1980</dc:creator>
    <dc:date>2016-02-07T15:59:19Z</dc:date>
    <item>
      <title>Button Object with calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Button-Object-with-calculation/m-p/1066011#M643535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a button object but it's not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Action - Select in Field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field&lt;/P&gt;&lt;P&gt;=Inventory/Weekly_Demand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search String&lt;/P&gt;&lt;P&gt;&amp;lt;1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I want divide my inventory quantity by weekly demand to see how many weeks of inventory I have and want the button to show the items where my inventory is less than 1 week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestion will be highly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;MT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Feb 2016 15:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-Object-with-calculation/m-p/1066011#M643535</guid>
      <dc:creator>london1980</dc:creator>
      <dc:date>2016-02-07T15:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Button Object with calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Button-Object-with-calculation/m-p/1066012#M643536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the field, just use the fieldname, without the leading equal sign:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;Inventory/Weekly_Demand&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: I've missed that this is not a field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to make a selection in field &lt;EM&gt;Item &lt;/EM&gt;(or whatever this field is named, you can only use field names for a select in field action)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and as expression something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='=Sum(Inventory) / [Weeekly Demand] &amp;lt;1'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Feb 2016 17:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-Object-with-calculation/m-p/1066012#M643536</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-07T17:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Button Object with calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Button-Object-with-calculation/m-p/1066013#M643537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so in Button &amp;gt; Actions &amp;gt; Select in Field i put this formula&amp;nbsp;&amp;nbsp;&amp;nbsp; ='=Sum(Inventory) / [Weekly Demand] &amp;lt;1'&amp;nbsp;&amp;nbsp;&amp;nbsp; under Field and left Search String blank, didn't work. Is that what you meant?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Feb 2016 17:35:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-Object-with-calculation/m-p/1066013#M643537</guid>
      <dc:creator>london1980</dc:creator>
      <dc:date>2016-02-20T17:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Button Object with calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Button-Object-with-calculation/m-p/1066014#M643538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, you can only use fields to make selections in. So you need to put a field name (without any leading equal sign, just the field name) under Field in the action dialog. I don't know the name of that field, but since you want to filter items, put the field name corresponding to items there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use&lt;/P&gt;&lt;P&gt;='=Sum(Inventory) / [Weeekly Demand] &amp;lt;1' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as search string. This should work if sum(Inventory) as well as [Weekly Demand] return values per item.&lt;/P&gt;&lt;P&gt;In other words:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to be able to create a chart with dimension Item (or whatever your field is called) and an expression&lt;/P&gt;&lt;P&gt;=Sum(Inventory) / [Weeekly Demand]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this expression should return number of weeks you can work with inventory at hand per Item value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Feb 2016 23:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-Object-with-calculation/m-p/1066014#M643538</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-20T23:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Button Object with calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Button-Object-with-calculation/m-p/1066015#M643539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I got it, many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Feb 2016 00:28:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Button-Object-with-calculation/m-p/1066015#M643539</guid>
      <dc:creator>london1980</dc:creator>
      <dc:date>2016-02-21T00:28:58Z</dc:date>
    </item>
  </channel>
</rss>

