<?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 Count Contracts per period over all Data based on contract start/end date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Contracts-per-period-over-all-Data-based-on-contract-start/m-p/2011475#M1221772</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;I would like to count the number of contracts that are active in each month.&lt;BR /&gt;&lt;BR /&gt;NumberOfActiveContracts =&lt;BR /&gt;Count(TOTAL DISTINCT {$&amp;lt;SV_WARTUNG_VONLAUFZEIT={"&amp;lt;=$($(vMaxLinkCalendar))"},SV_WARTUNG_BISLAUFZEIT2={"&amp;gt;=$($(vMinLinkCalendar))"}&amp;gt;} WE_Fabriknummer)&lt;/P&gt;
&lt;P&gt;MinDate = $(vMinLinkCalendar)&lt;/P&gt;
&lt;P&gt;MaxDate = $(vMaxLinkCalendar)&lt;BR /&gt;vMinLinkCalendar =Date(MIN(if(LINK_CALENDAR&amp;lt;'01.12.2020','01.12.2020',LINK_CALENDAR)),'DD.MM.YYYY')&lt;/P&gt;
&lt;P&gt;vMaxLinkCalendar = Date(MAX(LINK_CALENDAR),'DD.MM.YYYY')&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wmarkett1983_1-1669899926138.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/95098i5FFDFE8859710EF0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="wmarkett1983_1-1669899926138.png" alt="wmarkett1983_1-1669899926138.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The expression NumberOfActiveContracts gives for each Month(Monat) the same values, because the variables vMinLinkCalender or vMaxLinkCalender are executed with "TOTAL" and not only for the Month-Dimension. How can I achieve this?&lt;BR /&gt;&lt;BR /&gt;Ist ist possible to execute an expression/variable without TOTAL in an expression with TOTAL?&lt;BR /&gt;I tried to use the column values MinDate/MaxDate in the set analysis, but that does not work.&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Dec 2022 07:50:38 GMT</pubDate>
    <dc:creator>wmarkett1983</dc:creator>
    <dc:date>2022-12-02T07:50:38Z</dc:date>
    <item>
      <title>Count Contracts per period over all Data based on contract start/end date</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Contracts-per-period-over-all-Data-based-on-contract-start/m-p/2011475#M1221772</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I would like to count the number of contracts that are active in each month.&lt;BR /&gt;&lt;BR /&gt;NumberOfActiveContracts =&lt;BR /&gt;Count(TOTAL DISTINCT {$&amp;lt;SV_WARTUNG_VONLAUFZEIT={"&amp;lt;=$($(vMaxLinkCalendar))"},SV_WARTUNG_BISLAUFZEIT2={"&amp;gt;=$($(vMinLinkCalendar))"}&amp;gt;} WE_Fabriknummer)&lt;/P&gt;
&lt;P&gt;MinDate = $(vMinLinkCalendar)&lt;/P&gt;
&lt;P&gt;MaxDate = $(vMaxLinkCalendar)&lt;BR /&gt;vMinLinkCalendar =Date(MIN(if(LINK_CALENDAR&amp;lt;'01.12.2020','01.12.2020',LINK_CALENDAR)),'DD.MM.YYYY')&lt;/P&gt;
&lt;P&gt;vMaxLinkCalendar = Date(MAX(LINK_CALENDAR),'DD.MM.YYYY')&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wmarkett1983_1-1669899926138.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/95098i5FFDFE8859710EF0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="wmarkett1983_1-1669899926138.png" alt="wmarkett1983_1-1669899926138.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The expression NumberOfActiveContracts gives for each Month(Monat) the same values, because the variables vMinLinkCalender or vMaxLinkCalender are executed with "TOTAL" and not only for the Month-Dimension. How can I achieve this?&lt;BR /&gt;&lt;BR /&gt;Ist ist possible to execute an expression/variable without TOTAL in an expression with TOTAL?&lt;BR /&gt;I tried to use the column values MinDate/MaxDate in the set analysis, but that does not work.&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 07:50:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Contracts-per-period-over-all-Data-based-on-contract-start/m-p/2011475#M1221772</guid>
      <dc:creator>wmarkett1983</dc:creator>
      <dc:date>2022-12-02T07:50:38Z</dc:date>
    </item>
  </channel>
</rss>

