<?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: MySQL to Qlikview Expression translation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461587#M793221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you need deleted = {0} in your set analysis also?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count({&amp;lt;activity_type_id -= {'8'}, deleted = {0}&amp;gt;} distinct initiated_date)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jan 2018 15:56:24 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-01-09T15:56:24Z</dc:date>
    <item>
      <title>MySQL to Qlikview Expression translation</title>
      <link>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461586#M793220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've ran into a problem while writing some expressions,&lt;SPAN style="font-size: 13.3333px;"&gt; based on some MySQL queries,&lt;/SPAN&gt; in a pivot table in QlikView. The results between the said query and the expression is completely different for most of the users but not for all. &lt;/P&gt;&lt;P&gt;The query is: &lt;/P&gt;&lt;P&gt;SELECT distinct date(initiated_date) FROM activities&lt;/P&gt;&lt;P&gt;where deleted = 0 &lt;/P&gt;&lt;P&gt;and activity_type_id != 8&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The expression is: Count({&amp;lt;activity_type_id -= {'8'}&amp;gt;} distinct initiated_date)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm counting the query results' rows for different users,users that I'm using as dimension in the pivot table. For some users the results match(the number of rows resulted in the query equals the result of the Count expression that I'm using in the pivot table) but for others it doesn't. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Why? Am I missing something regarding the count expression ? If so, how should I write the expression? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461586#M793220</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: MySQL to Qlikview Expression translation</title>
      <link>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461587#M793221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you need deleted = {0} in your set analysis also?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count({&amp;lt;activity_type_id -= {'8'}, deleted = {0}&amp;gt;} distinct initiated_date)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 15:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461587#M793221</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-09T15:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: MySQL to Qlikview Expression translation</title>
      <link>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461588#M793222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your SQL contained a further condition on "deleted" and the query returned just distinct dates without a regard to any users - therefore the results are different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jan 2018 15:58:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461588#M793222</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-01-09T15:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: MySQL to Qlikview Expression translation</title>
      <link>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461589#M793223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried with deleted = {0} in the set analysis, no change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 09:05:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461589#M793223</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-10T09:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: MySQL to Qlikview Expression translation</title>
      <link>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461590#M793224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried the expression with and without "deleted", the results are the same in QlikView. &lt;BR /&gt;So how do I make the expression in QlikView disregard the users? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 09:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461590#M793224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-10T09:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: MySQL to Qlikview Expression translation</title>
      <link>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461591#M793225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use this expression in a text box object so that you can compare apples to apples... or compare the result of this query to your pivot table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;SELECT DISTINCT&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; user,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(initiated_date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;FROM activities&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;WHERE&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; deleted = 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and activity_type_id != 8&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Group By user;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 09:09:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461591#M793225</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-10T09:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: MySQL to Qlikview Expression translation</title>
      <link>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461592#M793226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So should I add the user field to the distinct in my QlikView expression ? The query you share seems to do the right job &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 09:39:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461592#M793226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-10T09:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: MySQL to Qlikview Expression translation</title>
      <link>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461593#M793227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, what I am trying to say is that you have used&amp;nbsp; user as a dimension in your pivot table, so to replicate the same from SQL... you need to group by user in SQL....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your QlikView will have it like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;User&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {&amp;lt;activity_type_id -= {'8'}, deleted = {0}&amp;gt;} initiated_date)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 09:42:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461593#M793227</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-10T09:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: MySQL to Qlikview Expression translation</title>
      <link>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461594#M793230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see. Will come back if I don't manage to find a solution to my expression. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 10:05:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461594#M793230</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-10T10:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: MySQL to Qlikview Expression translation</title>
      <link>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461595#M793232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok so I slightly modified the query you gave me to display the days worked. &lt;BR /&gt;Now it is something like: &lt;/P&gt;&lt;P&gt;SELECT DISTINCT user,date(initiated_date),&lt;/P&gt;&lt;P&gt;count(distinct date(initiated_date))&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM activity&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;deleted = 0&lt;/P&gt;&lt;P&gt;and activity_type_id != 8&lt;/P&gt;&lt;P&gt;Group By user;&lt;BR /&gt;How do I translate this into an expression? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 10:33:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461595#M793232</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-10T10:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: MySQL to Qlikview Expression translation</title>
      <link>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461596#M793234</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;Dimension&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;User&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(Floor(initiated_date)) &lt;/STRONG&gt;-&amp;gt; Calculated dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT initiated_date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is useful assuming initiated_date is a timestamp... else all you will get is 1 for each row&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 12:03:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MySQL-to-Qlikview-Expression-translation/m-p/1461596#M793234</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-10T12:03:02Z</dc:date>
    </item>
  </channel>
</rss>

