<?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: If wih multiples conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-wih-multiples-conditions/m-p/1530060#M438690</link>
    <description>&lt;P&gt;Hi Marcurs!&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;What I have done was to build two Line References following your code:&lt;/P&gt;&lt;P&gt;External&lt;/P&gt;&lt;P&gt;if(Company ='HMH' and [Creation Year]=2018, 0.14,&lt;BR /&gt;if(Company ='HMG' and [Creation Year]=2018, 0.59,&lt;BR /&gt;if(Company ='HMN' and [Creation Year]=2018, 0.14,0)))&lt;/P&gt;&lt;P&gt;Internal&lt;/P&gt;&lt;P&gt;if(Company ='HMH' and [Creation Year]=2018, 0.68,&lt;BR /&gt;if(Company ='HMG' and [Creation Year]=2018, 0.35,&lt;BR /&gt;if(Company ='HMN' and [Creation Year]=2018, 0.24,0)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In that way I have both references lines. it was the easier solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I did get your idea with getselectedcount() &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;Edi&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jan 2019 14:53:54 GMT</pubDate>
    <dc:creator>Zaga_69</dc:creator>
    <dc:date>2019-01-14T14:53:54Z</dc:date>
    <item>
      <title>If wih multiples conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-wih-multiples-conditions/m-p/1529742#M438673</link>
      <description>&lt;P&gt;Hi dear all,&lt;/P&gt;&lt;P&gt;I ma trying to fix the following condition for a reference line a&amp;nbsp; Bar chart.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(Company='HMG' and [Creation Year]='2018',0.5,0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;However it does not work.&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Edi&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:46:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-wih-multiples-conditions/m-p/1529742#M438673</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2024-11-16T04:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: If wih multiples conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-wih-multiples-conditions/m-p/1529746#M438675</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I tried the following code line and works:&lt;/P&gt;&lt;P&gt;IF(Company='HMG' and [Creation Year]=2018 , 0.59,0)&lt;/P&gt;&lt;P&gt;However what I would like to do is creating two references lines when users select Company and Creation Year. I realized that I can create multiple Reference Lines by just adding a new reference line "Add reference Line".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;IF(Company='HMG' and [Creation Year]=2018 , 0.68,0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="reference line.PNG" style="width: 439px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3667iB0BA1C6D6189A10E/image-size/large?v=v2&amp;amp;px=999" role="button" title="reference line.PNG" alt="reference line.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In my case it is not a solution because when the user select another company , I will have the another reference lines as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;What I need is to add two reference lines depending on the Company and Creation Year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any Idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edi&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jan 2019 13:52:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-wih-multiples-conditions/m-p/1529746#M438675</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2019-01-13T13:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: If wih multiples conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-wih-multiples-conditions/m-p/1529754#M438677</link>
      <description>&lt;P&gt;I think you could just nest your conditions like:&lt;/P&gt;&lt;P&gt;if(company = 'a' and year = 2018, x,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if(company = 'b' and year = 2018, y, z))&lt;/P&gt;&lt;P&gt;and you might also include a further check if the companies are external/internal, with getselectedcount() the number of selected values and many more, whereby by a larger number of conditions it might be easier to add these data within the datamodel instead of using very deep if-constructs.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jan 2019 14:57:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-wih-multiples-conditions/m-p/1529754#M438677</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-01-13T14:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: If wih multiples conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-wih-multiples-conditions/m-p/1530060#M438690</link>
      <description>&lt;P&gt;Hi Marcurs!&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;What I have done was to build two Line References following your code:&lt;/P&gt;&lt;P&gt;External&lt;/P&gt;&lt;P&gt;if(Company ='HMH' and [Creation Year]=2018, 0.14,&lt;BR /&gt;if(Company ='HMG' and [Creation Year]=2018, 0.59,&lt;BR /&gt;if(Company ='HMN' and [Creation Year]=2018, 0.14,0)))&lt;/P&gt;&lt;P&gt;Internal&lt;/P&gt;&lt;P&gt;if(Company ='HMH' and [Creation Year]=2018, 0.68,&lt;BR /&gt;if(Company ='HMG' and [Creation Year]=2018, 0.35,&lt;BR /&gt;if(Company ='HMN' and [Creation Year]=2018, 0.24,0)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In that way I have both references lines. it was the easier solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I did get your idea with getselectedcount() &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;Edi&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 14:53:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-wih-multiples-conditions/m-p/1530060#M438690</guid>
      <dc:creator>Zaga_69</dc:creator>
      <dc:date>2019-01-14T14:53:54Z</dc:date>
    </item>
  </channel>
</rss>

