<?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: SQL Stored Proc to Qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Stored-Proc-to-Qlikview/m-p/1556924#M440950</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Define vFromDate and vToDate variables and try below script:&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ID&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;From T1 where&amp;nbsp;Date1&amp;gt;$(vFromDate) and&amp;nbsp;Date1&amp;lt;$(vToDate);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Inner Join&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Amount&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Type as AmountType&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;From T2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Similarly do for other tables and concatenate them.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2019 06:17:10 GMT</pubDate>
    <dc:creator>amrinder</dc:creator>
    <dc:date>2019-03-15T06:17:10Z</dc:date>
    <item>
      <title>SQL Stored Proc to Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Stored-Proc-to-Qlikview/m-p/1556874#M440946</link>
      <description>&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;I have an SSRS report and it calls a stored procedure which is like below. Each query has different date filters of different tables(Date1, Date2, Date4), in SSRS users can just retrieve the data from the database directly via the SSRS interface and the most important thing is that they can choose any from_dte and to_dte to get that period of data, but QlikView&amp;nbsp;will load all the data to QVW file firstly. My question&amp;nbsp;is how to achieve the report same as SSRS in QlikView via using the params&amp;nbsp;to get the data by users themselves?&lt;/P&gt;&lt;P&gt;ALTER PROC usp_GetInfo&lt;BR /&gt;(@from_dte DATE,&lt;BR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/109169"&gt;@TO&lt;/a&gt;_dte DATE&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SELECT T1.Name as Name,&lt;BR /&gt;T2.Amount as Amount,&lt;BR /&gt;T2.Type as AmountType&lt;BR /&gt;FROM T1 JOIN T2 ON T1.ID = T2.ID&lt;BR /&gt;WHERE T1.Date1 &amp;gt; @from_dte&lt;BR /&gt;AND T1.Date1 &amp;lt; &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/109169"&gt;@TO&lt;/a&gt;_dte&lt;/P&gt;&lt;P&gt;UNION&lt;/P&gt;&lt;P&gt;SELECT T2.Name as Name,&lt;BR /&gt;T3.Amount2 as Amount&lt;BR /&gt;T3.Type2 as AmountType&lt;BR /&gt;FROM T2 JOIN T3 ON T2.ID = T3.ID&lt;BR /&gt;WHERE T2.Date2 &amp;gt; @from_dte&lt;BR /&gt;AND T2.Date2 &amp;lt; &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/109169"&gt;@TO&lt;/a&gt;_dte&lt;/P&gt;&lt;P&gt;UNION&lt;/P&gt;&lt;P&gt;SELECT T4.Name as Name,&lt;BR /&gt;T5.Amount3 as Amount&lt;BR /&gt;T5.Amount3 as AmountType&lt;BR /&gt;FROM T4 JOIN T5 ON T4.ID = T5.ID&lt;BR /&gt;WHERE T4.Date4 &amp;gt; @from_dte&lt;BR /&gt;AND T4.Date4 &amp;lt; &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/109169"&gt;@TO&lt;/a&gt;_dte&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:14:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Stored-Proc-to-Qlikview/m-p/1556874#M440946</guid>
      <dc:creator>EQ</dc:creator>
      <dc:date>2024-11-16T21:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Stored Proc to Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Stored-Proc-to-Qlikview/m-p/1556924#M440950</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Define vFromDate and vToDate variables and try below script:&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ID&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Name&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;From T1 where&amp;nbsp;Date1&amp;gt;$(vFromDate) and&amp;nbsp;Date1&amp;lt;$(vToDate);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Inner Join&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ID,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Amount&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Type as AmountType&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;From T2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Similarly do for other tables and concatenate them.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 06:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Stored-Proc-to-Qlikview/m-p/1556924#M440950</guid>
      <dc:creator>amrinder</dc:creator>
      <dc:date>2019-03-15T06:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Stored Proc to Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Stored-Proc-to-Qlikview/m-p/1556939#M440952</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your suggestion. It looks like the users need to reload the QV every time when choosing different params in QV interface.&lt;/P&gt;&lt;P&gt;I forgot to tell the real situation, the users can only access the report via Access Point. It seems they are unable to reload the document by themselves.&lt;/P&gt;&lt;P&gt;Currently, users can choose any from_date and to_date via SSRS interface, but in Qlikview&amp;nbsp;we need to load all the data firstly, so looks like I cannot return the same result as SSRS report cause each block code has different filters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 07:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Stored-Proc-to-Qlikview/m-p/1556939#M440952</guid>
      <dc:creator>EQ</dc:creator>
      <dc:date>2019-03-15T07:15:48Z</dc:date>
    </item>
  </channel>
</rss>

