<?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: Calculated dimesion in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-dimesion/m-p/1943795#M1219476</link>
    <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp; have&amp;nbsp; write the logic in the&amp;nbsp; calculated dimension&amp;nbsp; so can you please&amp;nbsp; me with the expression and I also I will be using two se[rate tables&amp;nbsp; for show Active Products and Passive Products .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 07:08:21 GMT</pubDate>
    <dc:creator>smilingjohn</dc:creator>
    <dc:date>2022-06-15T07:08:21Z</dc:date>
    <item>
      <title>Calculated dimesion</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimesion/m-p/1943746#M1219473</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a below set of data.&amp;nbsp; using this I need to show a pivot table in two two tables&amp;nbsp; one is Active and other is passive.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Active table only those products should appear whose Phase date should be equal to today or future date.&amp;nbsp;In Passive table only those product should appear whose phase date is null or less then today .&amp;nbsp;To achieve&amp;nbsp; this I have used below calculated&amp;nbsp; dimension&amp;nbsp;&amp;nbsp;Active &amp;nbsp;=if(Phase&amp;gt;=Today(),Product)&amp;nbsp; &amp;nbsp;and&amp;nbsp;Passive&amp;nbsp;=if(isnull(Phase) or Phase&amp;lt;Today(),Product).&lt;/P&gt;
&lt;P&gt;DATA:&lt;/P&gt;
&lt;TABLE width="399px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64.2344px"&gt;Product&lt;/TD&gt;
&lt;TD width="116.531px"&gt;Phase1&lt;/TD&gt;
&lt;TD width="100.672px"&gt;Phase2&lt;/TD&gt;
&lt;TD width="116.562px"&gt;Phase3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64.2344px"&gt;A&lt;/TD&gt;
&lt;TD width="116.531px"&gt;11-06-2022&lt;/TD&gt;
&lt;TD width="100.672px"&gt;17-06-2022&lt;/TD&gt;
&lt;TD width="116.562px"&gt;20-01-2023&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64.2344px"&gt;B&lt;/TD&gt;
&lt;TD width="116.531px"&gt;13-07-2024&lt;/TD&gt;
&lt;TD width="100.672px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="116.562px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64.2344px"&gt;C&lt;/TD&gt;
&lt;TD width="116.531px"&gt;25-12-2021&lt;/TD&gt;
&lt;TD width="100.672px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="116.562px"&gt;20-01-2025&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64.2344px"&gt;D&lt;/TD&gt;
&lt;TD width="116.531px"&gt;01-01-2020&lt;/TD&gt;
&lt;TD width="100.672px"&gt;19-07-2021&lt;/TD&gt;
&lt;TD width="116.562px"&gt;02-02-2022&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OUTPUT:&lt;/P&gt;
&lt;TABLE width="593"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64.25px" height="25px"&gt;ACTIVE&lt;/TD&gt;
&lt;TD width="70.0156px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="70.0156px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="70.0156px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="59.0156px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="66.0156px" height="25px"&gt;PASSIVE&lt;/TD&gt;
&lt;TD width="70.0156px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="59.4375px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="63.2188px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64.25px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="70.0156px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="70.0156px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="70.0156px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="59.0156px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="66.0156px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="70.0156px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="59.4375px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="63.2188px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64.25px" height="25px"&gt;Product&lt;/TD&gt;
&lt;TD width="70.0156px" height="25px"&gt;Phase1&lt;/TD&gt;
&lt;TD width="70.0156px" height="25px"&gt;Phase2&lt;/TD&gt;
&lt;TD width="70.0156px" height="25px"&gt;Phase3&lt;/TD&gt;
&lt;TD width="59.0156px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="66.0156px" height="25px"&gt;Product&lt;/TD&gt;
&lt;TD width="70.0156px" height="25px"&gt;Phase1&lt;/TD&gt;
&lt;TD width="59.4375px" height="25px"&gt;Phase2&lt;/TD&gt;
&lt;TD width="63.2188px" height="25px"&gt;Phase3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64.25px" height="47px"&gt;A&lt;/TD&gt;
&lt;TD width="70.0156px" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="70.0156px" height="47px"&gt;17-06-2022&lt;/TD&gt;
&lt;TD width="70.0156px" height="47px"&gt;20-01-2023&lt;/TD&gt;
&lt;TD width="59.0156px" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="66.0156px" height="47px"&gt;A&lt;/TD&gt;
&lt;TD width="70.0156px" height="47px"&gt;11-06-2022&lt;/TD&gt;
&lt;TD width="59.4375px" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="63.2188px" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64.25px" height="47px"&gt;B&lt;/TD&gt;
&lt;TD width="70.0156px" height="47px"&gt;13-07-2024&lt;/TD&gt;
&lt;TD width="70.0156px" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="70.0156px" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="59.0156px" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="66.0156px" height="47px"&gt;B&lt;/TD&gt;
&lt;TD width="70.0156px" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="59.4375px" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="63.2188px" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64.25px" height="47px"&gt;C&lt;/TD&gt;
&lt;TD width="70.0156px" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="70.0156px" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="70.0156px" height="47px"&gt;20-01-2025&lt;/TD&gt;
&lt;TD width="59.0156px" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="66.0156px" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="70.0156px" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="59.4375px" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="63.2188px" height="47px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="64.25px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="70.0156px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="70.0156px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="70.0156px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="59.0156px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="66.0156px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="70.0156px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="59.4375px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="63.2188px" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But this is not the right way as the number pf products are displaying in both the tables .......&lt;/P&gt;
&lt;P&gt;Passive table should display product only if all the phase date are either past date or all are null&amp;nbsp; even if&amp;nbsp; phase 1 and phase 2 are null and phase3 is having past date then it should display .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected output:&lt;/P&gt;
&lt;TABLE width="399"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;Product&lt;/TD&gt;
&lt;TD width="117"&gt;Phase1&lt;/TD&gt;
&lt;TD width="101"&gt;Phase2&lt;/TD&gt;
&lt;TD width="117"&gt;Phase3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;D&lt;/TD&gt;
&lt;TD&gt;01-01-2020&lt;/TD&gt;
&lt;TD&gt;19-07-2021&lt;/TD&gt;
&lt;TD&gt;02-02-2022&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For Active table if any of phase is having future date&amp;nbsp; and other phase is having past date or null then still this should be displayed in Active table with same value either null or past date . if you look in my Active table output above the formula making the past date blank , shish should be as it is .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can please someone help me on this ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 05:06:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimesion/m-p/1943746#M1219473</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2022-06-15T05:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimesion</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimesion/m-p/1943775#M1219475</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try like below&lt;/P&gt;
&lt;P&gt;Load *, If(Phase &amp;gt;= Today(), 'Active', 'Passive') as Flag;&lt;BR /&gt;LOAD *, Date(RangeMax(Phase1, Phase2, Phase3)) as Phase INLINE [&lt;BR /&gt;Product, Phase1, Phase2, Phase3&lt;BR /&gt;A, 11-06-2022, 17-06-2022, 20-01-2023&lt;BR /&gt;B, 13-07-2024, , &lt;BR /&gt;C, 25-12-2021, , 20-01-2025&lt;BR /&gt;D, 01-01-2020, 19-07-2021, 02-02-2022&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MayilVahanan_0-1655274790151.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/81793iAE7D16B9EA77A8AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MayilVahanan_0-1655274790151.png" alt="MayilVahanan_0-1655274790151.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 06:33:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimesion/m-p/1943775#M1219475</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2022-06-15T06:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimesion</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimesion/m-p/1943795#M1219476</link>
      <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp; have&amp;nbsp; write the logic in the&amp;nbsp; calculated dimension&amp;nbsp; so can you please&amp;nbsp; me with the expression and I also I will be using two se[rate tables&amp;nbsp; for show Active Products and Passive Products .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 07:08:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimesion/m-p/1943795#M1219476</guid>
      <dc:creator>smilingjohn</dc:creator>
      <dc:date>2022-06-15T07:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimesion</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimesion/m-p/1943806#M1219477</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If front end, try like below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dim1: Product&lt;/P&gt;
&lt;P&gt;Dim2: =Aggr(If(RangeMax(Phase1, Phase2, Phase3)&amp;gt;=Today(), 'Active', 'Passive'), Product)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MayilVahanan_0-1655277988188.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/81798iBB3EEB34B8741C86/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MayilVahanan_0-1655277988188.png" alt="MayilVahanan_0-1655277988188.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 07:26:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimesion/m-p/1943806#M1219477</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2022-06-15T07:26:57Z</dc:date>
    </item>
  </channel>
</rss>

