<?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 problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/857414#M300369</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 May 2015 14:03:37 GMT</pubDate>
    <dc:creator>dcd123456</dc:creator>
    <dc:date>2015-05-01T14:03:37Z</dc:date>
    <item>
      <title>set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/857408#M300363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;i have data from several days like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 151px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="18" width="47"&gt;PER&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="74"&gt;fecha&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="30"&gt;user&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;ene&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/01/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;ene&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/01/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;ene&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;02/01/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;ene&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;02/01/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;ene&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;03/01/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;ene&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;04/01/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;ene&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;05/01/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;feb&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/02/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;feb&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/02/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;feb&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;02/02/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;feb&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;03/02/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;mar&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/03/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;mar&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;02/03/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in want to display , in a bar chart, the count of diferent users agretate by fiel PER(month), but only take the data of the firsts day of each month, the number of days is selected by the user.&lt;/P&gt;&lt;P&gt;y tray to do this with set filter like this:&lt;/P&gt;&lt;P&gt;count({&amp;lt;fecha={"&amp;lt;=$(=date(min(fecha)+$(n_dias)))"}&amp;gt;}DISTINCT user)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n_dias is a variable that hold the number of days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is that min(fecha) always return one date, the global lowest date 01/0/01/2015, the chart is agregate by PER and i need that the min(fecha) return the min date of each month, not the lowest date.&lt;/P&gt;&lt;P&gt;i have attached an example in a file qvw .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance for your help&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 12:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/857408#M300363</guid>
      <dc:creator>dcd123456</dc:creator>
      <dc:date>2015-04-30T12:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/857409#M300364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you should have to create another table in the script. This new table will be linked with the fact tables (with user).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This new table should contain the user and his/her min date. You can do it easily just using resident of the fact table and a group by user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 13:09:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/857409#M300364</guid>
      <dc:creator />
      <dc:date>2015-04-30T13:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/857410#M300365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;regads&lt;/P&gt;&lt;P&gt;diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 19:02:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/857410#M300365</guid>
      <dc:creator>dcd123456</dc:creator>
      <dc:date>2015-04-30T19:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/857411#M300366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;in the script i make a new table that have a new field that is the min date the result is like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="216"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="18" width="47"&gt;PER&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="74"&gt;fecha&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="30"&gt;user&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="65"&gt;min_fecha&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;ene&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/01/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/01/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;ene&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/01/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/01/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;ene&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;02/01/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/01/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;ene&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;02/01/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u4&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/01/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;ene&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;03/01/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u4&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/01/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;ene&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;04/01/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u5&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/01/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;ene&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;05/01/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u6&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/01/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;feb&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/02/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/02/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;feb&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/02/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/02/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;feb&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;02/02/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/02/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;feb&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;03/02/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u4&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/02/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;mar&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/03/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/03/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;mar&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;02/03/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;u2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;01/03/2015&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the graph i use the next expresion:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; count({1&amp;lt;fecha={"&amp;lt;=$(=date(min_fecha+$(n_dias)))"}&amp;gt;}DISTINCT user)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but the graph only show data if i select one value of PER field (a month), if i don't select any value of PER field the graph is empty. And if i select one value of PER field (month) the graph only show the correct value for the value selected, the other PER values show the global count and don't take in account the filter of the set expresion (&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;&amp;lt;fecha={"&amp;lt;=$(=date(min_fecha+$(n_dias)))"}&amp;gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 07:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/857411#M300366</guid>
      <dc:creator>dcd123456</dc:creator>
      <dc:date>2015-05-01T07:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/857412#M300367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem here is that the set (and $ sign expansion) are evaluated at the chart level and not for each dimension value. As there are several possible min dates for the whole dimension the expression will fail.&lt;/P&gt;&lt;P&gt;Try with&lt;/P&gt;&lt;P&gt;count(DISTINCT if(fecha&amp;lt;=date(min_fecha+$(n_dias)),user,null()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 08:52:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/857412#M300367</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-05-01T08:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/857413#M300368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think (if you want the first n_dias days of &lt;STRONG&gt;every&lt;/STRONG&gt; month) you should add a day in your model and use that in set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in script add&lt;/P&gt;&lt;P&gt;Day(fecha) as day &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression in chart&lt;/P&gt;&lt;P&gt;count({$&amp;lt;day={"&amp;lt;=$(n_dias)"}&amp;gt;}DISTINCT user)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 09:27:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/857413#M300368</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-05-01T09:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/857414#M300369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 May 2015 14:03:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-problem/m-p/857414#M300369</guid>
      <dc:creator>dcd123456</dc:creator>
      <dc:date>2015-05-01T14:03:37Z</dc:date>
    </item>
  </channel>
</rss>

