<?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 Working with ranges on Income Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Working-with-ranges-on-Income-Statement/m-p/920529#M984778</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;Working with ranges like accounts seem to be a bit tricky. Anyway, I'm trying to build Income Statement with a lot of account ranges and dimensions. My data model is a bit complex based on Fact and Dimensions but I am simplifying the model in this table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#333333&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;1&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#C0C0C0&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 208px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;AccountNO&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;Amount&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;Dimension&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;Year&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;&lt;SPAN style="color: #333333; font-size: 13.3333330154419px; background-color: #c0c0c0;"&gt;2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;&lt;SPAN style="color: #333333; font-size: 13.3333330154419px; background-color: #c0c0c0;"&gt;2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;4&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;&lt;SPAN style="color: #333333; font-size: 13.3333330154419px; background-color: #c0c0c0;"&gt;2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;5&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;&lt;SPAN style="color: #333333; font-size: 13.3333330154419px; background-color: #c0c0c0;"&gt;2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;6&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;&lt;SPAN style="color: #333333; font-size: 13.3333330154419px; background-color: #c0c0c0;"&gt;2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;7&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;&lt;SPAN style="color: #333333; font-size: 13.3333330154419px; background-color: #c0c0c0;"&gt;2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;8&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;&lt;SPAN style="color: #333333; font-size: 13.3333330154419px; background-color: #c0c0c0;"&gt;2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;9&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;&lt;SPAN style="color: #333333; font-size: 13.3333330154419px; background-color: #c0c0c0;"&gt;2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;10&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;&lt;SPAN style="color: #333333; font-size: 13.3333330154419px; background-color: #c0c0c0;"&gt;2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So let's say I want to calculate the following and show them in one straight table:&lt;/P&gt;&lt;P&gt;1. Revenue: Range AccountNo (1 to &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; AND Dimension between (2 to 3)&lt;/P&gt;&lt;P&gt;2. Expenses: Range AccountNo (5 to 10) AND Dimension between (1 and 2)&lt;/P&gt;&lt;P&gt;3. Gross Profit = Revenue - Expenses&lt;/P&gt;&lt;P&gt;4. Gross Margin = Gross Profit / Revenue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the output should be something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#339966&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 179px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #339966;"&gt;Title&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #339966;"&gt;Amount&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #339966;"&gt;Year&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Revenue&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;400&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Expenses&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;300&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Gross Profit&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;100&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Gross Margin&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;0.25&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I'm not looking for a complete solution, just any tip/advice on what could the best way to load and handle the above logic would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jul 2015 16:46:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-29T16:46:14Z</dc:date>
    <item>
      <title>Working with ranges on Income Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-ranges-on-Income-Statement/m-p/920529#M984778</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;Working with ranges like accounts seem to be a bit tricky. Anyway, I'm trying to build Income Statement with a lot of account ranges and dimensions. My data model is a bit complex based on Fact and Dimensions but I am simplifying the model in this table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#333333&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;1&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#C0C0C0&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 208px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;AccountNO&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;Amount&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;Dimension&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #6690bc;"&gt;Year&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;&lt;SPAN style="color: #333333; font-size: 13.3333330154419px; background-color: #c0c0c0;"&gt;2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;&lt;SPAN style="color: #333333; font-size: 13.3333330154419px; background-color: #c0c0c0;"&gt;2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;4&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;&lt;SPAN style="color: #333333; font-size: 13.3333330154419px; background-color: #c0c0c0;"&gt;2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;5&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;&lt;SPAN style="color: #333333; font-size: 13.3333330154419px; background-color: #c0c0c0;"&gt;2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;6&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;&lt;SPAN style="color: #333333; font-size: 13.3333330154419px; background-color: #c0c0c0;"&gt;2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;7&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;&lt;SPAN style="color: #333333; font-size: 13.3333330154419px; background-color: #c0c0c0;"&gt;2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;8&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;&lt;SPAN style="color: #333333; font-size: 13.3333330154419px; background-color: #c0c0c0;"&gt;2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;9&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;&lt;SPAN style="color: #333333; font-size: 13.3333330154419px; background-color: #c0c0c0;"&gt;2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;10&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="color: #333333; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; padding: 1px; background-color: #c0c0c0;"&gt;&lt;SPAN style="color: #333333; font-size: 13.3333330154419px; background-color: #c0c0c0;"&gt;2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So let's say I want to calculate the following and show them in one straight table:&lt;/P&gt;&lt;P&gt;1. Revenue: Range AccountNo (1 to &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; AND Dimension between (2 to 3)&lt;/P&gt;&lt;P&gt;2. Expenses: Range AccountNo (5 to 10) AND Dimension between (1 and 2)&lt;/P&gt;&lt;P&gt;3. Gross Profit = Revenue - Expenses&lt;/P&gt;&lt;P&gt;4. Gross Margin = Gross Profit / Revenue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the output should be something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#339966&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 179px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #339966;"&gt;Title&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #339966;"&gt;Amount&lt;/TH&gt;&lt;TH style="color: #ffffff; text-align: center; padding: 2px; background-color: #339966;"&gt;Year&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Revenue&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;400&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Expenses&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;300&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Gross Profit&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;100&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;Gross Margin&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;0.25&lt;/TD&gt;&lt;TD align="right" style="color: #575757; text-align: left; font-family: arial, helvetica, sans-serif; vertical-align: baseline; background-color: rgba(0, 0, 0, 0);"&gt;2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I'm not looking for a complete solution, just any tip/advice on what could the best way to load and handle the above logic would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 16:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-ranges-on-Income-Statement/m-p/920529#M984778</guid>
      <dc:creator />
      <dc:date>2015-07-29T16:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Working with ranges on Income Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-ranges-on-Income-Statement/m-p/920530#M984779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like I get a slightly different number for Revenue and Expense based on the logic you gave and the conditions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE IMAGE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94456_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But check it out and see if this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 16:55:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-ranges-on-Income-Statement/m-p/920530#M984779</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-29T16:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Working with ranges on Income Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-ranges-on-Income-Statement/m-p/920531#M984781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny. Just because the real scenario is a bit more complex and involves a wide set of records which will impact the performance in case the logic was in the set analysis. So could that processing handled via scripts during the ETL? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 17:23:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-ranges-on-Income-Statement/m-p/920531#M984781</guid>
      <dc:creator />
      <dc:date>2015-07-29T17:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Working with ranges on Income Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-ranges-on-Income-Statement/m-p/920532#M984783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at the another way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 17:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-ranges-on-Income-Statement/m-p/920532#M984783</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-07-29T17:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Working with ranges on Income Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-ranges-on-Income-Statement/m-p/920533#M984785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's another good solution in case I want handle the logic at the user's tier (set analysis) Thanks Kush. However as I mentioned above I'm looking to handle the logic in the loading script.&lt;/P&gt;&lt;P&gt;Thanks again. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 17:44:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-ranges-on-Income-Statement/m-p/920533#M984785</guid>
      <dc:creator />
      <dc:date>2015-07-29T17:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Working with ranges on Income Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-ranges-on-Income-Statement/m-p/920534#M984787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/94462_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD AccountNO, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dimension, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2003" data-containertype="14" data-objectid="174540" data-objecttype="1" href="https://community.qlik.com/thread/174540"&gt;https://community.qlik.com/thread/174540&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Sum(Amount) as Amount,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'Revenue' as Title,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where AccountNO &amp;gt;= 1 and AccountNO &amp;lt;= 8 and Dimension &amp;gt;=2 and Dimension &amp;lt;=3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By Year;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate(Temp)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Sum(Amount) as Amount,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'Expenses' as Title,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where AccountNO &amp;gt;= 5 and AccountNO &amp;lt;= 10 and Dimension &amp;gt;=1 and Dimension &amp;lt;=2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By Year;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate(Temp)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Sum(If(AccountNO &amp;gt;= 1 and AccountNO &amp;lt;= 8 and Dimension &amp;gt;=2 and Dimension &amp;lt;=3, Amount))-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Sum(If(AccountNO &amp;gt;= 5 and AccountNO &amp;lt;= 10 and Dimension &amp;gt;=1 and Dimension &amp;lt;=2, Amount)) as Amount,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'Gross Profit' as Title,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where AccountNO &amp;gt;= 1 and AccountNO &amp;lt;= 10 and Dimension &amp;gt;=1 and Dimension &amp;lt;=3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By Year;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Concatenate(Temp)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD (Sum(If(AccountNO &amp;gt;= 1 and AccountNO &amp;lt;= 8 and Dimension &amp;gt;=2 and Dimension &amp;lt;=3, Amount))-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Sum(If(AccountNO &amp;gt;= 5 and AccountNO &amp;lt;= 10 and Dimension &amp;gt;=1 and Dimension &amp;lt;=2, Amount)))/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Sum(If(AccountNO &amp;gt;= 1 and AccountNO &amp;lt;= 8 and Dimension &amp;gt;=2 and Dimension &amp;lt;=3, Amount)) as Amount,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; 'Gross Margin' as Title,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where AccountNO &amp;gt;= 1 and AccountNO &amp;lt;= 10 and Dimension &amp;gt;=1 and Dimension &amp;lt;=3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By Year;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 17:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-ranges-on-Income-Statement/m-p/920534#M984787</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-07-29T17:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Working with ranges on Income Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-ranges-on-Income-Statement/m-p/920535#M984789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok so here is the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;AccountNO,&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount,&amp;nbsp;&amp;nbsp;&amp;nbsp; Dimension,&amp;nbsp;&amp;nbsp;&amp;nbsp; Year&lt;/P&gt;&lt;P&gt;1,&amp;nbsp;&amp;nbsp;&amp;nbsp; 100,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014&lt;/P&gt;&lt;P&gt;2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 100,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014&lt;/P&gt;&lt;P&gt;3,&amp;nbsp;&amp;nbsp;&amp;nbsp; 100,&amp;nbsp;&amp;nbsp;&amp;nbsp; 3,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014&lt;/P&gt;&lt;P&gt;4,&amp;nbsp;&amp;nbsp;&amp;nbsp; 100,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014&lt;/P&gt;&lt;P&gt;5,&amp;nbsp;&amp;nbsp;&amp;nbsp; 100,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014&lt;/P&gt;&lt;P&gt;6,&amp;nbsp;&amp;nbsp;&amp;nbsp; 100,&amp;nbsp;&amp;nbsp;&amp;nbsp; 3,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014&lt;/P&gt;&lt;P&gt;7,&amp;nbsp;&amp;nbsp;&amp;nbsp; 100,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014&lt;/P&gt;&lt;P&gt;8,&amp;nbsp;&amp;nbsp;&amp;nbsp; 100,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014&lt;/P&gt;&lt;P&gt;9,&amp;nbsp;&amp;nbsp;&amp;nbsp; 100,&amp;nbsp;&amp;nbsp;&amp;nbsp; 3,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014&lt;/P&gt;&lt;P&gt;10,&amp;nbsp;&amp;nbsp;&amp;nbsp; 100,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014 ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; sum(if((AccountNO&amp;gt;=1 and AccountNO&amp;lt;=8) and (Dimension&amp;gt;=2 and Dimension&amp;lt;=3) ,Amount)) as AMT,&lt;/P&gt;&lt;P&gt;Year ,&lt;/P&gt;&lt;P&gt;'Revenue' as Title&lt;/P&gt;&lt;P&gt;Resident Table&lt;/P&gt;&lt;P&gt;Group By Year;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; sum(if((AccountNO&amp;gt;=5 and AccountNO&amp;lt;=10) and (Dimension&amp;gt;=1 and Dimension&amp;lt;=2) ,Amount)) as AMT,&lt;/P&gt;&lt;P&gt;Year ,&lt;/P&gt;&lt;P&gt;'Expenses' as Title&lt;/P&gt;&lt;P&gt;Resident Table&lt;/P&gt;&lt;P&gt;Group By Year;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD sum(if(Title='Revenue', AMT)) - sum(if(Title='Expenses', AMT)) as AMT,&lt;/P&gt;&lt;P&gt;Year,&lt;/P&gt;&lt;P&gt;'Gross Profit' as Title&lt;/P&gt;&lt;P&gt;Resident Data&lt;/P&gt;&lt;P&gt;Group by Year;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;LOAD sum(if(Title='Gross Profit', AMT))/sum(if(Title='Revenue', AMT)) as AMT,&lt;/P&gt;&lt;P&gt;Year,&lt;/P&gt;&lt;P&gt;'Gross Margine' as Title&lt;/P&gt;&lt;P&gt;Resident Data&lt;/P&gt;&lt;P&gt;Group by Year;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 18:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-ranges-on-Income-Statement/m-p/920535#M984789</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-07-29T18:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Working with ranges on Income Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-ranges-on-Income-Statement/m-p/920536#M984791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you guys, you are the best!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 18:19:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-ranges-on-Income-Statement/m-p/920536#M984791</guid>
      <dc:creator />
      <dc:date>2015-07-30T18:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Working with ranges on Income Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Working-with-ranges-on-Income-Statement/m-p/920537#M984793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/167196"&gt;LouieERI&lt;/A&gt; we are always happy to help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 18:41:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Working-with-ranges-on-Income-Statement/m-p/920537#M984793</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-07-30T18:41:03Z</dc:date>
    </item>
  </channel>
</rss>

