<?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: sql calculation in qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sql-calculation-in-qlikview/m-p/1063759#M945609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia;"&gt;In chart expression&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #3d3d3d;"&gt; customerno&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.6666679382324px; font-family: inherit; color: gray;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jan 2016 13:46:20 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2016-01-11T13:46:20Z</dc:date>
    <item>
      <title>sql calculation in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sql-calculation-in-qlikview/m-p/1063757#M945607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the following calculation in sql :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas;"&gt; customerno&lt;SPAN style="color: gray;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;)&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: arial, helvetica, sans-serif;"&gt;how can i implement this in qlikview.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;pls help&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2020 18:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-calculation-in-qlikview/m-p/1063757#M945607</guid>
      <dc:creator />
      <dc:date>2020-11-20T18:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: sql calculation in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sql-calculation-in-qlikview/m-p/1063758#M945608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: fuchsia;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt; color: blue;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9.5pt;"&gt; customerno&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.6667px; font-family: inherit; color: gray;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.6667px; font-family: inherit; color: gray;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: gray; font-size: 12.6667px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Looks wrong... Nested Aggregation...!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: gray; font-size: 12.6667px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 13:46:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-calculation-in-qlikview/m-p/1063758#M945608</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-01-11T13:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: sql calculation in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sql-calculation-in-qlikview/m-p/1063759#M945609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia;"&gt;In chart expression&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #3d3d3d;"&gt; customerno&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 12.6666679382324px; font-family: inherit; color: gray;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 13:46:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-calculation-in-qlikview/m-p/1063759#M945609</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-01-11T13:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: sql calculation in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sql-calculation-in-qlikview/m-p/1063760#M945610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that the SUM is redundant in the above expression (the count will always return one value per sum).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How you implement in QV depends on the context (front end in a fact load, a dimension or mapping load, or in expressions in a text box, in a chart, in part of a set expression etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In principle, count (distinct customers) will work as is in QV and SQL. To nest aggregation functions in expressions, you need structure like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Aggr(Count(Distinct customers), dim1, dim2, ...))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where dim1, dim2 are the fields you would be grouping by in SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Provide more information if you need more specific help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 13:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-calculation-in-qlikview/m-p/1063760#M945610</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-01-11T13:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: sql calculation in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sql-calculation-in-qlikview/m-p/1063761#M945611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue;"&gt;this is my actual sql query.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas;"&gt;CustDrops&lt;SPAN style="color: gray;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;as&lt;/SPAN&gt; [Drops]&lt;SPAN style="color: gray;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: fuchsia;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: fuchsia;"&gt;cast&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;(&lt;/SPAN&gt;CustDrops &lt;SPAN style="color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;decimal&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;(&lt;/SPAN&gt;8&lt;SPAN style="color: gray;"&gt;,&lt;/SPAN&gt;2&lt;SPAN style="color: gray;"&gt;)))&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;as&lt;/SPAN&gt; [Avg Drops]&lt;SPAN style="color: #808080;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: fuchsia;"&gt;MAX&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas;"&gt;CustDrops&lt;SPAN style="color: gray;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;as&lt;/SPAN&gt; [Max drops]&lt;SPAN style="color: gray;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: fuchsia;"&gt;MIN&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;(&lt;/SPAN&gt;CustDrops&lt;SPAN style="color: gray;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;as&lt;/SPAN&gt; [Min Drops]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas;"&gt; branch&lt;SPAN style="color: gray;"&gt;,order&lt;/SPAN&gt;number&lt;SPAN style="color: gray;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: fuchsia;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="color: gray;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;distinct&lt;/SPAN&gt; customeraccoun&lt;SPAN style="color: gray;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;as&lt;/SPAN&gt; CustDrops&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas;"&gt; table l&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue;"&gt;group&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas;"&gt; &lt;SPAN style="color: blue;"&gt;by&lt;/SPAN&gt; branch&lt;SPAN style="color: gray;"&gt;,&lt;/SPAN&gt;ordernumber&lt;SPAN style="color: gray;"&gt;)&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;as&lt;/SPAN&gt; tm&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas;"&gt;please help me to get this in qlikview&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 14:15:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-calculation-in-qlikview/m-p/1063761#M945611</guid>
      <dc:creator />
      <dc:date>2016-01-11T14:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: sql calculation in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/sql-calculation-in-qlikview/m-p/1063762#M945612</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;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(CustDrops) As Drops,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Avg(CustDrops) As [Avg Drops],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(CustDrops) As [Max Drops],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min(CustDrops) As [Min Drops];&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; branch,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ordernumber,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(distinct customeraccoun) As CustDrops&lt;/P&gt;&lt;P&gt;FROM table_1&lt;/P&gt;&lt;P&gt;Group By branch, ordernumber;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jan 2016 14:29:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-calculation-in-qlikview/m-p/1063762#M945612</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2016-01-11T14:29:33Z</dc:date>
    </item>
  </channel>
</rss>

