<?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 VB functions in qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/VB-functions-in-qlikview/m-p/153683#M30630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;it is possible to use a user function i wrote in vb, as an expression in qlikview, for example this function&lt;/P&gt;&lt;P&gt;i would like to use it in the sort expression of a pivot.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Function StageOrder(StageID As Integer) As Integer&lt;/P&gt;&lt;P&gt;Dim Value As Integer&lt;BR /&gt; Select Case StageID&lt;BR /&gt; Case 1&lt;BR /&gt; Value = 1&lt;BR /&gt; Case 9&lt;BR /&gt; Value = 2&lt;BR /&gt; Case 10&lt;BR /&gt; Value = 3&lt;BR /&gt; Case 11&lt;BR /&gt; Value = 4&lt;BR /&gt; Case 2&lt;BR /&gt; Value = 5&lt;BR /&gt; Case 3&lt;BR /&gt; Value = 6&lt;BR /&gt; Case 4&lt;BR /&gt; Value = 7&lt;BR /&gt; Case 5&lt;BR /&gt; Value = 8&lt;BR /&gt; Case 6&lt;BR /&gt; Value = 9&lt;BR /&gt; Case 7&lt;BR /&gt; Value = 10&lt;BR /&gt; Case 8&lt;BR /&gt; Value = 11&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; End Select&lt;BR /&gt;&lt;BR /&gt; StageOrder = Value&lt;BR /&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;shlomo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Oct 2010 22:44:11 GMT</pubDate>
    <dc:creator>m4u</dc:creator>
    <dc:date>2010-10-21T22:44:11Z</dc:date>
    <item>
      <title>VB functions in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/VB-functions-in-qlikview/m-p/153683#M30630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;it is possible to use a user function i wrote in vb, as an expression in qlikview, for example this function&lt;/P&gt;&lt;P&gt;i would like to use it in the sort expression of a pivot.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Function StageOrder(StageID As Integer) As Integer&lt;/P&gt;&lt;P&gt;Dim Value As Integer&lt;BR /&gt; Select Case StageID&lt;BR /&gt; Case 1&lt;BR /&gt; Value = 1&lt;BR /&gt; Case 9&lt;BR /&gt; Value = 2&lt;BR /&gt; Case 10&lt;BR /&gt; Value = 3&lt;BR /&gt; Case 11&lt;BR /&gt; Value = 4&lt;BR /&gt; Case 2&lt;BR /&gt; Value = 5&lt;BR /&gt; Case 3&lt;BR /&gt; Value = 6&lt;BR /&gt; Case 4&lt;BR /&gt; Value = 7&lt;BR /&gt; Case 5&lt;BR /&gt; Value = 8&lt;BR /&gt; Case 6&lt;BR /&gt; Value = 9&lt;BR /&gt; Case 7&lt;BR /&gt; Value = 10&lt;BR /&gt; Case 8&lt;BR /&gt; Value = 11&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; End Select&lt;BR /&gt;&lt;BR /&gt; StageOrder = Value&lt;BR /&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;shlomo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 22:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-functions-in-qlikview/m-p/153683#M30630</guid>
      <dc:creator>m4u</dc:creator>
      <dc:date>2010-10-21T22:44:11Z</dc:date>
    </item>
    <item>
      <title>VB functions in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/VB-functions-in-qlikview/m-p/153684#M30631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, you cannot call Vb user functions from a chart expression. You can call them from script.&lt;/P&gt;&lt;P&gt;You can provide similar function in several ways.&lt;/P&gt;&lt;P&gt;1. Sort by expression and use a match expression:&lt;/P&gt;&lt;P&gt;=match(StageID, 1,9,10,11,2,3,4,5,6,7,8)&lt;/P&gt;&lt;P&gt;2. Load an inline table with&lt;BR /&gt;StageID, StageSort&lt;/P&gt;&lt;P&gt;And then use =StageSort as your sort expression.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 00:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VB-functions-in-qlikview/m-p/153684#M30631</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-10-22T00:48:02Z</dc:date>
    </item>
  </channel>
</rss>

