<?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: Set analysis on monthstart, possible - syntax? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-on-monthstart-possible-syntax/m-p/1288782#M853580</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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;field_to_count&lt;/SPAN&gt; = {"=monthstart(dateA) = MonthStart(dateB)"}&amp;gt;} DISTINCT field_to_count)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Feb 2017 13:00:27 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-02-16T13:00:27Z</dc:date>
    <item>
      <title>Set analysis on monthstart, possible - syntax?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-on-monthstart-possible-syntax/m-p/1288781#M853579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I need some help to understand if what I try to achieve is possible or not and your help is much obliged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to date fields&amp;nbsp; table1.dateA and table2.dateB and one field to count (in the fact table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT({&amp;lt;monthstart(dateA)= {(=MonthStart(dateB))} &amp;gt;} DISTINCT field_to_count)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to only DISTINCT COUNT where MonthStart(table1.dateA) = MonthStart(table2.dateB)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes would you be so kind and advice on the syntax?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&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/Set-analysis-on-monthstart-possible-syntax/m-p/1288781#M853579</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis on monthstart, possible - syntax?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-on-monthstart-possible-syntax/m-p/1288782#M853580</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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;field_to_count&lt;/SPAN&gt; = {"=monthstart(dateA) = MonthStart(dateB)"}&amp;gt;} DISTINCT field_to_count)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 13:00:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-on-monthstart-possible-syntax/m-p/1288782#M853580</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-16T13:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis on monthstart, possible - syntax?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-on-monthstart-possible-syntax/m-p/1288783#M853581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the suggestion but this did not work.. I'm stil trying..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 14:28:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-on-monthstart-possible-syntax/m-p/1288783#M853581</guid>
      <dc:creator />
      <dc:date>2017-02-16T14:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis on monthstart, possible - syntax?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-on-monthstart-possible-syntax/m-p/1288784#M853582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample where this isn't working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 14:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-on-monthstart-possible-syntax/m-p/1288784#M853582</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-16T14:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis on monthstart, possible - syntax?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-on-monthstart-possible-syntax/m-p/1288785#M853583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are your date formats for your dateA and dateB?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 14:35:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-on-monthstart-possible-syntax/m-p/1288785#M853583</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-02-16T14:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis on monthstart, possible - syntax?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-on-monthstart-possible-syntax/m-p/1288786#M853584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;My dateA format is 2015-10-01 00:00:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to simplify to see if this is possible but Im not able to make this work either:&lt;/P&gt;&lt;P&gt;count({$&amp;lt;dateA={date#('2015-10-01','YYYY-MM-DD')}&amp;gt;} DISTINCT field to count)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to filter out only the rows where dateA = 01OCT2015 using a set expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe Im trying to do something that cant be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I came across this:&lt;/P&gt;&lt;P&gt;Limitation: take care, a set analysis is calculated once per chart (or table). NOT once per row. If you&lt;/P&gt;&lt;P&gt;want a different result in your set analysis according to the row being calculated and displayed, it will NOT&lt;/P&gt;&lt;P&gt;work. Change the way to compute your data (model, if statement) but forget the set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 15:14:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-on-monthstart-possible-syntax/m-p/1288786#M853584</guid>
      <dc:creator />
      <dc:date>2017-02-16T15:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis on monthstart, possible - syntax?</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-on-monthstart-possible-syntax/m-p/1288787#M853585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your Field to count is actual field name here? Try this? Using sunny's expression &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; font-size: 13px;"&gt;count({$&amp;lt; fieldtocount ={ "= MonthStart(Date(date#(dateA,'YYYY-MM-DD hh:mm:ss') 'YYYY-MM-DD')) = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MonthStart(Date(date#(dateB,'YYYY-MM-DD hh:mm:ss') 'YYYY-MM-DD')) "&lt;/SPAN&gt; }&amp;gt;} DISTINCT field to count)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 15:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-on-monthstart-possible-syntax/m-p/1288787#M853585</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-02-16T15:21:51Z</dc:date>
    </item>
  </channel>
</rss>

