<?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: Multi KPI with if statement in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Multi-KPI-with-if-statement/m-p/1601179#M44482</link>
    <description>&lt;P&gt;Hello, I have tried many different ways but it's not work. &lt;SPAN&gt;Any help is appreciated&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2019 04:18:25 GMT</pubDate>
    <dc:creator>P_S</dc:creator>
    <dc:date>2019-07-11T04:18:25Z</dc:date>
    <item>
      <title>Multi KPI with if statement</title>
      <link>https://community.qlik.com/t5/App-Development/Multi-KPI-with-if-statement/m-p/1600280#M44380</link>
      <description>&lt;P&gt;I'm trying to use Multi KPI to show customers with sales, margin, and more. I use Multi KPI with other measures and it show only the customers I would like to see but when I put measure with if statement the Multi KPI show all customers in data. This is the if statement that I used.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  If(VDR1 = 'QLIK *',
  	If(Sum({&amp;lt;[invoice date] = {"&amp;gt;=03/25/2019&amp;lt;=12/31/2019"}&amp;gt;}[Net Margin (Performance Sales/PM)])*100/Sum({&amp;lt;[invoice date] = {"&amp;gt;=03/25/2019&amp;lt;=12/31/2019"}&amp;gt;}[Net Revenue (Performance)]) &amp;gt; 7.99,
		If([Cust Name] = 'A',	
			If(Sum({&amp;lt;[invoice date] = {"&amp;gt;=03/25/2019&amp;lt;=12/31/2019"}, VDR1 = {"QLIK*"}&amp;gt;}[Net Revenue (Performance)]) &amp;gt;= 4000000, 
				Sum({&amp;lt;[invoice date] = {"&amp;gt;=03/25/2019&amp;lt;=12/31/2019"}, VDR1 = {"QLIK*"}&amp;gt;}[Net Revenue (Performance)])/100,			
				If(Sum({&amp;lt;[invoice date] = {"&amp;gt;=03/25/2019&amp;lt;=12/31/2019"}, VDR1 = {"QLIK*"}&amp;gt;}[Net Revenue (Performance)]) &amp;gt;= 2000000, 
					Sum({&amp;lt;[invoice date] = {"&amp;gt;=03/25/2019&amp;lt;=12/31/2019"}, VDR1 = {"QLIK*"}&amp;gt;}[Net Revenue (Performance)])*0.5/100,
					0
					)
			)
		),
				
		If(Match([Cust Name], 'B','C', 'D'),	
			If(Sum({&amp;lt;[invoice date] = {"&amp;gt;=03/25/2019&amp;lt;=12/31/2019"}, VDR1 = {"QLIK*"}&amp;gt;}[Net Revenue (Performance)]) &amp;gt;= 2000000, 
				Sum({&amp;lt;[invoice date] = {"&amp;gt;=03/25/2019&amp;lt;=12/31/2019"}, VDR1 = {"QLIK*"}&amp;gt;}[Net Revenue (Performance)])/100,
				If(Sum({&amp;lt;[invoice date] = {"&amp;gt;=03/25/2019&amp;lt;=12/31/2019"}, VDR1 = {"QLIK*"}&amp;gt;}[Net Revenue (Performance)]) &amp;gt;= 800000, 
					Sum({&amp;lt;[invoice date] = {"&amp;gt;=03/25/2019&amp;lt;=12/31/2019"}, VDR1 = {"QLIK*"}&amp;gt;}[Net Revenue (Performance)])*0.5/100,
					0
				)
			)
		)
	),
      If(VDR1 = 'X*',
      If(Sum({&amp;lt;[invoice date] = {"&amp;gt;=03/25/2019&amp;lt;=12/31/2019"}&amp;gt;}[Net Margin (Performance Sales/PM)])*100/Sum({&amp;lt;[invoice date] = {"&amp;gt;=03/25/2019&amp;lt;=12/31/2019"}&amp;gt;}[Net Revenue (Performance)]) &amp;gt; 9.99,
		If(Match([Cust Name], 'E','F', 'G', 'H', 'I', 'J', 'K', 'L'),	
			If(Sum({&amp;lt;[invoice date] = {"&amp;gt;=03/25/2019&amp;lt;=12/31/2019"}, VDR1 = {"X*"}&amp;gt;}[Net Revenue (Performance)]) &amp;gt;= 5000000, 
				Sum({&amp;lt;[invoice date] = {"&amp;gt;=03/25/2019&amp;lt;=12/31/2019"}, VDR1 = {"X*"}&amp;gt;}[Net Revenue (Performance)])*2/100,
           		 If(Sum({&amp;lt;[invoice date] = {"&amp;gt;=03/25/2019&amp;lt;=12/31/2019"}, VDR1 = {"X*"}&amp;gt;}[Net Revenue (Performance)]) &amp;gt;= 3000000, 
					Sum({&amp;lt;[invoice date] = {"&amp;gt;=03/25/2019&amp;lt;=12/31/2019"}, VDR1 = {"X*"}&amp;gt;}[Net Revenue (Performance)])*1.5/100,
						If(Sum({&amp;lt;[invoice date] = {"&amp;gt;=03/25/2019&amp;lt;=12/31/2019"}, VDR1 = {"X*"}&amp;gt;}[Net Revenue (Performance)]) &amp;gt;= 1000000, 
							Sum({&amp;lt;[invoice date] = {"&amp;gt;=03/25/2019&amp;lt;=12/31/2019"}, VDR1 = {"X*"}&amp;gt;}[Net Revenue (Performance)])/100,
							0
                            )
                	)
				)
			)
         )
      )
   )&lt;/LI-CODE&gt;&lt;P&gt;I use Cust Name as dimension in Multi KPI.&amp;nbsp;Any suggestion would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 08:44:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multi-KPI-with-if-statement/m-p/1600280#M44380</guid>
      <dc:creator>P_S</dc:creator>
      <dc:date>2019-07-09T08:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Multi KPI with if statement</title>
      <link>https://community.qlik.com/t5/App-Development/Multi-KPI-with-if-statement/m-p/1601179#M44482</link>
      <description>&lt;P&gt;Hello, I have tried many different ways but it's not work. &lt;SPAN&gt;Any help is appreciated&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 04:18:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multi-KPI-with-if-statement/m-p/1601179#M44482</guid>
      <dc:creator>P_S</dc:creator>
      <dc:date>2019-07-11T04:18:25Z</dc:date>
    </item>
  </channel>
</rss>

