<?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 Set Analysis - how to make calculation based on on the value of one field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-how-to-make-calculation-based-on-on-the-value-of/m-p/1800968#M1211678</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For a user story I need to measure if TaksX for the project has been completed on time or not. Currently it looks like below in set analysis. Only we have a new condition now where it should always check the BaselineDate and Delta for BaselineSource A first, when that source is available for project TaskX. If not then it should use the date and delta from source B for the calculation. How can i do that in an easy way?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Current script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;&lt;/P&gt;&lt;P&gt;TaskName = 'TaskX'&lt;BR /&gt;,BaselineName = 'BaselineX'&lt;BR /&gt;,BaselineDateCalendarYear = {'$(vF_CurrentYear)'}&lt;BR /&gt;,BaselineDate = {"&amp;lt;$(=Today())"}&lt;BR /&gt;,BaselineSource = {'A', 'B'}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;Aggr(If(Max({&amp;lt;&lt;/P&gt;&lt;P&gt;TaskName = 'TaskX'&lt;BR /&gt;,BaselineName = 'BaselineX'&lt;BR /&gt;,BaselineDateCalendarYear = {'$(vF_CurrentYear)'}&lt;BR /&gt;,BaselineDate = {"&amp;lt;$(=Today())"}&lt;BR /&gt;,BaselineSource = {'A', 'B'}&lt;BR /&gt;&amp;gt;} BaselineDelta ) &amp;lt;= Threshold&lt;BR /&gt;,1&lt;BR /&gt;), ProjectID)&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Tue, 20 Apr 2021 14:43:47 GMT</pubDate>
    <dc:creator>Spiller</dc:creator>
    <dc:date>2021-04-20T14:43:47Z</dc:date>
    <item>
      <title>Set Analysis - how to make calculation based on on the value of one field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-how-to-make-calculation-based-on-on-the-value-of/m-p/1800968#M1211678</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For a user story I need to measure if TaksX for the project has been completed on time or not. Currently it looks like below in set analysis. Only we have a new condition now where it should always check the BaselineDate and Delta for BaselineSource A first, when that source is available for project TaskX. If not then it should use the date and delta from source B for the calculation. How can i do that in an easy way?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Current script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;&lt;/P&gt;&lt;P&gt;TaskName = 'TaskX'&lt;BR /&gt;,BaselineName = 'BaselineX'&lt;BR /&gt;,BaselineDateCalendarYear = {'$(vF_CurrentYear)'}&lt;BR /&gt;,BaselineDate = {"&amp;lt;$(=Today())"}&lt;BR /&gt;,BaselineSource = {'A', 'B'}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;Aggr(If(Max({&amp;lt;&lt;/P&gt;&lt;P&gt;TaskName = 'TaskX'&lt;BR /&gt;,BaselineName = 'BaselineX'&lt;BR /&gt;,BaselineDateCalendarYear = {'$(vF_CurrentYear)'}&lt;BR /&gt;,BaselineDate = {"&amp;lt;$(=Today())"}&lt;BR /&gt;,BaselineSource = {'A', 'B'}&lt;BR /&gt;&amp;gt;} BaselineDelta ) &amp;lt;= Threshold&lt;BR /&gt;,1&lt;BR /&gt;), ProjectID)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 14:43:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-how-to-make-calculation-based-on-on-the-value-of/m-p/1800968#M1211678</guid>
      <dc:creator>Spiller</dc:creator>
      <dc:date>2021-04-20T14:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis - how to make calculation based on on the value of one field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-how-to-make-calculation-based-on-on-the-value-of/m-p/1801079#M1211687</link>
      <description>&lt;P&gt;without knowing more details, i would say create a new field in your script where you check for those conditions.&amp;nbsp; that way you dont create nested if statements in your expressions.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 20:22:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-how-to-make-calculation-based-on-on-the-value-of/m-p/1801079#M1211687</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-04-20T20:22:05Z</dc:date>
    </item>
  </channel>
</rss>

