<?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: Sales Expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sales-Expression/m-p/94450#M6285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Set Analysis.&lt;/P&gt;&lt;P&gt;You basically will put the filter into the Measures, like:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(aggr(sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[completed_date.autoCalendar.Date])={"&amp;gt;=num(today())-60&amp;lt;=num(today())"}&lt;/SPAN&gt;&amp;gt;} &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;see help:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://help.qlik.com/en-US/sense/June2018/Subsystems/Hub/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.htm" title="https://help.qlik.com/en-US/sense/June2018/Subsystems/Hub/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.htm"&gt;https://help.qlik.com/en-US/sense/June2018/Subsystems/Hub/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.ht…&lt;/A&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;You will need to do some adjusting as the left side of set analysis has to be a field, so you can use floor(date) and it takes practice to get used to the syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Aug 2018 00:15:16 GMT</pubDate>
    <dc:creator>dwforest</dc:creator>
    <dc:date>2018-08-17T00:15:16Z</dc:date>
    <item>
      <title>Sales Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Sales-Expression/m-p/94449#M6284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I have a few measures that I would like to, I guess, merge to create a new one.&amp;nbsp; Basically I have a measure that gives total of all sales based on expression:&lt;/P&gt;&lt;P&gt;sum(aggr(sum(distinct(quantity*unit_price)), order_product_id)) +&lt;/P&gt;&lt;P&gt;SUM(aggr(sum({$&amp;lt;order_type={'refund'}&amp;gt;}distinct (refunded_product_discount_total/refunded_quantity*-1)*quantity), order_product_id))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have a date dimension that retrieves dates within last 60 days, with expression as follows:&lt;/P&gt;&lt;P&gt;if(floor([completed_date.autoCalendar.Date])&amp;gt;=num(today())-60 and floor([completed_date.autoCalendar.Date])&amp;lt;= num(today()),[completed_date.autoCalendar.Date],null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to create a new measure that would give me an overall sum of product sales within the last 60 days?&amp;nbsp; Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2018 19:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sales-Expression/m-p/94449#M6284</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-16T19:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sales Expression</title>
      <link>https://community.qlik.com/t5/App-Development/Sales-Expression/m-p/94450#M6285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Set Analysis.&lt;/P&gt;&lt;P&gt;You basically will put the filter into the Measures, like:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(aggr(sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[completed_date.autoCalendar.Date])={"&amp;gt;=num(today())-60&amp;lt;=num(today())"}&lt;/SPAN&gt;&amp;gt;} &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;see help:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://help.qlik.com/en-US/sense/June2018/Subsystems/Hub/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.htm" title="https://help.qlik.com/en-US/sense/June2018/Subsystems/Hub/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.htm"&gt;https://help.qlik.com/en-US/sense/June2018/Subsystems/Hub/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.ht…&lt;/A&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;You will need to do some adjusting as the left side of set analysis has to be a field, so you can use floor(date) and it takes practice to get used to the syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 00:15:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sales-Expression/m-p/94450#M6285</guid>
      <dc:creator>dwforest</dc:creator>
      <dc:date>2018-08-17T00:15:16Z</dc:date>
    </item>
  </channel>
</rss>

