<?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 Loading from QVD file with Conditionals in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD-file-with-Conditionals/m-p/144796#M23620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Ralf. I made a mistake explaning my problem. I want to add special columns from calculated values using coditionals. Here's my script using a data source:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HNUA04:&lt;BR /&gt;LOAD *, "HnuA04_16P",&lt;BR /&gt; HnuA04PCOp,&lt;BR /&gt; "HnuFA3_01C",&lt;BR /&gt; C_ActPond_Riesgo, C_PatrimonioEfec,&lt;BR /&gt; C_ColoMes_SF, C_CastigoAnual;&lt;BR /&gt;SQL SELECT *, HnuA01_01A * 100 + HnuA04_01M Periodo,&lt;BR /&gt; &lt;EM&gt;Case When HnuFA3_01C = 9500 Then HnuA04_15P Else 0 End As C_ActPond_Riesgo,&lt;BR /&gt; Case When HnuFA3_01C = 9501 Then HnuA04_15P Else 0 End As C_PatrimonioEfec,&lt;BR /&gt; Case When HnuFA3_01C = 9502 Then HnuA04_15P Else 0 End As C_ColoMes_SF,&lt;BR /&gt; Case When HnuFA3_01C = 9503 Then HnuA04_15P Else 0 End As C_CastigoAnual&lt;BR /&gt;&lt;/EM&gt;FROM "DWH_MIS".dbo.HNUA04;&lt;BR /&gt;Store HNUA04 Into HNUA04.qvd;&lt;BR /&gt;Drop Table HNUA04;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;As you can see, i use "case when" because the SQL connector can read this command over my &lt;STRONG&gt;"DWH_MIS".dbo.HNUA04&lt;/STRONG&gt; resource. But what if i use a QVD file as source? I can't use the 'SQL SELECT' nor 'CASE WHEN'. The thing is that i want to the the same load within using a .dbo source; i would like to use a QVD file as source, but i have problems with sintaxis.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 May 2009 00:40:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-05-23T00:40:34Z</dc:date>
    <item>
      <title>Loading from QVD file with Conditionals</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD-file-with-Conditionals/m-p/144794#M23618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, i want to know if its possible to load data from a QVD file usig some conditionals. For example, what do i if i wat to load only data with the column ID_Job = '007' ?&lt;/P&gt;&lt;P&gt;Do i use 'case', 'if' or something like that? plase, an example would it great. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 May 2009 00:05:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-QVD-file-with-Conditionals/m-p/144794#M23618</guid>
      <dc:creator />
      <dc:date>2009-05-23T00:05:27Z</dc:date>
    </item>
    <item>
      <title>Loading from QVD file with Conditionals</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD-file-with-Conditionals/m-p/144795#M23619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just use a Where Clause like this:&lt;BR /&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;...&lt;BR /&gt;FROM [&amp;lt;qvd-file&amp;gt;] (qvd)&lt;BR /&gt;WHERE ID_Job = '007';&lt;BR /&gt;&lt;BR /&gt;Ralf&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 May 2009 00:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-QVD-file-with-Conditionals/m-p/144795#M23619</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2009-05-23T00:26:21Z</dc:date>
    </item>
    <item>
      <title>Loading from QVD file with Conditionals</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD-file-with-Conditionals/m-p/144796#M23620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Ralf. I made a mistake explaning my problem. I want to add special columns from calculated values using coditionals. Here's my script using a data source:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HNUA04:&lt;BR /&gt;LOAD *, "HnuA04_16P",&lt;BR /&gt; HnuA04PCOp,&lt;BR /&gt; "HnuFA3_01C",&lt;BR /&gt; C_ActPond_Riesgo, C_PatrimonioEfec,&lt;BR /&gt; C_ColoMes_SF, C_CastigoAnual;&lt;BR /&gt;SQL SELECT *, HnuA01_01A * 100 + HnuA04_01M Periodo,&lt;BR /&gt; &lt;EM&gt;Case When HnuFA3_01C = 9500 Then HnuA04_15P Else 0 End As C_ActPond_Riesgo,&lt;BR /&gt; Case When HnuFA3_01C = 9501 Then HnuA04_15P Else 0 End As C_PatrimonioEfec,&lt;BR /&gt; Case When HnuFA3_01C = 9502 Then HnuA04_15P Else 0 End As C_ColoMes_SF,&lt;BR /&gt; Case When HnuFA3_01C = 9503 Then HnuA04_15P Else 0 End As C_CastigoAnual&lt;BR /&gt;&lt;/EM&gt;FROM "DWH_MIS".dbo.HNUA04;&lt;BR /&gt;Store HNUA04 Into HNUA04.qvd;&lt;BR /&gt;Drop Table HNUA04;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;As you can see, i use "case when" because the SQL connector can read this command over my &lt;STRONG&gt;"DWH_MIS".dbo.HNUA04&lt;/STRONG&gt; resource. But what if i use a QVD file as source? I can't use the 'SQL SELECT' nor 'CASE WHEN'. The thing is that i want to the the same load within using a .dbo source; i would like to use a QVD file as source, but i have problems with sintaxis.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 May 2009 00:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-QVD-file-with-Conditionals/m-p/144796#M23620</guid>
      <dc:creator />
      <dc:date>2009-05-23T00:40:34Z</dc:date>
    </item>
    <item>
      <title>Loading from QVD file with Conditionals</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD-file-with-Conditionals/m-p/144797#M23621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like the if() statement is what you're looking for:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;...&lt;BR /&gt;,if(HnuFA3_01C = 9500,HnuA04_15P,0) as C_ActPond_Riesgo&lt;BR /&gt;,if(HnuFA3_01C = 9501,HnuA04_15P,0) as C_PatrimonioEfec&lt;BR /&gt;...&lt;BR /&gt;FROM MyQVD.qvd (QVD);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 May 2009 00:47:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-QVD-file-with-Conditionals/m-p/144797#M23621</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-05-23T00:47:43Z</dc:date>
    </item>
    <item>
      <title>Loading from QVD file with Conditionals</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD-file-with-Conditionals/m-p/144798#M23622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use if() function:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;...&lt;BR /&gt;if(HnuFA3_01C = 9500, HnuA04_15P, 0) as C_ActPond_Riesgo,&lt;BR /&gt;...&lt;BR /&gt;FROM [&amp;lt;qvd-file&amp;gt;] (qvd);&lt;/P&gt;&lt;P&gt;Ralf&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 May 2009 00:49:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-QVD-file-with-Conditionals/m-p/144798#M23622</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2009-05-23T00:49:40Z</dc:date>
    </item>
    <item>
      <title>Loading from QVD file with Conditionals</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-from-QVD-file-with-Conditionals/m-p/144799#M23623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Ralf and Jhon &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; It runs!&lt;/P&gt;&lt;P&gt;Greetings from Peru!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 May 2009 01:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-from-QVD-file-with-Conditionals/m-p/144799#M23623</guid>
      <dc:creator />
      <dc:date>2009-05-23T01:09:14Z</dc:date>
    </item>
  </channel>
</rss>

