<?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 Nestled IF with Match and AND in calculated field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Nestled-IF-with-Match-and-AND-in-calculated-field/m-p/1543619#M39199</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create this logic:&lt;/P&gt;&lt;P&gt;I have a table with amongst others the fields "Type" (which contains amongst others the entries 'Piece' and 'Hours'), "Payroll" (which contains 'Hourly' and 'Monthly') "Account" (which contains 'F040', 'F0950', 'N0100' amongst others), "Value" (which contains a value), "Postings" (which contains a number value), "Pay" which contains hourly payment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to build a logic like this:&lt;BR /&gt;IF ([Type] = 'Piece' , [Posting]*[Value],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; IF=[Type] = 'Hours',&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IF([Payroll]='Monthly' AND Match([Account],'F040', 'F0950', 'N0100'),0,[Posting]*[Value]*[Pay])&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ,0)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;Basically if Type = Piece, just calulate Posting with Value.&lt;BR /&gt;IF Type = 'Hours' it needs to first check if Payroll is 'Monthly' and then set it to 0 if the account matches the list given. For the rest of the type 'Hours' it will calculate as per the forumla.&lt;/P&gt;&lt;P&gt;If type is not 'Piece' or 'Hours' it should set value to 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I first tried using OR instead of the MATCH, but figured that might be wrong.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error I keep getting is "Missing right paranthesis"...&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 06:36:15 GMT</pubDate>
    <dc:creator>OysteinT</dc:creator>
    <dc:date>2024-11-16T06:36:15Z</dc:date>
    <item>
      <title>Nestled IF with Match and AND in calculated field</title>
      <link>https://community.qlik.com/t5/App-Development/Nestled-IF-with-Match-and-AND-in-calculated-field/m-p/1543619#M39199</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create this logic:&lt;/P&gt;&lt;P&gt;I have a table with amongst others the fields "Type" (which contains amongst others the entries 'Piece' and 'Hours'), "Payroll" (which contains 'Hourly' and 'Monthly') "Account" (which contains 'F040', 'F0950', 'N0100' amongst others), "Value" (which contains a value), "Postings" (which contains a number value), "Pay" which contains hourly payment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to build a logic like this:&lt;BR /&gt;IF ([Type] = 'Piece' , [Posting]*[Value],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; IF=[Type] = 'Hours',&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IF([Payroll]='Monthly' AND Match([Account],'F040', 'F0950', 'N0100'),0,[Posting]*[Value]*[Pay])&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ,0)&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;Basically if Type = Piece, just calulate Posting with Value.&lt;BR /&gt;IF Type = 'Hours' it needs to first check if Payroll is 'Monthly' and then set it to 0 if the account matches the list given. For the rest of the type 'Hours' it will calculate as per the forumla.&lt;/P&gt;&lt;P&gt;If type is not 'Piece' or 'Hours' it should set value to 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I first tried using OR instead of the MATCH, but figured that might be wrong.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error I keep getting is "Missing right paranthesis"...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:36:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nestled-IF-with-Match-and-AND-in-calculated-field/m-p/1543619#M39199</guid>
      <dc:creator>OysteinT</dc:creator>
      <dc:date>2024-11-16T06:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Nestled IF with Match and AND in calculated field</title>
      <link>https://community.qlik.com/t5/App-Development/Nestled-IF-with-Match-and-AND-in-calculated-field/m-p/1543625#M39200</link>
      <description>&lt;P&gt;IF ([Type] = 'Piece' , [Posting]*[Value],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; IF&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/FONT&gt;[Type] = 'Hours',&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IF([Payroll]='Monthly' AND Match([Account],'F040', 'F0950', 'N0100'),0,[Posting]*[Value]*[Pay])&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ,0)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 13:16:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nestled-IF-with-Match-and-AND-in-calculated-field/m-p/1543625#M39200</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2019-02-13T13:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Nestled IF with Match and AND in calculated field</title>
      <link>https://community.qlik.com/t5/App-Development/Nestled-IF-with-Match-and-AND-in-calculated-field/m-p/1543774#M39205</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that is what I have tried for a long time now to do, but I keep getting an error:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Missing right parenthesis.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;My exact code is:&lt;/P&gt;&lt;PRE&gt;IF ([Type] = 'stykk', [Posting (Seconds)]*[Verdi],
	IF ([Type]='timelønn',
    	IF([Lønnstype]='FASTLØNN' AND Match([Account ID],'F040','F0950','N0100'),0,[Posting (Seconds)]*[Verdi]*[Timel])
        ,0)
        )&lt;/PRE&gt;&lt;P&gt;I have tried several of the steps on their own and they work (espesially the match one). But all together it fails.... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 15:35:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nestled-IF-with-Match-and-AND-in-calculated-field/m-p/1543774#M39205</guid>
      <dc:creator>OysteinT</dc:creator>
      <dc:date>2019-02-13T15:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Nestled IF with Match and AND in calculated field</title>
      <link>https://community.qlik.com/t5/App-Development/Nestled-IF-with-Match-and-AND-in-calculated-field/m-p/1544241#M39240</link>
      <description>That works on my side with Qlik Sense Nov 2018 . What release are you using?</description>
      <pubDate>Thu, 14 Feb 2019 11:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nestled-IF-with-Match-and-AND-in-calculated-field/m-p/1544241#M39240</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2019-02-14T11:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Nestled IF with Match and AND in calculated field</title>
      <link>https://community.qlik.com/t5/App-Development/Nestled-IF-with-Match-and-AND-in-calculated-field/m-p/1544260#M39241</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it looks like we're running Qlik Sense June 2018 on our server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll take a peek at downloading the newest version privately at home this weekend and see if I can get it to work there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 11:54:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nestled-IF-with-Match-and-AND-in-calculated-field/m-p/1544260#M39241</guid>
      <dc:creator>OysteinT</dc:creator>
      <dc:date>2019-02-14T11:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Nestled IF with Match and AND in calculated field</title>
      <link>https://community.qlik.com/t5/App-Development/Nestled-IF-with-Match-and-AND-in-calculated-field/m-p/1544633#M39260</link>
      <description>The expression is valid also in June 2018 on my side. &lt;BR /&gt;&lt;BR /&gt;IF ([Type] = 'stykk', [Posting (Seconds)]*[Verdi],&lt;BR /&gt;	IF ([Type]='timelønn',&lt;BR /&gt;    	IF([Lønnstype]='FASTLØNN' AND Match([Account ID],'F040','F0950','N0100'),0,[Posting (Seconds)]*[Verdi]*[Timel])&lt;BR /&gt;        ,0)&lt;BR /&gt;        )</description>
      <pubDate>Thu, 14 Feb 2019 23:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nestled-IF-with-Match-and-AND-in-calculated-field/m-p/1544633#M39260</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2019-02-14T23:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Nestled IF with Match and AND in calculated field</title>
      <link>https://community.qlik.com/t5/App-Development/Nestled-IF-with-Match-and-AND-in-calculated-field/m-p/1544728#M39264</link>
      <description>&lt;P&gt;Very strange.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use the forumla as a master item (measure) in a sheet it works fine, but if I try to create a calculated field it does not work (it seems to hang up on the "AND" statement and gives the paranthesis error)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 06:38:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nestled-IF-with-Match-and-AND-in-calculated-field/m-p/1544728#M39264</guid>
      <dc:creator>OysteinT</dc:creator>
      <dc:date>2019-02-15T06:38:35Z</dc:date>
    </item>
  </channel>
</rss>

