<?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: calculated feild in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424524#M3170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I understand that, but the fields which you use in your dimension/expression, I would expect those to show up in the sample data... otherwise what kind of a sample would it be &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Oct 2017 12:52:52 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-10-04T12:52:52Z</dc:date>
    <item>
      <title>calculated feild</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424516#M3162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to import data from a csv file which have is similar to following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Data.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/177848_Data.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This file already contains first five columns of table shown above. I need a calculated field "Sales Amount" which should be calculated like :&lt;/P&gt;&lt;P&gt;Sales Amount = (Qty x Price ) + Postage&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Problem i was facing is that for orders in which there are multiple skus/items for example order id 1002, in which there are two skus/items (i.e S001, S002). Even though customer has paid only $6 Postage it's showing against both items which results into inflating the total "Sales Amount". In excel we can use following formula to resolve the issue and divide the postage equally to all skus/items :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(C2*D2)+(E2/COUNTIF(A:A,A2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wondering how i can achieve the same in Qlikview dataload editor script, Appreciate if someone can help/guide me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 11:00:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424516#M3162</guid>
      <dc:creator />
      <dc:date>2017-09-27T11:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: calculated feild</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424517#M3163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Qty * Price) + (Postage/Count(DISTINCT TOTAL &amp;lt;OrderID&amp;gt; SKU))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 12:01:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424517#M3163</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-27T12:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: calculated feild</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424518#M3164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply do i have to use it in dataload script or create a Master measure using this formula ? i am asking because i tried putting this in dataload script but it does not work, i tried creating master measure using following : &lt;/P&gt;&lt;P&gt;Sum([Quantity] * [Product Price]) + ([Carriage Amount]/Count(DISTINCT TOTAL &amp;lt;[Order ID]&amp;gt; [SKU]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works perfectly for data tables but does not work in visualizations(charts) of any kind.&lt;/P&gt;&lt;P&gt;Can you please guide me what I am doing wrong ?&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 13:26:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424518#M3164</guid>
      <dc:creator />
      <dc:date>2017-09-27T13:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: calculated feild</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424519#M3165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What was your dimension in the chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 15:50:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424519#M3165</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-27T15:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: calculated feild</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424520#M3166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its Dates, (Months &amp;amp; Weeks) mostly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 09:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424520#M3166</guid>
      <dc:creator />
      <dc:date>2017-09-28T09:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: calculated feild</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424521#M3167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But your sample data doesn't show any date... I am confused... where did date come in from?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 13:34:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424521#M3167</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-28T13:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: calculated feild</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424522#M3168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Original data consists more than 50 fields, for the sake of simplicity i only used few fields in sample data which i thought would be relevant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 12:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424522#M3168</guid>
      <dc:creator />
      <dc:date>2017-10-04T12:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: calculated feild</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424523#M3169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And can you advise how can we do the same in loadscript.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 12:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424523#M3169</guid>
      <dc:creator />
      <dc:date>2017-10-04T12:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: calculated feild</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424524#M3170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I understand that, but the fields which you use in your dimension/expression, I would expect those to show up in the sample data... otherwise what kind of a sample would it be &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 12:52:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424524#M3170</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-04T12:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: calculated feild</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424525#M3171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As requested here is the revised sample data with few of the dimensions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sample data.jpg" class="jive-image image-1" src="/legacyfs/online/178700_Sample data.jpg" style="height: 88px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 11:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424525#M3171</guid>
      <dc:creator />
      <dc:date>2017-10-05T11:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: calculated feild</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424526#M3172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I apologize for the inconvenience, but would you be able to share this as an Excel file?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 11:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424526#M3172</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-05T11:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: calculated feild</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424527#M3173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i have almost resolved the problem, need one little help can you guide my how can i convert this "measure" calculation code to data load editor code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ([Carriage Amount]/Count(DISTINCT TOTAL &amp;lt;[Order ID]&amp;gt; [SKU]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I can load it as calculated field instead of a measure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2017 18:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/calculated-feild/m-p/1424527#M3173</guid>
      <dc:creator />
      <dc:date>2017-10-18T18:02:05Z</dc:date>
    </item>
  </channel>
</rss>

