<?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 Calculated field (Row based dataset) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-field-Row-based-dataset/m-p/180444#M46880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure to understand well.&lt;/P&gt;&lt;P&gt;Create a tab chart with&lt;/P&gt;&lt;P&gt;dimension : QID&lt;/P&gt;&lt;P&gt;expression = 4 - Count(distinct DATA) Maybe you dont't need the distinct, if you just want to count the numbers of rows&lt;/P&gt;&lt;P&gt;for M1 the score is 1&lt;/P&gt;&lt;P&gt;for M2 the score is 2&lt;/P&gt;&lt;P&gt;Hope it helps you&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Jan 2011 21:28:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-23T21:28:23Z</dc:date>
    <item>
      <title>Calculated field (Row based dataset)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-field-Row-based-dataset/m-p/180443#M46879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I am newbie with Qlikview. I am using a personal edition. I have table of data which has 3 fields - RespID, QID, DATA&lt;/P&gt;&lt;P&gt;RespID QID DATA&lt;/P&gt;&lt;P&gt;1 M1 1&lt;/P&gt;&lt;P&gt;2 M1 2&lt;/P&gt;&lt;P&gt;3 M1 3&lt;/P&gt;&lt;P&gt;4 M2 1&lt;/P&gt;&lt;P&gt;5 M2 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to calculate a score which should be for each QID (M1, M2, etc.) and the calculation method is&lt;/P&gt;&lt;P&gt;((COUNT(M1) = 1) * 3) + ((COUNT(M1) = 2) * 2) + ((COUNT(M1) = 1 * 1)&lt;/P&gt;&lt;P&gt;I hope this makes sense.... I need this asap. Thanks in anticipation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;DV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jan 2011 19:44:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-field-Row-based-dataset/m-p/180443#M46879</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-01-23T19:44:12Z</dc:date>
    </item>
    <item>
      <title>Calculated field (Row based dataset)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-field-Row-based-dataset/m-p/180444#M46880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure to understand well.&lt;/P&gt;&lt;P&gt;Create a tab chart with&lt;/P&gt;&lt;P&gt;dimension : QID&lt;/P&gt;&lt;P&gt;expression = 4 - Count(distinct DATA) Maybe you dont't need the distinct, if you just want to count the numbers of rows&lt;/P&gt;&lt;P&gt;for M1 the score is 1&lt;/P&gt;&lt;P&gt;for M2 the score is 2&lt;/P&gt;&lt;P&gt;Hope it helps you&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jan 2011 21:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-field-Row-based-dataset/m-p/180444#M46880</guid>
      <dc:creator />
      <dc:date>2011-01-23T21:28:23Z</dc:date>
    </item>
    <item>
      <title>Calculated field (Row based dataset)</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-field-Row-based-dataset/m-p/180445#M46881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you JJ!&lt;/P&gt;&lt;P&gt;I hope you can help me with this...&lt;/P&gt;&lt;P&gt;Let's assume I have 1 Field in a table which has numeric values like 1, 2, 3, 4, 5&lt;/P&gt;&lt;P&gt;Score&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And now I wanted to calculate the Weighted Mean score and the logic is...&lt;/P&gt;&lt;P&gt;=(((Count of 1) * 5) + ((Count of 2) * 4) + ((Count of 3) * 3) + ((Count of 4) * 2) + ((Count of 5) * 1) ) / Total Count&lt;/P&gt;&lt;P&gt;To make it more simple, I am attaching an excel file which contains the calculation. The idea is to show Weighted Mean score in charts for each department. I am sure this must be pretty simple to do...&lt;/P&gt;&lt;P&gt;Thanks again in anticipation.&lt;/P&gt;&lt;P&gt;Cheers - DV[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/3644.Example.xls:550:0]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jan 2011 21:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-field-Row-based-dataset/m-p/180445#M46881</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-01-23T21:58:24Z</dc:date>
    </item>
  </channel>
</rss>

