<?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 How to Create custom variable and use them in other expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Create-custom-variable-and-use-them-in-other-expressions/m-p/259536#M581522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ravindra,&lt;/P&gt;&lt;P&gt;I am not quite sure, but the $-sign expansion should help you. &lt;/P&gt;&lt;P&gt;For ex. : &lt;/P&gt;&lt;P&gt;output_a= Count( $(variable_a) ) &lt;EM&gt;or&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;output_a= Count( $(=variable_a) ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further details please see help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Roland&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;For testing purpose or getting started you can edit some easy expressions in a textbox and see what's happening.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jan 2012 15:35:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-09T15:35:48Z</dc:date>
    <item>
      <title>How to Create custom variable and use them in other expressions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Create-custom-variable-and-use-them-in-other-expressions/m-p/259535#M581521</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;&lt;/P&gt;&lt;P&gt;This is Ravindra Mandre and just before sometime started working on qlikview&amp;nbsp; and obviously new to it. &lt;/P&gt;&lt;P&gt;While doing some table operations I came to a requirement of creating some custom variables that can be used in other calculations and other expressions which includes the use of created varibles . for example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to create one variable which will do some calculation like this&amp;nbsp; &lt;/P&gt;&lt;P&gt;output_a= Count(variable_a) or AVG(﻿﻿﻿﻿variable_a)&lt;/P&gt;&lt;P&gt;and then variable_a does some other calculations like&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable_a = if(someDate=Now(2) and otherDate=SOME_OTHER_DATE, true , false);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is that How I can create the custom variables so that I can use them into my calculations without repeating the same calculations again and again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Ravindra Mandre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 10:34:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Create-custom-variable-and-use-them-in-other-expressions/m-p/259535#M581521</guid>
      <dc:creator />
      <dc:date>2012-01-09T10:34:11Z</dc:date>
    </item>
    <item>
      <title>How to Create custom variable and use them in other expressions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Create-custom-variable-and-use-them-in-other-expressions/m-p/259536#M581522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ravindra,&lt;/P&gt;&lt;P&gt;I am not quite sure, but the $-sign expansion should help you. &lt;/P&gt;&lt;P&gt;For ex. : &lt;/P&gt;&lt;P&gt;output_a= Count( $(variable_a) ) &lt;EM&gt;or&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;output_a= Count( $(=variable_a) ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further details please see help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Roland&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;For testing purpose or getting started you can edit some easy expressions in a textbox and see what's happening.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 15:35:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Create-custom-variable-and-use-them-in-other-expressions/m-p/259536#M581522</guid>
      <dc:creator />
      <dc:date>2012-01-09T15:35:48Z</dc:date>
    </item>
    <item>
      <title>How to Create custom variable and use them in other expressions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Create-custom-variable-and-use-them-in-other-expressions/m-p/259537#M581523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravindra,&lt;/P&gt;&lt;P&gt;I hope I understand you right what you are trying to achieve. &lt;BR /&gt;To give you an example&lt;/P&gt;&lt;P&gt;Let say you have 2 variables :&lt;BR /&gt; eIncomeExl&amp;nbsp;&amp;nbsp; =&amp;nbsp; sum(AmountExcl) &lt;BR /&gt; eDedutionsExl = sum((Deductions) * (-1))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /114 * 100 &lt;/P&gt;&lt;P&gt;Then I create another variable:&lt;BR /&gt; eSales = $(eIncomeExl) - $(eDedutionsExl) &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then in my Qlikview expression I would want the sales I use&amp;nbsp;&amp;nbsp; =$(eSales) &lt;BR /&gt; or if you just need the income in the expression you can just use use&amp;nbsp;&amp;nbsp; =$(eIncomeExl) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 15:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Create-custom-variable-and-use-them-in-other-expressions/m-p/259537#M581523</guid>
      <dc:creator>louwriet</dc:creator>
      <dc:date>2012-01-09T15:43:25Z</dc:date>
    </item>
    <item>
      <title>How to Create custom variable and use them in other expressions</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Create-custom-variable-and-use-them-in-other-expressions/m-p/259538#M581524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Louwrie, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for you reply and it helped&amp;nbsp; me a lot. &lt;/P&gt;&lt;P&gt;Roland thanks to you also for reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ravindra Mandre &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 09:08:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Create-custom-variable-and-use-them-in-other-expressions/m-p/259538#M581524</guid>
      <dc:creator />
      <dc:date>2012-01-10T09:08:10Z</dc:date>
    </item>
  </channel>
</rss>

