<?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: Problem with count expression in sap hana sql in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-count-expression-in-sap-hana-sql/m-p/1736651#M452669</link>
    <description>&lt;P&gt;If i remove the commas ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;select count(distinct mkpf~mblnr)&lt;BR /&gt;ekko~lifnr&lt;BR /&gt;mkpf~budat&lt;BR /&gt;from mkpf&lt;BR /&gt;inner join mseg on mkpf~mblnr=mseg~mblnr and mkpf~mjahr=mseg~mjahr&lt;BR /&gt;inner join ekko on mseg~ebeln=ekko~ebeln&lt;BR /&gt;where mkpf~vgart='WE'&lt;BR /&gt;and mseg~ebeln in&lt;BR /&gt;(select ebeln&lt;BR /&gt;from rseg&lt;BR /&gt;inner join rbkp on rseg~belnr=rbkp~belnr and rseg~gjahr=rbkp~gjahr&lt;BR /&gt;where rbkp~tcode&amp;lt;&amp;gt;'MR1M')&lt;BR /&gt;group by ekko~lifnr&lt;BR /&gt;mkpf~budat;&lt;/P&gt;&lt;P&gt;It is running and i take the message in the attached file&lt;/P&gt;</description>
    <pubDate>Tue, 18 Aug 2020 08:43:27 GMT</pubDate>
    <dc:creator>geogou1973</dc:creator>
    <dc:date>2020-08-18T08:43:27Z</dc:date>
    <item>
      <title>Problem with count expression in sap hana sql</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-count-expression-in-sap-hana-sql/m-p/1736643#M452668</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the following script that is running&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select mkpf~budat&lt;BR /&gt;,mkpf~mblnr&lt;BR /&gt;,ekko~lifnr&lt;BR /&gt;from mkpf&lt;BR /&gt;inner join mseg on mkpf~mblnr=mseg~mblnr and mkpf~mjahr=mseg~mjahr&lt;BR /&gt;inner join ekko on mseg~ebeln=ekko~ebeln&lt;BR /&gt;where mkpf~vgart='WE'&lt;BR /&gt;and mseg~ebeln in&lt;BR /&gt;(select ebeln&lt;BR /&gt;from rseg&lt;BR /&gt;inner join rbkp on rseg~belnr=rbkp~belnr and rseg~gjahr=rbkp~gjahr&lt;BR /&gt;where rbkp~tcode&amp;lt;&amp;gt;'MR1M');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;when i try to count distinct the&amp;nbsp;&lt;STRONG&gt;mkpf~mblnr &lt;/STRONG&gt;with the following script&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select count(distinct mkpf~mblnr),&lt;BR /&gt;ekko~lifnr,&lt;BR /&gt;mkpf~budat&lt;BR /&gt;from mkpf&lt;BR /&gt;inner join mseg on mkpf~mblnr=mseg~mblnr and mkpf~mjahr=mseg~mjahr&lt;BR /&gt;inner join ekko on mseg~ebeln=ekko~ebeln&lt;BR /&gt;where mkpf~vgart='WE'&lt;BR /&gt;and mseg~ebeln in&lt;BR /&gt;(select ebeln&lt;BR /&gt;from rseg&lt;BR /&gt;inner join rbkp on rseg~belnr=rbkp~belnr and rseg~gjahr=rbkp~gjahr&lt;BR /&gt;where rbkp~tcode&amp;lt;&amp;gt;'MR1M')&lt;BR /&gt;group by ekko~lifnr,&lt;BR /&gt;mkpf~budat;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;i take the message that is in the attached file&lt;/P&gt;&lt;P&gt;How can i write the script in order to have the count of distinct&amp;nbsp;&lt;STRONG&gt;mkpf~mblnr by&amp;nbsp;ekko~lifnr and&amp;nbsp;&lt;BR /&gt;mkpf~budat;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 08:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-count-expression-in-sap-hana-sql/m-p/1736643#M452668</guid>
      <dc:creator>geogou1973</dc:creator>
      <dc:date>2020-08-18T08:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with count expression in sap hana sql</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-count-expression-in-sap-hana-sql/m-p/1736651#M452669</link>
      <description>&lt;P&gt;If i remove the commas ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;select count(distinct mkpf~mblnr)&lt;BR /&gt;ekko~lifnr&lt;BR /&gt;mkpf~budat&lt;BR /&gt;from mkpf&lt;BR /&gt;inner join mseg on mkpf~mblnr=mseg~mblnr and mkpf~mjahr=mseg~mjahr&lt;BR /&gt;inner join ekko on mseg~ebeln=ekko~ebeln&lt;BR /&gt;where mkpf~vgart='WE'&lt;BR /&gt;and mseg~ebeln in&lt;BR /&gt;(select ebeln&lt;BR /&gt;from rseg&lt;BR /&gt;inner join rbkp on rseg~belnr=rbkp~belnr and rseg~gjahr=rbkp~gjahr&lt;BR /&gt;where rbkp~tcode&amp;lt;&amp;gt;'MR1M')&lt;BR /&gt;group by ekko~lifnr&lt;BR /&gt;mkpf~budat;&lt;/P&gt;&lt;P&gt;It is running and i take the message in the attached file&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 08:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-count-expression-in-sap-hana-sql/m-p/1736651#M452669</guid>
      <dc:creator>geogou1973</dc:creator>
      <dc:date>2020-08-18T08:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with count expression in sap hana sql</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-count-expression-in-sap-hana-sql/m-p/1740672#M452906</link>
      <description>&lt;P&gt;I am a bit confused on your post, as this appears to be SAP HANA SQL, we are not experts on that for sure in this forum, so I would recommend you post this in the SAP forums if that is the case, otherwise need further clarification on things.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 13:56:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-count-expression-in-sap-hana-sql/m-p/1740672#M452906</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-09-02T13:56:02Z</dc:date>
    </item>
  </channel>
</rss>

