<?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: Expression from Case in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-from-Case/m-p/1071048#M357768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Expression in Load script or expression in user interface?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jan 2016 12:38:24 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2016-01-12T12:38:24Z</dc:date>
    <item>
      <title>Expression from Case</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-from-Case/m-p/1071047#M357767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a case statement and need to convert in Expression for ex- Sum(Sales). What is the best way to write below one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case when&lt;/P&gt;&lt;P&gt; NOT ((a.trading_book_type='T' and a.bis_product_category in ('CLAIM')) or a.bis_product_category in ('REPO', 'DERIVATIVE_OTC', 'CREDIT_DERIVATIVE')) and&lt;/P&gt;&lt;P&gt;a.method_original in ('FOU', 'ADV') &lt;/P&gt;&lt;P&gt;and a.asset_class_original not in ('CLAIM_SECURITIZATION','CLAIM_RESECURITIZATION','CLAIM_RERESECURITIZATION') &lt;/P&gt;&lt;P&gt;and ((a.asset_class_category_original != 'CLAIM_EQUITY' and a.asset_class_original not like '%EQT%') and a.asset_class_original not like 'CLAIM_CIU') &lt;/P&gt;&lt;P&gt;and a.securitized in ('F','U') &lt;/P&gt;&lt;P&gt;and a.stress_testing_scenario_id=0 &lt;/P&gt;&lt;P&gt;and not (a.tranche_collateral_type='COLLATERALIZED' and a.collateral_bis_product in ('REP_NET_COL', 'OTC_NET_COL')) &lt;/P&gt;&lt;P&gt;and (a.risk_type in ('CRE', 'DIL', 'RVR') or (a.risk_type = 'STR' and a.delivery_type = 'FDE')) &lt;/P&gt;&lt;P&gt;and nvl(a.risk_type, 'CRE') != 'MAR'&lt;/P&gt;&lt;P&gt;and nvl(a.bis_product_category, 'MA_PRODUCTS') not in ('DEFAULT_FUND_CONTRIBUTION')&lt;/P&gt;&lt;P&gt;and nvl(a.GENERIC_REPORTING_DATE,'CURRENT_PERIOD_END') ='CURRENT_PERIOD_END' and a.bis_product_category is not null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 12:19:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-from-Case/m-p/1071047#M357767</guid>
      <dc:creator>priyarane</dc:creator>
      <dc:date>2016-01-12T12:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Expression from Case</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-from-Case/m-p/1071048#M357768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Expression in Load script or expression in user interface?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 12:38:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-from-Case/m-p/1071048#M357768</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-01-12T12:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Expression from Case</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-from-Case/m-p/1071049#M357769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right now, I have to update in Expression... may be in future&amp;nbsp;&amp;nbsp; I will update in Script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 12:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-from-Case/m-p/1071049#M357769</guid>
      <dc:creator>priyarane</dc:creator>
      <dc:date>2016-01-12T12:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Expression from Case</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-from-Case/m-p/1071050#M357770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You realise that it is never a good idea to translate SQL code as-is into QlikView expressions (if possible at all)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you describe the business rule that the expression should implement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 13:31:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-from-Case/m-p/1071050#M357770</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-01-12T13:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Expression from Case</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-from-Case/m-p/1071051#M357771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible at script level?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 13:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-from-Case/m-p/1071051#M357771</guid>
      <dc:creator>priyarane</dc:creator>
      <dc:date>2016-01-12T13:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Expression from Case</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-from-Case/m-p/1071052#M357772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can implement this in script, with the following issues:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;your expression (as posted) is incomplete (when clause, no then/else/end)&lt;/LI&gt;&lt;LI&gt;you will need to bring all the fields in this statement into QV&lt;/LI&gt;&lt;LI&gt;if this statement is filtering the load from the database, you may need to fetch a larger dataset to filter in QV&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 13:44:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-from-Case/m-p/1071052#M357772</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-01-12T13:44:30Z</dc:date>
    </item>
  </channel>
</rss>

