<?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 Qlik Sense Data Load Syntax Help - Case Statement + Select Subquery + Calculations in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Data-Load-Syntax-Help-Case-Statement-Select-Subquery/m-p/1429364#M34209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help with the case statement syntax while loading the data in Qlik Sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my logic code;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Vendor:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD "Vendor Name"&lt;/P&gt;&lt;P&gt;FROM [lib://vendordata.xls];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;/// Need help with the syntax for the below code ////&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Table1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;CASE&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;WHEN Percentage = 100% &lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;THEN invoice_line_total&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ELSEIF Percentage = 10% and (IF [Column.Vendor] Match (select [Vendor Name] from Resident Vendor))&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;THEN&amp;nbsp; column a * column b&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ELSEIF Percentage = 10% and (IF [Column.Vendor] Not Match (select [Vendor Name] from Resident Vendor))&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;THEN column a * Percentage&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ELSEIF IF [Vendor] Match (select [Vendor Name] from Resident Vendor)&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;THEN column a * column b&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ELSE 0&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;END as "New Column"&lt;/P&gt;&lt;P&gt;FROM [lib://Masterdata.qvd]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Vendor;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Nov 2017 15:08:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-07T15:08:03Z</dc:date>
    <item>
      <title>Qlik Sense Data Load Syntax Help - Case Statement + Select Subquery + Calculations</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Data-Load-Syntax-Help-Case-Statement-Select-Subquery/m-p/1429364#M34209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help with the case statement syntax while loading the data in Qlik Sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my logic code;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Vendor:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD "Vendor Name"&lt;/P&gt;&lt;P&gt;FROM [lib://vendordata.xls];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;/// Need help with the syntax for the below code ////&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Table1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;CASE&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;WHEN Percentage = 100% &lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;THEN invoice_line_total&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ELSEIF Percentage = 10% and (IF [Column.Vendor] Match (select [Vendor Name] from Resident Vendor))&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;THEN&amp;nbsp; column a * column b&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ELSEIF Percentage = 10% and (IF [Column.Vendor] Not Match (select [Vendor Name] from Resident Vendor))&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;THEN column a * Percentage&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ELSEIF IF [Vendor] Match (select [Vendor Name] from Resident Vendor)&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;THEN column a * column b&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ELSE 0&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;END as "New Column"&lt;/P&gt;&lt;P&gt;FROM [lib://Masterdata.qvd]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table Vendor;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 15:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Data-Load-Syntax-Help-Case-Statement-Select-Subquery/m-p/1429364#M34209</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-07T15:08:03Z</dc:date>
    </item>
  </channel>
</rss>

