<?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 Conditioned, calculated Set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Conditioned-calculated-Set-analysis/m-p/99938#M6621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a case like this.&lt;/P&gt;&lt;P&gt;Dataset contains a work order WO_ID, it is unique and contains a number of deadlines WO_DL (date) in a product sequences. The number WO_ID is extreamly large, belong to different product groups and may inter connect in some way, such as a group WO_DL can only start if another WO_DL should be finished first, if it is delayed, the following WO_ID planned the deadline has to be reschadued, and the entire production process affected.&lt;BR /&gt;The WO_DL (for example at a perticular point), such as half-time in the production process (WO_DL50 predifined), but it can change from day to day, for many reasons, such as a parts delay, changes in the market, as well as empolyees situation such as disease, strick, etc. Dataset is created (CreatDay) daily as a snapshot from a large and complex DW.&lt;BR /&gt;As a manager I am interested in how mang total WO_ID having such a deadline changed, such as last Monday vs Monday before (the default), or months wise, or today vs yesterday or strik day end vs the day start to strik (be flexible),&amp;nbsp; ... ie RefDay vs RefToDay.&lt;/P&gt;&lt;P&gt;solution.&lt;BR /&gt;I download all the snapshots entire dateset in my app day after day, and every by CreatDay repeated for all WO_ID and its WO_DL50,&lt;/P&gt;&lt;P&gt;Inside the app I use set analysis:&lt;BR /&gt;Count({$ &amp;lt;Group = { 'G1'}, CreatDay = { '$ (vRefDay)'}&amp;gt;} WO_ID)&lt;BR /&gt; // count the number WO_ID on RefDay dataset for the Group1.&lt;/P&gt;&lt;P&gt;I'm more interested in those WO_ID on the RefDay with the WO_DL50 deadline changed comparing to RefToDay, i.e.:&lt;/P&gt;&lt;P&gt;DiffDay = ((only (CreatDay = { '$ (vRefDay )} WO_DL50) - only (CreatDay = {' $ (vRefToDay )} WO_DL50)) - = 0; &lt;BR /&gt;// looks at those on selected dates and deadlines are not equal.&lt;/P&gt;&lt;P&gt;I want to combine the Count and calculate a set expression analysis, but I failed:&lt;/P&gt;&lt;P&gt;Count({$ &amp;lt;DiffDay-={0}, CreatDay= { '$ (vRefDay)'}&amp;gt;} WO_ID)&lt;/P&gt;&lt;P&gt;What is the right solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Oct 2018 12:14:53 GMT</pubDate>
    <dc:creator>davidzhe</dc:creator>
    <dc:date>2018-10-12T12:14:53Z</dc:date>
    <item>
      <title>Conditioned, calculated Set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Conditioned-calculated-Set-analysis/m-p/99938#M6621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a case like this.&lt;/P&gt;&lt;P&gt;Dataset contains a work order WO_ID, it is unique and contains a number of deadlines WO_DL (date) in a product sequences. The number WO_ID is extreamly large, belong to different product groups and may inter connect in some way, such as a group WO_DL can only start if another WO_DL should be finished first, if it is delayed, the following WO_ID planned the deadline has to be reschadued, and the entire production process affected.&lt;BR /&gt;The WO_DL (for example at a perticular point), such as half-time in the production process (WO_DL50 predifined), but it can change from day to day, for many reasons, such as a parts delay, changes in the market, as well as empolyees situation such as disease, strick, etc. Dataset is created (CreatDay) daily as a snapshot from a large and complex DW.&lt;BR /&gt;As a manager I am interested in how mang total WO_ID having such a deadline changed, such as last Monday vs Monday before (the default), or months wise, or today vs yesterday or strik day end vs the day start to strik (be flexible),&amp;nbsp; ... ie RefDay vs RefToDay.&lt;/P&gt;&lt;P&gt;solution.&lt;BR /&gt;I download all the snapshots entire dateset in my app day after day, and every by CreatDay repeated for all WO_ID and its WO_DL50,&lt;/P&gt;&lt;P&gt;Inside the app I use set analysis:&lt;BR /&gt;Count({$ &amp;lt;Group = { 'G1'}, CreatDay = { '$ (vRefDay)'}&amp;gt;} WO_ID)&lt;BR /&gt; // count the number WO_ID on RefDay dataset for the Group1.&lt;/P&gt;&lt;P&gt;I'm more interested in those WO_ID on the RefDay with the WO_DL50 deadline changed comparing to RefToDay, i.e.:&lt;/P&gt;&lt;P&gt;DiffDay = ((only (CreatDay = { '$ (vRefDay )} WO_DL50) - only (CreatDay = {' $ (vRefToDay )} WO_DL50)) - = 0; &lt;BR /&gt;// looks at those on selected dates and deadlines are not equal.&lt;/P&gt;&lt;P&gt;I want to combine the Count and calculate a set expression analysis, but I failed:&lt;/P&gt;&lt;P&gt;Count({$ &amp;lt;DiffDay-={0}, CreatDay= { '$ (vRefDay)'}&amp;gt;} WO_ID)&lt;/P&gt;&lt;P&gt;What is the right solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2018 12:14:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditioned-calculated-Set-analysis/m-p/99938#M6621</guid>
      <dc:creator>davidzhe</dc:creator>
      <dc:date>2018-10-12T12:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Conditioned, calculated Set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Conditioned-calculated-Set-analysis/m-p/1542093#M39116</link>
      <description>&lt;P&gt;Try this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({$ &amp;lt;&lt;FONT color="#FF0000"&gt;DiffDay={"=((only (CreatDay = { '$ (vRefDay )} WO_DL50) - only (CreatDay = {' $ (vRefToDay )} WO_DL50))&amp;lt;&amp;gt;0"}&lt;/FONT&gt;, CreatDay= { '$ (vRefDay)'}&amp;gt;} WO_ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({$ &amp;lt;&lt;FONT color="#FF0000"&gt;DiffDay={"=($ (vRefDay )-$ (vRefToDay))&amp;lt;&amp;gt;0"}&lt;/FONT&gt;, CreatDay= { '$ (vRefDay)'}&amp;gt;} WO_ID)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 05:37:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditioned-calculated-Set-analysis/m-p/1542093#M39116</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-02-11T05:37:52Z</dc:date>
    </item>
  </channel>
</rss>

