<?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 How to create Qlik expressions from Access SQL in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-Qlik-expressions-from-Access-SQL/m-p/1135927#M463526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an Access query that I need to convert to be able to use with a Qlik straight table.&amp;nbsp; I am having a problem with the 'HAVING' section of the code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting back the expected results from the expressions I created.&amp;nbsp;&amp;nbsp;&amp;nbsp; Mainly, the issue seems to be with getting '0' values in the SUM for [3PU].&amp;nbsp; How can I re-create that HAVING statement using expressions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;TableA.[Country],&lt;/P&gt;&lt;P&gt;TableA.[Div],&lt;/P&gt;&lt;P&gt;TableA.[BusinessUnit],&lt;/P&gt;&lt;P&gt;TableA.[Country] &amp;amp; TableA.[Div] AS CDLookup,&lt;/P&gt;&lt;P&gt;TableA.[VendorName],&lt;/P&gt;&lt;P&gt;TableA.[S Rating],&lt;/P&gt;&lt;P&gt;TableA.[S Rating Type],&lt;/P&gt;&lt;P&gt;TableA.[RFC Month],&lt;/P&gt;&lt;P&gt;Sum(TableA.[3PU]) AS [3PU Total]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;TableA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GROUP BY &lt;/P&gt;&lt;P&gt;TableA.[Country],&lt;/P&gt;&lt;P&gt;TableA.[Div],&lt;/P&gt;&lt;P&gt;TableA.[BusinessUnit],&lt;/P&gt;&lt;P&gt;TableA.[Country] &amp;amp; TableA.[Div],&lt;/P&gt;&lt;P&gt;TableA.[VendorName],&lt;/P&gt;&lt;P&gt;TableA.[S Rating],&lt;/P&gt;&lt;P&gt;TableA.[S Rating Type],&lt;/P&gt;&lt;P&gt;TableA.[RFC Month]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HAVING&lt;/P&gt;&lt;P&gt;(((Sum(TableA.[3PU]))&amp;lt;&amp;gt;0)&lt;/P&gt;&lt;P&gt;AND ((TableA.[RFC Month]) Is Not Null)) OR (((Sum(TableA.[3PU]))&amp;lt;&amp;gt;0)&lt;/P&gt;&lt;P&gt;AND ((TableA.[S Rating Type])&amp;lt;&amp;gt;"A"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORDER BY&lt;/P&gt;&lt;P&gt;TableA.[Country],&lt;/P&gt;&lt;P&gt;TableA.[Div];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jun 2016 21:51:41 GMT</pubDate>
    <dc:creator>cliff_clayman</dc:creator>
    <dc:date>2016-06-28T21:51:41Z</dc:date>
    <item>
      <title>How to create Qlik expressions from Access SQL</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Qlik-expressions-from-Access-SQL/m-p/1135927#M463526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an Access query that I need to convert to be able to use with a Qlik straight table.&amp;nbsp; I am having a problem with the 'HAVING' section of the code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not getting back the expected results from the expressions I created.&amp;nbsp;&amp;nbsp;&amp;nbsp; Mainly, the issue seems to be with getting '0' values in the SUM for [3PU].&amp;nbsp; How can I re-create that HAVING statement using expressions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;TableA.[Country],&lt;/P&gt;&lt;P&gt;TableA.[Div],&lt;/P&gt;&lt;P&gt;TableA.[BusinessUnit],&lt;/P&gt;&lt;P&gt;TableA.[Country] &amp;amp; TableA.[Div] AS CDLookup,&lt;/P&gt;&lt;P&gt;TableA.[VendorName],&lt;/P&gt;&lt;P&gt;TableA.[S Rating],&lt;/P&gt;&lt;P&gt;TableA.[S Rating Type],&lt;/P&gt;&lt;P&gt;TableA.[RFC Month],&lt;/P&gt;&lt;P&gt;Sum(TableA.[3PU]) AS [3PU Total]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;TableA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GROUP BY &lt;/P&gt;&lt;P&gt;TableA.[Country],&lt;/P&gt;&lt;P&gt;TableA.[Div],&lt;/P&gt;&lt;P&gt;TableA.[BusinessUnit],&lt;/P&gt;&lt;P&gt;TableA.[Country] &amp;amp; TableA.[Div],&lt;/P&gt;&lt;P&gt;TableA.[VendorName],&lt;/P&gt;&lt;P&gt;TableA.[S Rating],&lt;/P&gt;&lt;P&gt;TableA.[S Rating Type],&lt;/P&gt;&lt;P&gt;TableA.[RFC Month]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HAVING&lt;/P&gt;&lt;P&gt;(((Sum(TableA.[3PU]))&amp;lt;&amp;gt;0)&lt;/P&gt;&lt;P&gt;AND ((TableA.[RFC Month]) Is Not Null)) OR (((Sum(TableA.[3PU]))&amp;lt;&amp;gt;0)&lt;/P&gt;&lt;P&gt;AND ((TableA.[S Rating Type])&amp;lt;&amp;gt;"A"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORDER BY&lt;/P&gt;&lt;P&gt;TableA.[Country],&lt;/P&gt;&lt;P&gt;TableA.[Div];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 21:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Qlik-expressions-from-Access-SQL/m-p/1135927#M463526</guid>
      <dc:creator>cliff_clayman</dc:creator>
      <dc:date>2016-06-28T21:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Qlik expressions from Access SQL</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Qlik-expressions-from-Access-SQL/m-p/1135928#M463527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey dude! Firstly, have u accessed the server to make sure the data is right? Secondly,&amp;nbsp; you can load the the data into Qlik the related field without "having", and then make some filters in the straight table, for example add expressions in order to get the same result. However the file will become a little bit larger. Hope it helps! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 01:31:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Qlik-expressions-from-Access-SQL/m-p/1135928#M463527</guid>
      <dc:creator />
      <dc:date>2016-06-29T01:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Qlik expressions from Access SQL</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Qlik-expressions-from-Access-SQL/m-p/1135929#M463528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the data is correct.&amp;nbsp; The data isn't loaded with this query.&amp;nbsp; This is a separate query on the main table that I am trying to recreate in Qlik to create a straight table.&amp;nbsp; I am trying to add expressions in order to get the same result.&amp;nbsp; The issue is that I do not know how to recreate that HAVING code into expressions within Qlik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 14:01:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Qlik-expressions-from-Access-SQL/m-p/1135929#M463528</guid>
      <dc:creator>cliff_clayman</dc:creator>
      <dc:date>2016-06-29T14:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Qlik expressions from Access SQL</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Qlik-expressions-from-Access-SQL/m-p/1135930#M463529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you do the "having" clause in the loading script? FYR: &lt;A href="https://community.qlik.com/thread/15278"&gt;having clause in Qlikview&lt;/A&gt; Hope it helps you cliff! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 01:11:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Qlik-expressions-from-Access-SQL/m-p/1135930#M463529</guid>
      <dc:creator />
      <dc:date>2016-06-30T01:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Qlik expressions from Access SQL</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Qlik-expressions-from-Access-SQL/m-p/1135931#M463530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have a lot of experience in scripting.&amp;nbsp; I was really hoping there was a way to handle this in an expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 17:50:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Qlik-expressions-from-Access-SQL/m-p/1135931#M463530</guid>
      <dc:creator>cliff_clayman</dc:creator>
      <dc:date>2016-06-30T17:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create Qlik expressions from Access SQL</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-Qlik-expressions-from-Access-SQL/m-p/1135932#M463531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you can try to change the expression to use WHERE instead of Having?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 18:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-Qlik-expressions-from-Access-SQL/m-p/1135932#M463531</guid>
      <dc:creator />
      <dc:date>2016-06-30T18:33:46Z</dc:date>
    </item>
  </channel>
</rss>

