<?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: Calendar selection Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calendar-selection-Set-Analysis/m-p/893194#M311009</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've decided to change the approach and take the data from the date table field, although there aren't all the calendar days, but a subset of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Apr 2015 13:02:17 GMT</pubDate>
    <dc:creator>marco_puccetti</dc:creator>
    <dc:date>2015-04-23T13:02:17Z</dc:date>
    <item>
      <title>Calendar selection Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-selection-Set-Analysis/m-p/893185#M311000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, i need to create a table in which the selection (the dimension field) would be made in function of a calendar selection, is correct this expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;={&amp;lt;ABI=, DATA_ESTRAZIONE_BANCA = {"=$(=DT_RIFERIMENTO)"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this expression i intend to extract all the ABI for a "&lt;SPAN style="font-size: 13.3333330154419px;"&gt;DATA_ESTRAZIONE_BANCA" equal to the "&lt;SPAN style="font-size: 13.3333330154419px;"&gt;DT_RIFERIMENTO&lt;/SPAN&gt;" selection (that is connected to the calendar control).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In the editor the expression is marked wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me the correct syntax if this is wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 10:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-selection-Set-Analysis/m-p/893185#M311000</guid>
      <dc:creator>marco_puccetti</dc:creator>
      <dc:date>2015-04-23T10:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar selection Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-selection-Set-Analysis/m-p/893186#M311001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you write the full expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 10:59:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-selection-Set-Analysis/m-p/893186#M311001</guid>
      <dc:creator>ankitaag</dc:creator>
      <dc:date>2015-04-23T10:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar selection Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-selection-Set-Analysis/m-p/893187#M311002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the full expression i need to use in the dimension dialog below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Immagine.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/84575_Immagine.png" style="height: 433px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-selection-Set-Analysis/m-p/893187#M311002</guid>
      <dc:creator>marco_puccetti</dc:creator>
      <dc:date>2015-04-23T11:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar selection Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-selection-Set-Analysis/m-p/893188#M311003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If that is your full expression then it is invalid - this is just the set filter. Also your naked reference to &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DT_RIFERIMENTO will return null if more than one value is possible. If this comparison is on a row by row basis, then you cannot use a set expression anyway. &lt;/SPAN&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;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; font-size: 13px;"&gt;Assuming that it not a row by row comparison and that the date format of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DATA_ESTRAZIONE_BANCA and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DT_RIFERIMENTO are the same&lt;/SPAN&gt;&lt;/SPAN&gt;, then you would need something like this:&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DATA_ESTRAZIONE_BANCA = P(DT_RIFERIMENTO)&amp;gt;} Distinct ABI)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or Sum(...) if that is what is required, or possibly without the "Distinct".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit == I see you want a calculated dimension. See next post&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-selection-Set-Analysis/m-p/893188#M311003</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-04-23T11:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar selection Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-selection-Set-Analysis/m-p/893189#M311004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a calc dimension containing the matching values of ABI, then possible this (depends on your data model):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Aggr(Only&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DATA_ESTRAZIONE_BANCA = P(DT_RIFERIMENTO)&amp;gt;} ABI), ABI)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:15:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-selection-Set-Analysis/m-p/893189#M311004</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-04-23T11:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar selection Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-selection-Set-Analysis/m-p/893190#M311005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's what I was trying to say that in the starting of the expression you need to write an aggregated function to use the set analysis and at the end need to mention a field name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-selection-Set-Analysis/m-p/893190#M311005</guid>
      <dc:creator>ankitaag</dc:creator>
      <dc:date>2015-04-23T11:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar selection Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-selection-Set-Analysis/m-p/893191#M311006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;If I understand correctly there will be some user selection in field DT_RIFERIMENTO and you want to filter DATA_ESTRAZIONE_BANCA based on that selection.I think below expression would work&lt;/P&gt;&lt;P&gt;Your expression:&lt;/P&gt;&lt;P&gt;{&amp;lt;ABI=, DATA_ESTRAZIONE_BANCA = {"$(=GetFieldSelections(DT_RIFERIMENTO))"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression which I tried:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;DMANUFACTURER={"$(=GetFieldSelections(MANUFACTURER))"}&amp;gt;}[SALES DOLLARS])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-selection-Set-Analysis/m-p/893191#M311006</guid>
      <dc:creator>prajuds99</dc:creator>
      <dc:date>2015-04-23T11:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar selection Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-selection-Set-Analysis/m-p/893192#M311007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes ankita said correct you need to do something with aggregated function to use the set analysis. But there are few basic principal before implement set analysis in calendar section as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly a standard Calendar is created using AutoGenerate. I also take the opportunity to incorporate Business Day flags (set by loading regional public holidays).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A Cartesian Product is then produced by left Joining Distinct Dates with itself without the key. This gives us all the possible date&lt;BR /&gt;combinations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then create the flags; Firstly Point In Time Flags such as Today, This Week, This Month, etc. Then period flags such as Previous Day, Previous Month, Previous Month to Date, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Update -&lt;/STRONG&gt; Following the comments I've added more code to the CLEAN UP tab to remove any lines where no flags have been set and any lines where the Possible Date is higher than the selected date which reduces the tables size by over 50%&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Update -&lt;/STRONG&gt; Fixed a bug resulting from the previous update&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Update 22-APR-2015 -&lt;/STRONG&gt; Fixed a bug which reduces the number of rows in the final calendar &lt;/P&gt;&lt;P&gt;I hope this of some use to people, I would love to hear your comments and further suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 11:28:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-selection-Set-Analysis/m-p/893192#M311007</guid>
      <dc:creator />
      <dc:date>2015-04-23T11:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar selection Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-selection-Set-Analysis/m-p/893193#M311008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't need a sum i need a list of IBAN related to the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DATA_ESTRAZIONE_BANCA field.&lt;/SPAN&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;Is it possible to obtain a formula in order to have this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 12:31:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-selection-Set-Analysis/m-p/893193#M311008</guid>
      <dc:creator>marco_puccetti</dc:creator>
      <dc:date>2015-04-23T12:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calendar selection Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Calendar-selection-Set-Analysis/m-p/893194#M311009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've decided to change the approach and take the data from the date table field, although there aren't all the calendar days, but a subset of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 13:02:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calendar-selection-Set-Analysis/m-p/893194#M311009</guid>
      <dc:creator>marco_puccetti</dc:creator>
      <dc:date>2015-04-23T13:02:17Z</dc:date>
    </item>
  </channel>
</rss>

