<?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: [Hard] Set analysis with multiple dates by month in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1822751#M67474</link>
    <description>&lt;P&gt;I'm not sure if this is really a valid syntax - means either the + operator in combination with the &amp;lt;= comparing between the values as well as the values itself - just checking if ...&amp;nbsp;{"&amp;lt;=&lt;STRONG&gt;'&lt;/STRONG&gt;31.01.2021&lt;STRONG&gt;'&lt;/STRONG&gt;"} ... makes a difference.&lt;/P&gt;&lt;P&gt;Beside this I would say it's logically rather adverse to make the check against multiple values if you used &amp;lt;= because taking just the last list-parameter would be enough.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jul 2021 15:06:10 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2021-07-16T15:06:10Z</dc:date>
    <item>
      <title>[Hard] Set analysis with multiple dates by month</title>
      <link>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1822629#M67459</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've difficulty to have corrects results for a table chart aggreagate by end of months date and the max date of the current month.&lt;BR /&gt;In comparaison the KPI chart display the correct result for one date selected.&lt;/P&gt;&lt;P&gt;The application have 'Always one selected value' on the date field.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The KPI measure :&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="3"&gt;Count(Distinct&lt;BR /&gt;{&amp;lt;&amp;nbsp;&lt;/FONT&gt;&lt;FONT size="3"&gt;[DimKundenstamm.ValidFrom]={"&amp;lt;=$(vDateMax)"}, [DimKundenstamm.ValidTo]={"&amp;gt;=$(vDateMax)"}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;, [DimKundenstamm.Eroeffnungsdatum]={"&amp;gt;=$(vDateYearStart)&amp;lt;=$(vDateMax)"}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;, [DimKundenstamm.IsAufhebungsdatum]={1}, Date=&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="3"&gt;, %KundenstammId = P({&amp;lt; [DimKontostamm.ValidFrom]={"&amp;lt;=$(vDateMax)"}, [DimKontostamm.ValidTo]={"&amp;gt;=$(vDateMax)"}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;, [DimKontostamm.IsAufhebungsdatum]={1}, Date= &amp;gt;})&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT size="3"&gt;&amp;gt;} [DimKundenstamm.Kundenlaufnummer])&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;vDateMax = The one date selected&lt;BR /&gt;vDateYearStart = The first date of the year from the vDateMax&lt;/P&gt;&lt;P&gt;The measure contains two types of between:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;A between in the same field&lt;/LI&gt;&lt;LI&gt;A between on two fields&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The table chart measure:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Count(Distinct&lt;BR /&gt;{&amp;lt; [DimKundenstamm.ValidFrom]=$(vDateSetMin), [DimKundenstamm.ValidTo]=$(vDateSetMax)&lt;BR /&gt;, [DimKundenstamm.Eroeffnungsdatum]={"&amp;gt;=$(vDateYearStart)&amp;lt;=$(vDateMax)"}&lt;BR /&gt;, [DimKundenstamm.IsAufhebungsdatum]={1}, Date=&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;, %KundenstammId = P({&amp;lt; [DimKontostamm.ValidFrom]=$(vDateSetMin), [DimKontostamm.ValidTo]=$(vDateSetMax)&lt;BR /&gt;, [DimKontostamm.IsAufhebungsdatum]={1}, Date= &amp;gt;})&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;gt;} [DimKundenstamm.Kundenlaufnummer])&lt;/P&gt;&lt;P&gt;vDateSetMin =&amp;nbsp; '&amp;lt;=' +&amp;nbsp; contains all end of month date to the&amp;nbsp;date selected&lt;/P&gt;&lt;P&gt;vDateSetMax =&amp;nbsp; '&amp;gt;=' + contains all end of month date to the&amp;nbsp;date selected&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The KPI result is always correct. The measure inteprete &lt;U&gt;only one date&lt;/U&gt;&amp;nbsp;in the set analysis.&lt;/P&gt;&lt;P&gt;The table result is partially correct. This measure have &lt;U&gt;multiple dates&lt;/U&gt; in the set analysis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I provide a sample app (&lt;A href="https://www.dropbox.com/sh/r83lv5ugpbplqoo/AACHUusxa870Bi2GYykhujcza?dl=0" target="_blank" rel="noopener"&gt;link&lt;/A&gt;, file to big to attach)and a QVD with results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;BR /&gt;Théo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 07:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1822629#M67459</guid>
      <dc:creator>t_donnet</dc:creator>
      <dc:date>2021-07-16T07:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: [Hard] Set analysis with multiple dates by month</title>
      <link>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1822666#M67464</link>
      <description>&lt;P&gt;I'm not sure if I understand your issue right but the following things to ...&amp;nbsp;[DimKundenstamm.ValidFrom]=$(vDateSetMin) ... are noticeable:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the variable must return a whole valid string looking like {'value1', 'value2'}&lt;/LI&gt;&lt;LI&gt;the values must have the same format like the values from ValidFrom&lt;/LI&gt;&lt;LI&gt;the values will be the same for each row in your table - because set analysis worked on a colum-level not a row-level - if you need a row-level you need to use an if-loop&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 09:47:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1822666#M67464</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-07-16T09:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: [Hard] Set analysis with multiple dates by month</title>
      <link>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1822696#M67468</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;the variable&amp;nbsp;&lt;SPAN&gt;$(vDateSetMin) contains an automatic structure with values in good format&lt;BR /&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; {"&amp;lt;=31.01.2021"}+{"&amp;lt;=28.02.2021"}+{"&amp;lt;=31.03.2021"}+{"&amp;lt;=30.04.2021"} ...&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Can you give me more info with the if-loop? and an example?&lt;BR /&gt;I'll try this way.&lt;/P&gt;&lt;P&gt;Thanks again&lt;BR /&gt;Théo&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 11:53:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1822696#M67468</guid>
      <dc:creator>t_donnet</dc:creator>
      <dc:date>2021-07-16T11:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: [Hard] Set analysis with multiple dates by month</title>
      <link>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1822751#M67474</link>
      <description>&lt;P&gt;I'm not sure if this is really a valid syntax - means either the + operator in combination with the &amp;lt;= comparing between the values as well as the values itself - just checking if ...&amp;nbsp;{"&amp;lt;=&lt;STRONG&gt;'&lt;/STRONG&gt;31.01.2021&lt;STRONG&gt;'&lt;/STRONG&gt;"} ... makes a difference.&lt;/P&gt;&lt;P&gt;Beside this I would say it's logically rather adverse to make the check against multiple values if you used &amp;lt;= because taking just the last list-parameter would be enough.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 15:06:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1822751#M67474</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-07-16T15:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: [Hard] Set analysis with multiple dates by month</title>
      <link>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1822931#M67500</link>
      <description>&lt;P&gt;Hi Marcus,&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's all the thing: How to "translate" the KPI measure (with one date) to a measure that contains multiple dates.&lt;/P&gt;&lt;P&gt;I try to add simple quote around the date. It didn't go well, all results are 0.&lt;/P&gt;&lt;P&gt;Don't hesite to try out the sample app.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Théo&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 06:20:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1822931#M67500</guid>
      <dc:creator>t_donnet</dc:creator>
      <dc:date>2021-07-19T06:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: [Hard] Set analysis with multiple dates by month</title>
      <link>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1822950#M67502</link>
      <description>&lt;P&gt;I think it's more a logically mistake. The usual approach is to compare a date against:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;a list of dates - date = {'date1', 'date2', ...}&lt;/LI&gt;&lt;LI&gt;greater/lesser dates - date = {"&amp;lt;=date"}&lt;/LI&gt;&lt;LI&gt;between dates - date = {"&amp;gt;=date1&amp;lt;=date2"}&lt;/LI&gt;&lt;LI&gt;multiple date-ranges - date =&amp;nbsp;{"&amp;gt;=date1&amp;lt;=date2"} +&amp;nbsp;{"&amp;gt;=date3&amp;lt;=date4"}&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your attempt is different to it and beside possible syntax-issues it's IMO not logically correct. I assume that you want - at least for the moment - remain by your general object/expression-logic so that I think you need another variable which contains just the last parameter of your variable-string.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 07:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1822950#M67502</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-07-19T07:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: [Hard] Set analysis with multiple dates by month</title>
      <link>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1827705#M68143</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;I can understand that you stand for a logically mistake,&amp;nbsp; but it isnt.&amp;nbsp;&lt;BR /&gt;In bank companies, there use frequently a start date and an end date for a record on most of tables.&lt;BR /&gt;That's why it's complicate to find a solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the moment, I haven't a answer. Still struggling...&lt;/P&gt;&lt;P&gt;How do you see from your perpective to find a good approch?&lt;/P&gt;&lt;P&gt;Théo&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 11:32:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1827705#M68143</guid>
      <dc:creator>t_donnet</dc:creator>
      <dc:date>2021-08-10T11:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: [Hard] Set analysis with multiple dates by month</title>
      <link>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1827751#M68148</link>
      <description>&lt;P&gt;I never tried to compare multiple dates with a lesser/equal operator and linked with an OR condition within a set analysis or within another construct. Like above mentioned I think the variable should be better adjusted to a single date or startdate + enddate - this doesn't mean to change the included values of your condition else just to write the condition differently. Beside this I think you could with rather small efforts test if your logic and syntax worked - just by replacing the variable with two hard-coded dates and/or to trying to adjust it with another operators or other syntax-methods - just by playing a bit with them.&lt;/P&gt;&lt;P&gt;Further you may remove potential formatting/conversion issues by replacing the formatted dates with a pure numeric value - it's a general recommendation for all matchings and calculations.&lt;/P&gt;&lt;P&gt;Beside this it looked that you here aren't really comparing dates else months. Therefore it might be possible to change the logic to these periods - for example year(date) * 12 + month(date) returned a continuous number which might be then queried with &amp;lt;= or &amp;lt;= &amp;gt;= or just listed like … Field = {24001,24002,…} …&lt;/P&gt;&lt;P&gt;Before all of this I suggest to review the datamodel - is it really suitable to handle the multiple date-fields? Ideally none of such measures are needed to calculate/display the wanted views else more simple aggregations like sum(Field) are enough and the users selects what they want to see. In your case this might not be trivial but often there are possibilities to transfer a big part of the logic into the script. For this you may consider to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;apply intervalmatches to your start- and enddates to relate them with a single date&lt;/LI&gt;&lt;LI&gt;using of multiple master-calendar&lt;/LI&gt;&lt;LI&gt;combining the master-calendars into a canonical calendar&lt;/LI&gt;&lt;LI&gt;adding further as-of-tables&lt;/LI&gt;&lt;LI&gt;creating of multiple flags&lt;/LI&gt;&lt;LI&gt;using of island-tables for the selection - enables for example constructs like: … date = p(IslandDate) …&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;More to the meant considerations could you find here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/How-to-use-Master-Calendar-and-Date-Values/ta-p/1495741" target="_blank"&gt;How to use - Master-Calendar and Date-Values - Qlik Community - 1495741&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/IntervalMatch/ba-p/1464547" target="_blank"&gt;IntervalMatch - Qlik Community - 1464547&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130" target="_blank"&gt;The As-Of Table - Qlik Community - 1466130&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 13:35:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1827751#M68148</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-08-10T13:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: [Hard] Set analysis with multiple dates by month</title>
      <link>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1828010#M68179</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;The data model is already correct.&lt;/P&gt;&lt;P&gt;I tried to apply intervalmatch. A QVD with 200MB after intervalmatch transformation is store at 5.5GB !!!&lt;BR /&gt;&lt;SPAN&gt;The table contains only two years data.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;So there is an interval date table to avoid this huge QVD.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let's try this in the most simple way. Here's the data model in use.&lt;BR /&gt;(D&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;otted tables and associations are possible ways)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;ValidFrom&amp;nbsp;&lt;STRONG&gt;≠&amp;nbsp;&lt;/STRONG&gt;KontoValidFrom&lt;BR /&gt;ValidTo&amp;nbsp;&lt;STRONG&gt;≠&amp;nbsp;&lt;/STRONG&gt;KontoValidTo&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Untitled Diagram-Page-2.jpg" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/59971i99CA2B71921DB33A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled Diagram-Page-2.jpg" alt="Untitled Diagram-Page-2.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;&lt;FONT&gt;KPI&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;Count(Distinct&lt;BR /&gt;{&amp;lt; ValidFrom={"&amp;lt;=$(vDateMax)"}, ValidTo={"&amp;gt;=$(vDateMax)"}&lt;BR /&gt;, %Konto= P({&amp;lt; Konto.ValidFrom={"&amp;lt;=$(vDateMax)"}, Konto.ValidTo={"&amp;gt;=$(vDateMax)"},&amp;nbsp;&lt;SPAN&gt;%Date= &amp;gt;} )&lt;BR /&gt;&lt;/SPAN&gt;&amp;gt;} %Client)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vDateMax&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;= Max(Date) = Only one date selected in MasterCalendar&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The KPI result is always correct. The measure inteprete only one date in the set analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;How would you do with one measure by end of month?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Interpretation of that table chart:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Month&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Measure&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;January&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;Count(Distinct&lt;BR /&gt;{&amp;lt; ValidFrom={"&amp;lt;=31.01.2021"}, ValidTo={"&amp;gt;=31.01.2021"}&lt;BR /&gt;, %Konto= P({&amp;lt; Konto.ValidFrom={"&amp;lt;=31.01.2021"}, Konto.ValidTo={"&amp;gt;=31.01.2021"},&amp;nbsp;&lt;SPAN&gt;%Date= &amp;gt;} )&lt;BR /&gt;&lt;/SPAN&gt;&amp;gt;} %Client)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;February&lt;/TD&gt;&lt;TD&gt;Count(Distinct&lt;BR /&gt;{&amp;lt; ValidFrom={"&amp;lt;=28.02.2021"}, ValidTo={"&amp;gt;=28.02.2021"}&lt;BR /&gt;, %Konto= P({&amp;lt; Konto.ValidFrom={"&amp;lt;=28.02.2021"}, Konto.ValidTo={"&amp;gt;=28.02.2021"},&amp;nbsp;&lt;SPAN&gt;%Date= &amp;gt;} )&lt;BR /&gt;&lt;/SPAN&gt;&amp;gt;} %Client)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;March&lt;/TD&gt;&lt;TD&gt;Count(Distinct&lt;BR /&gt;{&amp;lt; ValidFrom={"&amp;lt;=31.03.2021"}, ValidTo={"&amp;gt;=31.03.2021"}&lt;BR /&gt;, %Konto= P({&amp;lt; Konto.ValidFrom={"&amp;lt;=31.03.2021"}, Konto.ValidTo={"&amp;gt;=31.03.2021"},&amp;nbsp;&lt;SPAN&gt;%Date= &amp;gt;} )&lt;BR /&gt;&lt;/SPAN&gt;&amp;gt;} %Client)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;April&lt;/TD&gt;&lt;TD&gt;Count(Distinct&lt;BR /&gt;{&amp;lt; ValidFrom={"&amp;lt;=30.04.2021"}, ValidTo={"&amp;gt;=30.04.2021"}&lt;BR /&gt;, %Konto= P({&amp;lt; Konto.ValidFrom={"&amp;lt;=30.04.2021"}, Konto.ValidTo={"&amp;gt;=30.04.2021"},&amp;nbsp;&lt;SPAN&gt;%Date= &amp;gt;} )&lt;BR /&gt;&lt;/SPAN&gt;&amp;gt;} %Client)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A client shouldn't be count if the result of the set analysis isn't in the correct month.&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I hope we can found a solution to this problem.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Théo&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 14:10:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1828010#M68179</guid>
      <dc:creator>t_donnet</dc:creator>
      <dc:date>2021-08-11T14:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: [Hard] Set analysis with multiple dates by month</title>
      <link>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1828012#M68180</link>
      <description>&lt;P&gt;And how banks developpers resolve that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not the first one to meet this kind of demand...&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 14:13:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1828012#M68180</guid>
      <dc:creator>t_donnet</dc:creator>
      <dc:date>2021-08-11T14:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: [Hard] Set analysis with multiple dates by month</title>
      <link>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1828045#M68188</link>
      <description>&lt;P&gt;Your datamodel may be correct but I'm not sure if it's specially suitable for your data and requirements.&lt;/P&gt;&lt;P&gt;Recommended - especially by larger datasets - is to develop a datamodel in the direction of a star-scheme. Means to have a single fact-table and n dimension-tables. And this in regard to the development efforts, logically easiness, maintainability as well as the UI performance. Link-table approaches are usually rather the worst case.&lt;/P&gt;&lt;P&gt;In regard to my suggestion to apply one or multiple intervalmatch logigs I must be a bit more preciser. I really meant the logic behind an intervalmatch but not to apply them within the classical and inbuilt way - which creates rather large link-tables with additionally synthetic keys. Personally I don't use it in this way else I apply appropriate while loops, like:&lt;/P&gt;&lt;P&gt;t: load date(from + iterno() - 1) as DATE from source while&amp;nbsp;from + iterno() - 1 &amp;lt;= to;&lt;/P&gt;&lt;P&gt;which is IMO much more flexible and enables me to associate the data without link-tables.&lt;/P&gt;&lt;P&gt;Transferred to your case I would try to resolve all from + to fields to real dates - at least for all matching/linking tasks and avoiding the link-tables. Like above mentioned the final logics within the UI should be as simple as possible so that simple user-selections are enough to control the used subset of data. To have all the from + to and loading + displaying them within the UI doesn't mean that they must be used to make all matchings with them else it would be better to flag, (pre-)calculate and associate the data already within the datamodel.&lt;/P&gt;&lt;P&gt;Beside this your intended set analysis logic within the table isn't possible in this way. The reason for it is that the measure is identically for all rows - the variable has always one value and won't change within the row to apply :&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ValidFrom={"&amp;lt;=31.01.2021"}, ValidTo={"&amp;gt;=31.01.2021"} for January and&lt;BR /&gt;ValidFrom={"&amp;lt;=28.02.2021"}, ValidTo={"&amp;gt;=28.02.2021"} for February and so on ...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;To evaluate something in this way you would need a logic like:&lt;/P&gt;&lt;P&gt;if(Month = 'January', exprJanuary,&amp;nbsp;if(Month = 'February', exprFebruary ...&amp;nbsp;&lt;/P&gt;&lt;P&gt;whereby such an approach couldn't be recommended - neither form the efforts to develop the logic nor from the performance point of view.&lt;/P&gt;&lt;P&gt;Therefore I must repeat my suggestion to review the whole datamodel and to develop a real Qlik datamodel instead like it looked of transferring a sql-scheme with more or less adjustments to Qlik.&lt;/P&gt;&lt;P&gt;- Marcus&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 15:17:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Hard-Set-analysis-with-multiple-dates-by-month/m-p/1828045#M68188</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-08-11T15:17:35Z</dc:date>
    </item>
  </channel>
</rss>

