<?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: condition based dimension in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/condition-based-dimension-in-script/m-p/1647571#M731291</link>
    <description>try this:&lt;BR /&gt;MAIN:&lt;BR /&gt;load&lt;BR /&gt;name, description&lt;BR /&gt;from MAIN.QVD;&lt;BR /&gt;&lt;BR /&gt;aux_1:&lt;BR /&gt;LOAD&lt;BR /&gt;name ,&lt;BR /&gt;if ( wildmatch(aux , 'Failed' ) &amp;gt; 0 ) , 'Failed' , 'Success' ) status_1;&lt;BR /&gt;LOAD name , concat(description) as aux&lt;BR /&gt;resident main&lt;BR /&gt;GROUP BY name ;&lt;BR /&gt;&lt;BR /&gt;left join (MAIN)&lt;BR /&gt;load name , status_1 as status&lt;BR /&gt;resident aux_1;&lt;BR /&gt;drop table aux_1;&lt;BR /&gt;&lt;BR /&gt;saludos!!!&lt;BR /&gt;</description>
    <pubDate>Fri, 15 Nov 2019 15:51:28 GMT</pubDate>
    <dc:creator>Marcos_rv</dc:creator>
    <dc:date>2019-11-15T15:51:28Z</dc:date>
    <item>
      <title>condition based dimension in script</title>
      <link>https://community.qlik.com/t5/QlikView/condition-based-dimension-in-script/m-p/1647544#M731290</link>
      <description>&lt;P&gt;HI Experts,&lt;/P&gt;&lt;P&gt;I have a data like below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="praveen1.jpg" style="width: 253px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23775iBDE89F7C3F1336EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="praveen1.jpg" alt="praveen1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;if you observe in the above, Description have different values. Based on a particular value(Failed)&amp;nbsp; all the values of description should be Failed for ABC01 value else it should be Success.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the expected for reference&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Prv2.jpg" style="width: 352px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/23776i910E18CD03A2AA16/image-size/large?v=v2&amp;amp;px=999" role="button" title="Prv2.jpg" alt="Prv2.jpg" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to derive in load script. Please share your comments.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-based-dimension-in-script/m-p/1647544#M731290</guid>
      <dc:creator>viveksingh</dc:creator>
      <dc:date>2024-11-16T01:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: condition based dimension in script</title>
      <link>https://community.qlik.com/t5/QlikView/condition-based-dimension-in-script/m-p/1647571#M731291</link>
      <description>try this:&lt;BR /&gt;MAIN:&lt;BR /&gt;load&lt;BR /&gt;name, description&lt;BR /&gt;from MAIN.QVD;&lt;BR /&gt;&lt;BR /&gt;aux_1:&lt;BR /&gt;LOAD&lt;BR /&gt;name ,&lt;BR /&gt;if ( wildmatch(aux , 'Failed' ) &amp;gt; 0 ) , 'Failed' , 'Success' ) status_1;&lt;BR /&gt;LOAD name , concat(description) as aux&lt;BR /&gt;resident main&lt;BR /&gt;GROUP BY name ;&lt;BR /&gt;&lt;BR /&gt;left join (MAIN)&lt;BR /&gt;load name , status_1 as status&lt;BR /&gt;resident aux_1;&lt;BR /&gt;drop table aux_1;&lt;BR /&gt;&lt;BR /&gt;saludos!!!&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Nov 2019 15:51:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-based-dimension-in-script/m-p/1647571#M731291</guid>
      <dc:creator>Marcos_rv</dc:creator>
      <dc:date>2019-11-15T15:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: condition based dimension in script</title>
      <link>https://community.qlik.com/t5/QlikView/condition-based-dimension-in-script/m-p/1647733#M731292</link>
      <description>&lt;P&gt;Thanks for the reply. But this is not working as expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can help to provide another type of solution/work around please.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2019 13:11:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-based-dimension-in-script/m-p/1647733#M731292</guid>
      <dc:creator>viveksingh</dc:creator>
      <dc:date>2019-11-17T13:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: condition based dimension in script</title>
      <link>https://community.qlik.com/t5/QlikView/condition-based-dimension-in-script/m-p/1648775#M731293</link>
      <description>&lt;P&gt;Vivek, you would need to use Group by or Order by in the load and then use the Peek() function I believe to check for that string and if you hit it, then 'map' the other status values all to Failed at that point, but I am afraid I cannot code this for you, only point you in the right direction.&amp;nbsp; Someone else may still chime in though, as my comment will kick things back up in the list again, so maybe someone else will be able to share some code, but you could also search prior posts, as I am pretty sure you will find some examples out there that will help you get things right on this one, as this is fairly comment scenario.&amp;nbsp; Sorry I do not have better for you.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 22:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-based-dimension-in-script/m-p/1648775#M731293</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-11-19T22:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: condition based dimension in script</title>
      <link>https://community.qlik.com/t5/QlikView/condition-based-dimension-in-script/m-p/1648809#M731294</link>
      <description>&lt;P&gt;In load script:&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;load *, if(Name='ABC 01','Failed','Success')as Status&lt;/P&gt;&lt;P&gt;resident &lt;STRONG&gt;&lt;EM&gt;&amp;lt;YourTableName&amp;gt;&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;drop table &lt;STRONG&gt;&lt;EM&gt;&amp;lt;YourTableName&amp;gt;&lt;/EM&gt;&lt;/STRONG&gt;;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 03:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-based-dimension-in-script/m-p/1648809#M731294</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-11-20T03:48:22Z</dc:date>
    </item>
  </channel>
</rss>

