<?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: Switch between SQL and QVDs in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Switch-between-SQL-and-QVDs/m-p/1311091#M833727</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;syntax should be like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vLocation=1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&amp;nbsp; '$(vLocation)' = '1' then&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; SQL Query;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;else&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; QVD query&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant Sangle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jun 2017 09:56:44 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2017-06-05T09:56:44Z</dc:date>
    <item>
      <title>Switch between SQL and QVDs</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-between-SQL-and-QVDs/m-p/1311087#M833716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you please be able to help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a project where I want create a switch between loading data from SQL Select or loading from QVD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(From SQL)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; *;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SQL &lt;/P&gt;&lt;P&gt;&amp;nbsp; Select &lt;/P&gt;&lt;P&gt;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; brs.qv_sales;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(From QVD)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; [$(vFileLocation)D_tSales.qvd]&lt;/P&gt;&lt;P&gt;&amp;nbsp; (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what I am trying to do is, create a variable if vLocation = 0 then load data from SQL, if vLocation = 1 then load data from QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible, please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-between-SQL-and-QVDs/m-p/1311087#M833716</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Switch between SQL and QVDs</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-between-SQL-and-QVDs/m-p/1311088#M833718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in frontend or script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 09:44:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-between-SQL-and-QVDs/m-p/1311088#M833718</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-05T09:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Switch between SQL and QVDs</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-between-SQL-and-QVDs/m-p/1311089#M833720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 09:50:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-between-SQL-and-QVDs/m-p/1311089#M833720</guid>
      <dc:creator />
      <dc:date>2017-06-05T09:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Switch between SQL and QVDs</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-between-SQL-and-QVDs/m-p/1311090#M833724</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;You can use IF Else in script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 09:52:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-between-SQL-and-QVDs/m-p/1311090#M833724</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2017-06-05T09:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Switch between SQL and QVDs</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-between-SQL-and-QVDs/m-p/1311091#M833727</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;syntax should be like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vLocation=1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&amp;nbsp; '$(vLocation)' = '1' then&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; SQL Query;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;else&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; QVD query&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant Sangle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 09:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-between-SQL-and-QVDs/m-p/1311091#M833727</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2017-06-05T09:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Switch between SQL and QVDs</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-between-SQL-and-QVDs/m-p/1311092#M833729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vQVDcheck = isnull(QvdCreateTime('QVD Location'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if $(&lt;SPAN style="font-size: 13.3333px;"&gt;vQVDcheck &lt;/SPAN&gt;) = -1 THEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load from SQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ab:&lt;/P&gt;&lt;P&gt;Load from SQL;&lt;/P&gt;&lt;P&gt;concatenate&lt;/P&gt;&lt;P&gt;Load from QVD;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store ab in to ab.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 10:21:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-between-SQL-and-QVDs/m-p/1311092#M833729</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2017-06-05T10:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Switch between SQL and QVDs</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-between-SQL-and-QVDs/m-p/1311093#M833730</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;You can also use Switch Case statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vLocation=1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Switch vLocation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 1 :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL Query;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case 2 :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load Query;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Switch;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant Sangle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 10:28:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-between-SQL-and-QVDs/m-p/1311093#M833730</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2017-06-05T10:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Switch between SQL and QVDs</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-between-SQL-and-QVDs/m-p/1311094#M833731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prashant, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the Switch Case statement, but the queries will be a lot as I have a big dashboard, I mean with lots of scripts, and adding Switch Case to each and every query wouldn't look really appealing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I correct that I will need to add the Switch Case statement in each query?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 12:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-between-SQL-and-QVDs/m-p/1311094#M833731</guid>
      <dc:creator />
      <dc:date>2017-06-05T12:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Switch between SQL and QVDs</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-between-SQL-and-QVDs/m-p/1311095#M833732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can create loop in if else clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 12:36:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-between-SQL-and-QVDs/m-p/1311095#M833732</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2017-06-05T12:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Switch between SQL and QVDs</title>
      <link>https://community.qlik.com/t5/QlikView/Switch-between-SQL-and-QVDs/m-p/1311096#M833733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this by using variables. If you have 10 load statements, you need 10 variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable is initialised based on the vLocation. Some thing like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if vlocation=1 then assign the below to vLoad1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"SQL &lt;/P&gt;&lt;P&gt;&amp;nbsp; Select &lt;/P&gt;&lt;P&gt;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; brs.qv_sales;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;if vlocation=0 then assign the below to vload1&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; [$(vFileLocation)D_tSales.qvd]&lt;/P&gt;&lt;P&gt;&amp;nbsp; (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you can use the vLoad1 in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 14:41:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Switch-between-SQL-and-QVDs/m-p/1311096#M833733</guid>
      <dc:creator />
      <dc:date>2017-06-05T14:41:16Z</dc:date>
    </item>
  </channel>
</rss>

