<?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 Actions and Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Button-Actions-and-Set-Analysis/m-p/1707295#M63903</link>
    <description>&lt;P&gt;I'm kinda hoping Sunny finds this and has an answer.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Our business sells a sample to a customer.&amp;nbsp; Then the store makes sales based on that sample.&amp;nbsp; We want to know if they bought a sample but then made no sales.&amp;nbsp; So, in the calculation below if the Numerator is NULL or Zero&amp;nbsp;&lt;U&gt;AND&lt;/U&gt; the Denominator is 1 or more, we want to see those sales.&lt;/P&gt;&lt;P&gt;We did the calculation with Set Analysis.&amp;nbsp; It is not in the load script because it would add a different level of granularity to the table that we don't want.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't see how to translate this in to a button action to select those items for the user.&amp;nbsp; They want a button (not a bookmark).&amp;nbsp; &amp;nbsp;I've tried Button Actions.&amp;nbsp; Select a value in a field, define field by expression and put in the calculation below and the Value as 0.00.&amp;nbsp; But it does nothing at all.&amp;nbsp; I've tried writing it all as an if statement, but that doesn't seem to do anything else.&amp;nbsp; I don't think I understand this object where you 'define field by expression' or set analysis doesn't work there.&lt;/P&gt;&lt;P&gt;Suggestions?&lt;/P&gt;&lt;P&gt;Thanks everyone in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;&lt;BR /&gt;[%SO_PRODUCT_TYPE]={'DRESS'},&lt;BR /&gt;PRODUCT_LABEL_FLAG={'1'},&lt;BR /&gt;//[SO HDR PROGRAM CODE]-={'PREVIEW'},&lt;BR /&gt;SO_HDR_TRANSACTION_ORDER_INVOICE={'SALES ORDER'},&lt;BR /&gt;SO_HDR_SALES_SAMPLE_ONLY={'SALES'},&lt;BR /&gt;[SO HDR CUSTOMER ORDER DATE] ={"&amp;gt;=$(vMinCurrentDateSelectionAdj)&amp;lt;=$(vMaxCurrentDateSelectionAdj)"}&amp;gt;}&lt;BR /&gt;[SO LN ORIGINAL QTY ADJ])&lt;BR /&gt;/&lt;BR /&gt;Sum({$&amp;lt;&lt;BR /&gt;[%SO_PRODUCT_TYPE]={'DRESS'},&lt;BR /&gt;PRODUCT_LABEL_FLAG={'1'},&lt;BR /&gt;SO_HDR_TRANSACTION_ORDER_INVOICE={'SALES INVOICE'},&lt;BR /&gt;SO_HDR_SALES_SAMPLE_ONLY={'SAMPLE'},&lt;BR /&gt;[SO HDR CUSTOMER ORDER DATE] ={"&amp;gt;=$(vMinCurrentDateSelectionAdj)&amp;lt;=$(vMaxCurrentDateSelectionAdj)"}&amp;gt;}&lt;BR /&gt;[SO LN ORIGINAL QTY ADJ])&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:33:34 GMT</pubDate>
    <dc:creator>crichter14</dc:creator>
    <dc:date>2024-11-16T18:33:34Z</dc:date>
    <item>
      <title>Button Actions and Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Button-Actions-and-Set-Analysis/m-p/1707295#M63903</link>
      <description>&lt;P&gt;I'm kinda hoping Sunny finds this and has an answer.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Our business sells a sample to a customer.&amp;nbsp; Then the store makes sales based on that sample.&amp;nbsp; We want to know if they bought a sample but then made no sales.&amp;nbsp; So, in the calculation below if the Numerator is NULL or Zero&amp;nbsp;&lt;U&gt;AND&lt;/U&gt; the Denominator is 1 or more, we want to see those sales.&lt;/P&gt;&lt;P&gt;We did the calculation with Set Analysis.&amp;nbsp; It is not in the load script because it would add a different level of granularity to the table that we don't want.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't see how to translate this in to a button action to select those items for the user.&amp;nbsp; They want a button (not a bookmark).&amp;nbsp; &amp;nbsp;I've tried Button Actions.&amp;nbsp; Select a value in a field, define field by expression and put in the calculation below and the Value as 0.00.&amp;nbsp; But it does nothing at all.&amp;nbsp; I've tried writing it all as an if statement, but that doesn't seem to do anything else.&amp;nbsp; I don't think I understand this object where you 'define field by expression' or set analysis doesn't work there.&lt;/P&gt;&lt;P&gt;Suggestions?&lt;/P&gt;&lt;P&gt;Thanks everyone in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;&lt;BR /&gt;[%SO_PRODUCT_TYPE]={'DRESS'},&lt;BR /&gt;PRODUCT_LABEL_FLAG={'1'},&lt;BR /&gt;//[SO HDR PROGRAM CODE]-={'PREVIEW'},&lt;BR /&gt;SO_HDR_TRANSACTION_ORDER_INVOICE={'SALES ORDER'},&lt;BR /&gt;SO_HDR_SALES_SAMPLE_ONLY={'SALES'},&lt;BR /&gt;[SO HDR CUSTOMER ORDER DATE] ={"&amp;gt;=$(vMinCurrentDateSelectionAdj)&amp;lt;=$(vMaxCurrentDateSelectionAdj)"}&amp;gt;}&lt;BR /&gt;[SO LN ORIGINAL QTY ADJ])&lt;BR /&gt;/&lt;BR /&gt;Sum({$&amp;lt;&lt;BR /&gt;[%SO_PRODUCT_TYPE]={'DRESS'},&lt;BR /&gt;PRODUCT_LABEL_FLAG={'1'},&lt;BR /&gt;SO_HDR_TRANSACTION_ORDER_INVOICE={'SALES INVOICE'},&lt;BR /&gt;SO_HDR_SALES_SAMPLE_ONLY={'SAMPLE'},&lt;BR /&gt;[SO HDR CUSTOMER ORDER DATE] ={"&amp;gt;=$(vMinCurrentDateSelectionAdj)&amp;lt;=$(vMaxCurrentDateSelectionAdj)"}&amp;gt;}&lt;BR /&gt;[SO LN ORIGINAL QTY ADJ])&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:33:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Button-Actions-and-Set-Analysis/m-p/1707295#M63903</guid>
      <dc:creator>crichter14</dc:creator>
      <dc:date>2024-11-16T18:33:34Z</dc:date>
    </item>
  </channel>
</rss>

