<?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: Fitting a dollar expression from a date into set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fitting-a-dollar-expression-from-a-date-into-set-analysis/m-p/1370726#M827445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, how are master month date and Closed Month related to each other? May be ignore selection in master month date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {1&amp;lt;[ClosedMonth]={"&amp;gt;=$(=Date(AddMonths(Min([Master Month Date]), -12, 1),'DD/MM/YYYY'))"}, [master month date] = &amp;gt;} ReferenceNumber)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Jul 2017 13:20:56 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-07-12T13:20:56Z</dc:date>
    <item>
      <title>Fitting a dollar expression from a date into set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Fitting-a-dollar-expression-from-a-date-into-set-analysis/m-p/1370724#M827443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written a dollar expansion that returns the minium date from the 'master month date' list box, then subtracts 12 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='$(=DATE(ADDMONTHS(MIN(DATE([Master Month Date],'DD/MM/YYYY')),-12,1),'DD/MM/YYYY'))' &lt;/P&gt;&lt;P&gt;The above formula is in a text box and works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next step is to fit this into set analysis:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; {1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ClosedMonth]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=DATE(ADDMONTHS(MIN(DATE([Master Month Date],'DD/MM/YYYY')),-12,1),'DD/MM/YYYY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} ReferenceNumber) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to return is the data set from 12 months before the current minimum date selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Closed month is the dimension and the above count formula is the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neil.&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/Fitting-a-dollar-expression-from-a-date-into-set-analysis/m-p/1370724#M827443</guid>
      <dc:creator>tinkerz1</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fitting a dollar expression from a date into set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Fitting-a-dollar-expression-from-a-date-into-set-analysis/m-p/1370725#M827444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the Format of Closed Month?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jul 2017 13:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fitting-a-dollar-expression-from-a-date-into-set-analysis/m-p/1370725#M827444</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2017-07-12T13:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Fitting a dollar expression from a date into set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Fitting-a-dollar-expression-from-a-date-into-set-analysis/m-p/1370726#M827445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, how are master month date and Closed Month related to each other? May be ignore selection in master month date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {1&amp;lt;[ClosedMonth]={"&amp;gt;=$(=Date(AddMonths(Min([Master Month Date]), -12, 1),'DD/MM/YYYY'))"}, [master month date] = &amp;gt;} ReferenceNumber)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jul 2017 13:20:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fitting-a-dollar-expression-from-a-date-into-set-analysis/m-p/1370726#M827445</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-12T13:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Fitting a dollar expression from a date into set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Fitting-a-dollar-expression-from-a-date-into-set-analysis/m-p/1370727#M827446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Master month date is in my master calendar, it stores all month end dates for all transactions,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore when selected this will link to closed month in the fact table to the Master calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done this many times, but not tried to have the Master Month Date 12 months before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;an example is&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ResolvedMonth]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=$::&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Master Month Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date Reference Info]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Resolved Date'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OverallOutcome&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Upheld','Partially Upheld'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ReferenceNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jul 2017 13:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fitting-a-dollar-expression-from-a-date-into-set-analysis/m-p/1370727#M827446</guid>
      <dc:creator>tinkerz1</dc:creator>
      <dc:date>2017-07-12T13:40:27Z</dc:date>
    </item>
  </channel>
</rss>

