<?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 store procedure using CASE statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/store-procedure-using-CASE-statement/m-p/292758#M1202043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Few comments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;do you pass the parameter of the stored procedure from QlikView ?&lt;/LI&gt;&lt;LI&gt;if you use arithmetic operators as part of the column names, those need to be escaped in database dependent way. It is easier to use names consisting only of letters, numbers and underscore&lt;/LI&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;-Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Dec 2010 11:15:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-07T11:15:34Z</dc:date>
    <item>
      <title>store procedure using CASE statement</title>
      <link>https://community.qlik.com/t5/QlikView/store-procedure-using-CASE-statement/m-p/292757#M1202041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I am using a stored procedure that uses a case statement...&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;"SELECT s. [Customer No_],s. [Due Date],s. [Posting Date],'Ageing from Due/Date' =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN&lt;/P&gt;&lt;P&gt;DATEDIFF(day,s. [Due Date],@MyDate) &amp;lt;= 30 then '[0 - 30D Days]'..etc"&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 10pt;"&gt;while I get results using these statements&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Let&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L&lt;B&gt;OAD&lt;/B&gt; [Customer No_],[Due Date],[Posting Date],[Name],[Document No_],[Amount] as Amount,&lt;/P&gt;&lt;P&gt;'Ageing from Due/Date', 'Ageing from Post/date';&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;SQL&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;EXEC dbo.cust_ageing @MyDate = '$(MyDate)'; &lt;B&gt;&lt;I&gt;Mydate&lt;/I&gt;&lt;/B&gt; = Input('Enter date', 'ageing date'); &lt;P&gt;I do not see results "categoried" by 'Ageing from Due/Date' ..&lt;/P&gt;&lt;P&gt;is there something special about the CASe statement??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 13:21:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/store-procedure-using-CASE-statement/m-p/292757#M1202041</guid>
      <dc:creator />
      <dc:date>2010-12-06T13:21:07Z</dc:date>
    </item>
    <item>
      <title>store procedure using CASE statement</title>
      <link>https://community.qlik.com/t5/QlikView/store-procedure-using-CASE-statement/m-p/292758#M1202043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Few comments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;do you pass the parameter of the stored procedure from QlikView ?&lt;/LI&gt;&lt;LI&gt;if you use arithmetic operators as part of the column names, those need to be escaped in database dependent way. It is easier to use names consisting only of letters, numbers and underscore&lt;/LI&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;-Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2010 11:15:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/store-procedure-using-CASE-statement/m-p/292758#M1202043</guid>
      <dc:creator />
      <dc:date>2010-12-07T11:15:34Z</dc:date>
    </item>
    <item>
      <title>store procedure using CASE statement</title>
      <link>https://community.qlik.com/t5/QlikView/store-procedure-using-CASE-statement/m-p/292759#M1202045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;do you pass the parameter of the stored procedure from QlikView ?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;yes...&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;I&gt;&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Let&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;I&gt;MyDate&lt;/I&gt;&lt;/B&gt; = Input('Enter date', 'aging referernce date'); &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL EXEC dbo.cust_ageing @MyDate = '$(MyDate)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &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;P&gt;&lt;/P&gt;&lt;I&gt;&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;if you use arithmetic operators as part of the column names, those need to be escaped in database dependent way. It is easier to use names consisting only of letters, numbers and underscore&lt;/P&gt;&lt;P&gt;can you give me an example? what do you mean "in database dependent way"...?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2010 11:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/store-procedure-using-CASE-statement/m-p/292759#M1202045</guid>
      <dc:creator />
      <dc:date>2010-12-07T11:21:52Z</dc:date>
    </item>
  </channel>
</rss>

