<?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 measure not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/measure-not-working/m-p/935485#M322990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI I am trying to do the following. Our invoice table has the sale price and cost price. I would like to show the dimensions according to a formula like cost/price showing the largest percent of profit. On the measure part, I would want just that order#. but for measure part, it has functions only not just to show the order #. Or if I want to have a formula as the dimension like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x=IDSALP-IDCOSP&lt;/P&gt;&lt;P&gt;y= x / idcost&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is not clear how to enter this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Nov 2015 20:01:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-18T20:01:21Z</dc:date>
    <item>
      <title>measure not working</title>
      <link>https://community.qlik.com/t5/QlikView/measure-not-working/m-p/935485#M322990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI I am trying to do the following. Our invoice table has the sale price and cost price. I would like to show the dimensions according to a formula like cost/price showing the largest percent of profit. On the measure part, I would want just that order#. but for measure part, it has functions only not just to show the order #. Or if I want to have a formula as the dimension like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x=IDSALP-IDCOSP&lt;/P&gt;&lt;P&gt;y= x / idcost&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is not clear how to enter this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 20:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/measure-not-working/m-p/935485#M322990</guid>
      <dc:creator />
      <dc:date>2015-11-18T20:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: measure not working</title>
      <link>https://community.qlik.com/t5/QlikView/measure-not-working/m-p/935486#M322991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can show the dimension values in an expression. You should still use aggreagation functions to do this.&amp;nbsp; Common ones are concat() and only()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example where an the 2nd column is an expression:&amp;nbsp; concat( distinct Country, ', ' ) &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/105964_Capture.PNG" style="height: 463px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 20:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/measure-not-working/m-p/935486#M322991</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-11-18T20:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: measure not working</title>
      <link>https://community.qlik.com/t5/QlikView/measure-not-working/m-p/935487#M322992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok but lets say the formula is more involved, i guess make this a function on the server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;x=IDSALP-IDCOSP&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;y= x / idcost&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;it is not clear how to enter this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 20:51:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/measure-not-working/m-p/935487#M322992</guid>
      <dc:creator />
      <dc:date>2015-11-18T20:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: measure not working</title>
      <link>https://community.qlik.com/t5/QlikView/measure-not-working/m-p/935488#M322993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All Charts represented aggregated summaries and the level of aggregation depends on the granularity of the dimensions.&amp;nbsp; If you want to report transactional level values, add transactionID as a dimension. If you want to report customer level information then add customer as a dimension. All this to say that you SHOULD use numeric aggregation functions in your expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(IDSALP) - SUM(IDCOSP)&amp;nbsp; will sum up the detail values of each per each dimension value and do a subtraction. &lt;/P&gt;&lt;P&gt;Sum( IDSALP-IDCOSP) will do a subtraction at the record level for each dimension value and sum the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no clue what IDSALP or IDCOSP actually represent so this may be a nonsensical situation. You will have to impart what is really going on. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 21:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/measure-not-working/m-p/935488#M322993</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-11-18T21:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: measure not working</title>
      <link>https://community.qlik.com/t5/QlikView/measure-not-working/m-p/935489#M322994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that is simply the sale price (IDSALP) and the cost (IDCOSP) per detail line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 21:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/measure-not-working/m-p/935489#M322994</guid>
      <dc:creator />
      <dc:date>2015-11-18T21:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: measure not working</title>
      <link>https://community.qlik.com/t5/QlikView/measure-not-working/m-p/935490#M322995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have 'detail ID' in the chart as a dimension then you can just write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDSALP/IDCOSP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that should work.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have 2 actual records for same 'detail ID' than qlik will need to know which calculation to use to aggregate those 2 records together to report one result for that detail ID.&amp;nbsp; You might use avg() etc... to do that, but consider that possible case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could just check to see how many records there are &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (&amp;nbsp; count( [DetailID]) =&amp;nbsp; 1 ,&amp;nbsp; IDSALP/IDCOSP )&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will do the division if there is only 1 record. If there are more it will return a NULL '-'&amp;nbsp; in the UI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that help ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 17:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/measure-not-working/m-p/935490#M322995</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-11-19T17:34:15Z</dc:date>
    </item>
  </channel>
</rss>

