<?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: Add distinct to expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-distinct-to-expression/m-p/532513#M1140186</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Date is dual, and each combination is stored so use:&lt;/P&gt;&lt;P&gt;date(monthstart(Date), 'YYYY/MM')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Sep 2013 15:44:35 GMT</pubDate>
    <dc:creator>stigchel</dc:creator>
    <dc:date>2013-09-17T15:44:35Z</dc:date>
    <item>
      <title>Add distinct to expression</title>
      <link>https://community.qlik.com/t5/QlikView/Add-distinct-to-expression/m-p/532512#M1140185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a date field in the format dd.mm.yyyy with many records for the same date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to draw a chart that would count the total of the records by month (= agregating all records and showing only the total for each month). So I created a dimension like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date(floor(Date),'YYYY/MM') but I have multiple times the same month (in the x axis)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible, I would like to add 'distinct' to this expression to end up with only one total per month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any proposition would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 15:38:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-distinct-to-expression/m-p/532512#M1140185</guid>
      <dc:creator />
      <dc:date>2013-09-17T15:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Add distinct to expression</title>
      <link>https://community.qlik.com/t5/QlikView/Add-distinct-to-expression/m-p/532513#M1140186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Date is dual, and each combination is stored so use:&lt;/P&gt;&lt;P&gt;date(monthstart(Date), 'YYYY/MM')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 15:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-distinct-to-expression/m-p/532513#M1140186</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2013-09-17T15:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add distinct to expression</title>
      <link>https://community.qlik.com/t5/QlikView/Add-distinct-to-expression/m-p/532514#M1140187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the monthfield in the script&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; Date,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(monthstart(Date), 'YYYY/MM') as Month,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;...other fields here...&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;from mysource;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;And then use the new Month field as dimension&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 15:51:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-distinct-to-expression/m-p/532514#M1140187</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-09-17T15:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Add distinct to expression</title>
      <link>https://community.qlik.com/t5/QlikView/Add-distinct-to-expression/m-p/532515#M1140188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to both of you, this is perfect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if I would like this chart not to follow the selection ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried to add {1} but did not work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 14:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-distinct-to-expression/m-p/532515#M1140188</guid>
      <dc:creator />
      <dc:date>2013-09-20T14:42:21Z</dc:date>
    </item>
  </channel>
</rss>

