<?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: Unable to get proper o/p with Only function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Unable-to-get-proper-o-p-with-Only-function/m-p/1216702#M863823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Excel file attached you don't have c1, c2, c3... what are these? Only thing I see is PARENT_STATUS and CHILD_STATUS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Dec 2016 13:16:26 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-12-21T13:16:26Z</dc:date>
    <item>
      <title>Unable to get proper o/p with Only function</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-get-proper-o-p-with-Only-function/m-p/1216701#M863822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I wanted to get the Paent Status on the basis of Child Status.Suppose I have 5 child and their status is as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c1-Open&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;c2-Closed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;c3-Closed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;c4-Open&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;c5-Open&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If any one of the Child above is &lt;STRONG&gt;Open&lt;/STRONG&gt; then Parent status should consider as &lt;STRONG&gt;Open&lt;/STRONG&gt; and other logic is as below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;c1-Closed&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;c2-Closed&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;c3-Closed&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If&amp;nbsp; all of the Child above is &lt;STRONG&gt;Closed&lt;/STRONG&gt; then Parent status should consider as &lt;STRONG&gt;Closed&lt;/STRONG&gt; .I am using the below code in script but the o/p is coming wrong&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;IF(ONLY(CHILD_STATUS)='CLOSED','CLOSED','OPEN') AS PARENT_STATUS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;TABLE X;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;KK&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;A href="https://community.qlik.com/space/2003" target="_blank"&gt;New to QlikView&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/171708" target="_blank"&gt;stalwar1&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/70029" target="_blank"&gt;celambarasan&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/214941" target="_blank"&gt;saimahasan&lt;/A&gt;‌&lt;BR /&gt;&lt;/SPAN&gt;&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/Unable-to-get-proper-o-p-with-Only-function/m-p/1216701#M863822</guid>
      <dc:creator>Karim_Khan</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get proper o/p with Only function</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-get-proper-o-p-with-Only-function/m-p/1216702#M863823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Excel file attached you don't have c1, c2, c3... what are these? Only thing I see is PARENT_STATUS and CHILD_STATUS?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 13:16:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-get-proper-o-p-with-Only-function/m-p/1216702#M863823</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-21T13:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get proper o/p with Only function</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-get-proper-o-p-with-Only-function/m-p/1216703#M863824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assign numeric values to Status field during load&lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dual(ChildStatus,if(ChildStatus = 'Open',1,2)) as &lt;SPAN style="font-size: 13.3333px;"&gt;ChildStatus&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now for your Parent status use expression&amp;nbsp; = &lt;STRONG&gt;MinString&lt;/STRONG&gt;(ChildStatus)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 13:25:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-get-proper-o-p-with-Only-function/m-p/1216703#M863824</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-12-21T13:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get proper o/p with Only function</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-get-proper-o-p-with-Only-function/m-p/1216704#M863825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will it be fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PICK(WildMatch(ONLY(CHILD_STATUS),'CLOSED','OPEN'),'CLOSED','OPEN') AS PARENT_STATUS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 13:42:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-get-proper-o-p-with-Only-function/m-p/1216704#M863825</guid>
      <dc:creator>Karim_Khan</dc:creator>
      <dc:date>2016-12-21T13:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get proper o/p with Only function</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-get-proper-o-p-with-Only-function/m-p/1216705#M863826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Share some sample data. &lt;/P&gt;&lt;P&gt;Just want to make sure how your data is and also this can't be done single load statement for both Child status and Parent status.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 14:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-get-proper-o-p-with-Only-function/m-p/1216705#M863826</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2016-12-21T14:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get proper o/p with Only function</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-get-proper-o-p-with-Only-function/m-p/1216706#M863827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adhimulam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 14:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-get-proper-o-p-with-Only-function/m-p/1216706#M863827</guid>
      <dc:creator>Karim_Khan</dc:creator>
      <dc:date>2016-12-21T14:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get proper o/p with Only function</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-get-proper-o-p-with-Only-function/m-p/1216707#M863828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached app&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,dual(CHILD_SR_STATUS,if(CHILD_SR_STATUS='OPEN',1,2)) as DUAL_CHILD_SR_STATUS INLINE [&lt;/P&gt;&lt;P&gt;PARENT_ID,PARENT_STATUS,CHILD_ID,CHILD_SR_STATUS,CHILD_EXT_STATUS&lt;/P&gt;&lt;P&gt;P1,CLOSED,C1,CLOSED,Service Request Closed&lt;/P&gt;&lt;P&gt;P1,CLOSED,C1,CLOSED,Service Request Closed&lt;/P&gt;&lt;P&gt;P1,CLOSED,C1,CLOSED,Service Request Closed&lt;/P&gt;&lt;P&gt;P1,CLOSED,C1,CLOSED,Service Request Closed&lt;/P&gt;&lt;P&gt;P1,CLOSED,C1,CLOSED,System Closed&lt;/P&gt;&lt;P&gt;P2,OPEN,C2,CLOSED,Service Request Cancelled&lt;/P&gt;&lt;P&gt;P2,OPEN,C2,CLOSED,Service Request Cancelled&lt;/P&gt;&lt;P&gt;P3,CLOSED,C3,CLOSED,Service Request Rejected&lt;/P&gt;&lt;P&gt;P3,CLOSED,C3,CLOSED,Service Request Closed&lt;/P&gt;&lt;P&gt;P3,OPEN,C3,OPEN,Pending Payout Approval&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: =&lt;SPAN style="font-size: 13.3333px;"&gt;PARENT_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Expression=&amp;nbsp; minstring(&lt;SPAN style="font-size: 13.3333px;"&gt;DUAL_CHILD_SR_STATUS )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 14:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-get-proper-o-p-with-Only-function/m-p/1216707#M863828</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-12-21T14:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get proper o/p with Only function</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-get-proper-o-p-with-Only-function/m-p/1216708#M863829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parent:&lt;/P&gt;&lt;P&gt;LOAD PARENT_NUM, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHILD_NUM, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHILD_COUNT, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CURRENT_PARENT_STATUS, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHILD_SR_STATUS&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;CHILD_PARENT.xls&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is [Sheet1$]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join(Parent)&lt;/P&gt;&lt;P&gt;LOAD PARENT_NUM,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(CONCAT(DISTINCT CHILD_SR_STATUS) = 'CLOSED', 'CLOSED', 'OPEN') AS PARENT_STATUS&lt;/P&gt;&lt;P&gt;Resident Parent&lt;/P&gt;&lt;P&gt;Group By PARENT_NUM;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 11:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-get-proper-o-p-with-Only-function/m-p/1216708#M863829</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2016-12-22T11:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get proper o/p with Only function</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-get-proper-o-p-with-Only-function/m-p/1216709#M863830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for your reply same has been rectified logic is same as implement by you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 15:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-get-proper-o-p-with-Only-function/m-p/1216709#M863830</guid>
      <dc:creator>Karim_Khan</dc:creator>
      <dc:date>2016-12-22T15:25:09Z</dc:date>
    </item>
  </channel>
</rss>

