<?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: Expression help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/554851#M1124801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a little hard to tell without some sample data, but if I assume your initial calculation of "A", "B", "C" is done via an expression similar to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(KPI1/KPI2 &amp;gt;= 1, 'A',&amp;nbsp; if(KPI1/KPI2 &amp;gt; .5, 'B', 'C'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then to expression used for the count of 'A' in your second table would be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if(KPI1/KPI2 &amp;gt;= 1, 1, 0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jan 2014 02:53:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-01-07T02:53:01Z</dc:date>
    <item>
      <title>Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/554846#M1124792</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 a Location Dimension with the following hierarchy ( Starting from the lowest order) : Store, Field employees, Managers,Zone, Region. I have created a cyclic group with these fields names, in order, as " Retail". I have a straight table where I have this cyclic group as well as 3 expressions. The last expression defines whether a Store or a Field Employee or a Manager etc is "A","B" or "C" based on a number range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to count the number of Zone with "A" or "B" or "C" if I select a Region, from the list box. Similarly, I want to count the number of Managers with a "A", "B" or "C" if I select a Zone and so on .....till Store. I want this to be displayed in a bar chart ( showing counts of "A" , "B", "C") where I will use the same Cyclic group , "Retail".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help to write this as an expression will be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tutan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jan 2014 22:02:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/554846#M1124792</guid>
      <dc:creator />
      <dc:date>2014-01-05T22:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/554847#M1124793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tutan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if I understand your question correctly but I believe the key thing you are trying to do is count the elements in your cyclic location dimension by a category of "A", "B" or "C", is this correct?&amp;nbsp; If so then I believe what you are describing is a calculated dimension, which is to say you want to count stores/zones/managers etc BY a category or dimension that you create.&amp;nbsp; On the Dimensions tab of the chart properties you will see an "Add Calculated Dimension" button.&amp;nbsp; You can use the number ranges you mentioned to create the dimension values for "A", "B" or "C" which will then be applied as a dimension in your bar chart.&amp;nbsp; Your dimension expression might contain something like a nested IF statement or perhaps a Class or range function as required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jan 2014 22:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/554847#M1124793</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-05T22:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/554848#M1124795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you can upload an example for better understanding...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jan 2014 22:40:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/554848#M1124795</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-01-05T22:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/554849#M1124797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an example: Please take a look into the straight table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 370px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="114"&gt;Retail(Managers)&lt;/TD&gt;&lt;TD width="64"&gt;KPI1&lt;/TD&gt;&lt;TD width="64"&gt;KPI2&lt;/TD&gt;&lt;TD colspan="2" width="128"&gt;KPI1/KPI2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Manka&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;TD align="right"&gt;0.5&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Tunai&lt;/TD&gt;&lt;TD align="right"&gt;300&lt;/TD&gt;&lt;TD align="right"&gt;250&lt;/TD&gt;&lt;TD align="right"&gt;1.2&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Munai&lt;/TD&gt;&lt;TD align="right"&gt;275&lt;/TD&gt;&lt;TD align="right"&gt;300&lt;/TD&gt;&lt;TD align="right"&gt;0.916667&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Taniya&lt;/TD&gt;&lt;TD align="right"&gt;442&lt;/TD&gt;&lt;TD align="right"&gt;414&lt;/TD&gt;&lt;TD align="right"&gt;1.067633&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the table which shows the gradation of Managers based on KPI's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a table like this (When I cycle to Zone) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 306px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="114"&gt;Retail(Zone)&lt;/TD&gt;&lt;TD width="64"&gt;No. of A&lt;/TD&gt;&lt;TD width="64"&gt;No. of B&lt;/TD&gt;&lt;TD width="64"&gt;No.of C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;US East&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This shows me the number of Managers under the Zone "US East" having A, B or C.&lt;/P&gt;&lt;P&gt;So, the hierarchy is Region----&amp;gt;Zone---&amp;gt;Managers---&amp;gt;Field_Employee----&amp;gt;Store. Store is the lowest level in the hierarchy of cyclic group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Retail is the cyclic group where I have defined this hierarchy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks much in advance for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tutan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 23:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/554849#M1124797</guid>
      <dc:creator />
      <dc:date>2014-01-06T23:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/554850#M1124799</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;Can you attach some sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 02:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/554850#M1124799</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-01-07T02:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Expression help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-help/m-p/554851#M1124801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a little hard to tell without some sample data, but if I assume your initial calculation of "A", "B", "C" is done via an expression similar to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(KPI1/KPI2 &amp;gt;= 1, 'A',&amp;nbsp; if(KPI1/KPI2 &amp;gt; .5, 'B', 'C'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then to expression used for the count of 'A' in your second table would be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if(KPI1/KPI2 &amp;gt;= 1, 1, 0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 02:53:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-help/m-p/554851#M1124801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-07T02:53:01Z</dc:date>
    </item>
  </channel>
</rss>

