<?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: How Could I do this? with calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-Could-I-do-this-with-calculated-dimension/m-p/442142#M164819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your numbers use a comma as decimal separator: &lt;EM&gt;...nta) &amp;lt; 0,29, dual(...&lt;/EM&gt; The extra comma mucks up the expressions. You could try using quotes around it "0,29"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 May 2013 10:00:00 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-05-09T10:00:00Z</dc:date>
    <item>
      <title>How Could I do this? with calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-Could-I-do-this-with-calculated-dimension/m-p/442139#M164816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wanna calculate the number of saleslines that has different profits&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Calculated dimension (sale profit)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Number of orders&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;less than 0,15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;0,15-0,29&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;More than 0,29&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formula to calculate the sale profit: &lt;/P&gt;&lt;P&gt;sum({&amp;lt;ESTADO_PEDIDO={'Facturado'},CalendarMonthAndYear=, [Codventa]={'PV0***'}&amp;gt;} IMPORTBRUT)&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;sum({&amp;lt;ESTADO_PEDIDO={'Facturado'},CalendarMonthAndYear=, [Codventa]={'PV0***'}&amp;gt;} Cost)&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;sum({&amp;lt;ESTADO_PEDIDO={'Facturado'},CalendarMonthAndYear=, [Codventa]={'PV0***'}&amp;gt;} CAMPAÑA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To count the number of orders:&lt;/P&gt;&lt;P&gt;Count(DISTINCT{&amp;lt;CalendarMonthAndYear=,ESTADO_PEDIDO={'Facturado'}, [Codventa]={'PV0***'}&amp;gt;} Codventa)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank's&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 08:40:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Could-I-do-this-with-calculated-dimension/m-p/442139#M164816</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2013-05-09T08:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: How Could I do this? with calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-Could-I-do-this-with-calculated-dimension/m-p/442140#M164817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( aggr(sum({&amp;lt;ESTADO_PEDIDO={'Facturado'},CalendarMonthAndYear=, [Codventa]={'PV0***'}&amp;gt;} rangesum(IMPORTBRUT,Cost,CAMPAÑA)),Codventa) &amp;lt; 0.15&lt;BR /&gt;, dual('less than 0,15',1),&lt;/P&gt;&lt;P&gt;if( aggr(sum({&amp;lt;ESTADO_PEDIDO={'Facturado'},CalendarMonthAndYear=, [Codventa]={'PV0***'}&amp;gt;} rangesum(IMPORTBRUT,Cost,CAMPAÑA)),Codventa) &amp;lt;= 0.29, dual('0,15-0,29',2),dual('more than 0,29',3)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 08:57:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Could-I-do-this-with-calculated-dimension/m-p/442140#M164817</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-09T08:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: How Could I do this? with calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-Could-I-do-this-with-calculated-dimension/m-p/442141#M164818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression gave me an error and I don't know why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if( aggr(sum({&amp;lt;ESTADO_PEDIDO={'Facturado'},CalendarMonthAndYear=, [Codventa]={'PV0***'}&amp;gt;} rangesum(IMPORTBRUT,Cost,CAMPAÑA)),Codventa) &amp;lt; 0,29, dual('less than 0,29',1),dual('more than 0,29',2))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 09:23:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Could-I-do-this-with-calculated-dimension/m-p/442141#M164818</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2013-05-09T09:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: How Could I do this? with calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-Could-I-do-this-with-calculated-dimension/m-p/442142#M164819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your numbers use a comma as decimal separator: &lt;EM&gt;...nta) &amp;lt; 0,29, dual(...&lt;/EM&gt; The extra comma mucks up the expressions. You could try using quotes around it "0,29"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 10:00:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Could-I-do-this-with-calculated-dimension/m-p/442142#M164819</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-09T10:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: How Could I do this? with calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-Could-I-do-this-with-calculated-dimension/m-p/442143#M164820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BRILLIANT!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thank's!!!&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 10:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-Could-I-do-this-with-calculated-dimension/m-p/442143#M164820</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2013-05-09T10:05:23Z</dc:date>
    </item>
  </channel>
</rss>

