<?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 store calculated single dimension value in a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-store-calculated-single-dimension-value-in-a-variable/m-p/171107#M41256</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;i am using the following formula in a gauge chart to show the MTD growth(can't use direct InMonthTodate, because there is a different calendar used in the date field.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;STRONG&gt;if(KOMONTH=vCurr_KOMONTH,aggr&lt;/STRONG&gt;((Sum({&amp;lt;YEAR=,KOMONTH=,DAY=&amp;gt;} InYearToDate(BILL_DATE,'$(MaxDate)',0,1) * -1 * CCIQUANTITY*CCIUNIT_CASE) - Sum({&amp;lt;YEAR=,KOMONTH=,DAY=&amp;gt;} InYearToDate(BILL_DATE,'$(MaxDate)',-1,1) * -1 * CCIQUANTITY*CCIUNIT_CASE)) / (Sum({&amp;lt;YEAR=,KOMONTH=,DAY=&amp;gt;} InYearToDate(BILL_DATE,'$(MaxDate)',-1,1) * -1 * CCIQUANTITY*CCIUNIT_CASE)),KOMONTH)) .&lt;/P&gt;&lt;P&gt;This gives true value in a list box. But no value in a Textbox or in the GAUGE chart. i suspect this is because of dimension(use AGGR function).&lt;/P&gt;&lt;P&gt;OR simply guide me HOW CAN I STORE THIS(result) in a VARIABLE.&lt;/P&gt;&lt;P&gt;Anybody with a solution thought is appreciated.&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;tresesco&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Aug 2010 12:43:00 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2010-08-23T12:43:00Z</dc:date>
    <item>
      <title>How to store calculated single dimension value in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-store-calculated-single-dimension-value-in-a-variable/m-p/171107#M41256</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;i am using the following formula in a gauge chart to show the MTD growth(can't use direct InMonthTodate, because there is a different calendar used in the date field.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;STRONG&gt;if(KOMONTH=vCurr_KOMONTH,aggr&lt;/STRONG&gt;((Sum({&amp;lt;YEAR=,KOMONTH=,DAY=&amp;gt;} InYearToDate(BILL_DATE,'$(MaxDate)',0,1) * -1 * CCIQUANTITY*CCIUNIT_CASE) - Sum({&amp;lt;YEAR=,KOMONTH=,DAY=&amp;gt;} InYearToDate(BILL_DATE,'$(MaxDate)',-1,1) * -1 * CCIQUANTITY*CCIUNIT_CASE)) / (Sum({&amp;lt;YEAR=,KOMONTH=,DAY=&amp;gt;} InYearToDate(BILL_DATE,'$(MaxDate)',-1,1) * -1 * CCIQUANTITY*CCIUNIT_CASE)),KOMONTH)) .&lt;/P&gt;&lt;P&gt;This gives true value in a list box. But no value in a Textbox or in the GAUGE chart. i suspect this is because of dimension(use AGGR function).&lt;/P&gt;&lt;P&gt;OR simply guide me HOW CAN I STORE THIS(result) in a VARIABLE.&lt;/P&gt;&lt;P&gt;Anybody with a solution thought is appreciated.&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;tresesco&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 12:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-store-calculated-single-dimension-value-in-a-variable/m-p/171107#M41256</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2010-08-23T12:43:00Z</dc:date>
    </item>
    <item>
      <title>How to store calculated single dimension value in a variable</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-store-calculated-single-dimension-value-in-a-variable/m-p/171108#M41257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey............I have got the solution!!!&lt;/P&gt;&lt;P&gt;The IF was the culprit. I simply replaced the if with Set analysis accordingly.....and then i was done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enjoy QV!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Aug 2010 14:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-store-calculated-single-dimension-value-in-a-variable/m-p/171108#M41257</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2010-08-23T14:55:10Z</dc:date>
    </item>
  </channel>
</rss>

