<?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: How to use class function in dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-class-function-in-dimension/m-p/502256#M187632</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please PUT some of your raw data and desired output so that format of your table data and necessary function usage can be understood.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Nov 2013 09:07:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-28T09:07:44Z</dc:date>
    <item>
      <title>How to use class function in dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-class-function-in-dimension/m-p/502255#M187631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some sales histories by different customer ID and I want to classify their total spending in different intervals in a straight table. This is the result after I filter a particular customer with 11 repeat purchases but what I want is to group all transactions in one single line with total sales in 46K.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 346px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="12" width="103"&gt;Spending&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="73"&gt;Net sales&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="56"&gt;AUR&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="66"&gt;Tx Count&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="48"&gt;IPT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="12" style="border-top: none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none;"&gt;46K&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2,541&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;11&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1.6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="12" style="border-top: none;"&gt;1-3,000&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;6K&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1,419&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;1.3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="12" style="border-top: none;"&gt;3,001-6,000&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;22K&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;2,229&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;1.7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="12" style="border-top: none;"&gt;6,001-9,000&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;6K&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;3,029&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;2.0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="12" style="border-top: none;"&gt;9,001-12,000&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border-top: none; border-left: none;"&gt;12K&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;5,856&lt;/TD&gt;&lt;TD align="right" class="xl70" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl71" style="border-top: none; border-left: none;"&gt;2.0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the calculated dimension I am using and I've tried different way, like using Sum([Invoice Net Amount in HKD]) or Aggr() to group invoice amount by customer ID but no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Dual(num(SubField(Class([Invoice Net Amount in HKD],vSpendingInterval*1000)+1,' ',1),'#,##0')&amp;amp;'-'&amp;amp;num(SubField(Class([Invoice Net Amount in HKD],vSpendingInterval*1000),' ',5),'#,##0'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; num(SubField(Class([Invoice Net Amount in HKD],vSpendingInterval*1000),' ',1),'#,##0'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 08:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-class-function-in-dimension/m-p/502255#M187631</guid>
      <dc:creator />
      <dc:date>2013-11-28T08:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use class function in dimension</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-class-function-in-dimension/m-p/502256#M187632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please PUT some of your raw data and desired output so that format of your table data and necessary function usage can be understood.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 09:07:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-class-function-in-dimension/m-p/502256#M187632</guid>
      <dc:creator />
      <dc:date>2013-11-28T09:07:44Z</dc:date>
    </item>
  </channel>
</rss>

