<?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: Year to Date Average Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Year-to-Date-Average-Set-Analysis/m-p/2440332#M97245</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe this one ?&lt;/P&gt;
&lt;P&gt;Avg({&amp;lt;Product=,[Product Type]={'Mens,Womens'},[Start Date]={"&amp;gt;= $(=YearStart(Today()))"}, [End Date]={"&amp;lt;= $(=Today())"}&amp;gt;} Days)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I haven't tested it !&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2024 16:30:29 GMT</pubDate>
    <dc:creator>mpc</dc:creator>
    <dc:date>2024-04-11T16:30:29Z</dc:date>
    <item>
      <title>Year to Date Average Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Year-to-Date-Average-Set-Analysis/m-p/2440286#M97242</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;I am trying to calculate the year to date average based on year selected. I do have a Master Calendar with a YearMonth field.&lt;/P&gt;
&lt;P&gt;I would like to build a Set Analysis expression so that when certain criteria are fulfilled it calculates my average.&lt;/P&gt;
&lt;P&gt;Below is a sample of data where the average value should fall in the Completion Month. As shown in the data, January value will be zero, anyway to force the zero in the chart when there is no value as well (null).&lt;/P&gt;
&lt;P&gt;Criteria for the Set analysis expression is:&lt;/P&gt;
&lt;P&gt;Products (All)&lt;/P&gt;
&lt;P&gt;Product Type (Mens, Women)&lt;/P&gt;
&lt;P&gt;YTD Average of days based on End Date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZoeM_0-1712847454672.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/163915i4CB4218E72FEC8BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZoeM_0-1712847454672.png" alt="ZoeM_0-1712847454672.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 14:58:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Year-to-Date-Average-Set-Analysis/m-p/2440286#M97242</guid>
      <dc:creator>ZoeM</dc:creator>
      <dc:date>2024-04-11T14:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date Average Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Year-to-Date-Average-Set-Analysis/m-p/2440332#M97245</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe this one ?&lt;/P&gt;
&lt;P&gt;Avg({&amp;lt;Product=,[Product Type]={'Mens,Womens'},[Start Date]={"&amp;gt;= $(=YearStart(Today()))"}, [End Date]={"&amp;lt;= $(=Today())"}&amp;gt;} Days)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I haven't tested it !&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 16:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Year-to-Date-Average-Set-Analysis/m-p/2440332#M97245</guid>
      <dc:creator>mpc</dc:creator>
      <dc:date>2024-04-11T16:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date Average Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Year-to-Date-Average-Set-Analysis/m-p/2440337#M97246</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/251190"&gt;@mpc&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However it did not change the data/work as expected.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 16:51:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Year-to-Date-Average-Set-Analysis/m-p/2440337#M97246</guid>
      <dc:creator>ZoeM</dc:creator>
      <dc:date>2024-04-11T16:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date Average Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Year-to-Date-Average-Set-Analysis/m-p/2440495#M97264</link>
      <description>&lt;P&gt;So I need to test it. I'll be back (Terminator voice)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 07:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Year-to-Date-Average-Set-Analysis/m-p/2440495#M97264</guid>
      <dc:creator>mpc</dc:creator>
      <dc:date>2024-04-12T07:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date Average Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Year-to-Date-Average-Set-Analysis/m-p/2440618#M97277</link>
      <description>&lt;P&gt;Maybe this one:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Avg({&amp;lt; Product=,[Product Type]={'Mens','Womens'},YearMonth=,[Start Date]={"&amp;gt;=$(=YearStart(YearMonth))"},[End Date]={"&amp;lt;=$(=(Today()))"} &amp;gt;} Days)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="maximepiquetcointe_0-1712921720585.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/163967i3CB53485F09A1DD6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="maximepiquetcointe_0-1712921720585.png" alt="maximepiquetcointe_0-1712921720585.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 11:35:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Year-to-Date-Average-Set-Analysis/m-p/2440618#M97277</guid>
      <dc:creator>mpc</dc:creator>
      <dc:date>2024-04-12T11:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date Average Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Year-to-Date-Average-Set-Analysis/m-p/2441881#M97381</link>
      <description>&lt;P&gt;So I was able to find a solution that fits my needs by using the Range expression combined with Set analysis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is my expression, make sure you do not select accumulate since the expression itself will do that for you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RangeSum(above((sum({$&amp;lt;[Date Type]={'Sale Date'},Products={'Shoes','Shirts','Socks'},Sale={'Y'}&amp;gt;} [Business Days Late])), 0, rowno()))&lt;BR /&gt;/&lt;BR /&gt;RangeSum(above((Count({$&amp;lt;[Date Type]={'Sale Date'},Gateways={'Shoes','Shirts','Socks'},Sale={'Y'}&amp;gt;} [product line])), 0, rowno()))&lt;/P&gt;
&lt;P&gt;I hope this helps someone else. And thanks for everyone who helped me come to this solution.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 21:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Year-to-Date-Average-Set-Analysis/m-p/2441881#M97381</guid>
      <dc:creator>ZoeM</dc:creator>
      <dc:date>2024-04-16T21:38:50Z</dc:date>
    </item>
  </channel>
</rss>

