<?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: Data Missing in Dimensionality() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-Missing-in-Dimensionality/m-p/1769704#M717192</link>
    <description>&lt;P&gt;Dear Rubenmarin&lt;/P&gt;&lt;P&gt;Wow, you are TOO ADVANCED in QV and not easy for me to understand such a long script now, WELL DONE.&lt;/P&gt;&lt;P&gt;I have tagged you few minutes ago and will consult you after studying the script in details.&lt;/P&gt;&lt;P&gt;Thank you very much, Tracy&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Dec 2020 01:09:12 GMT</pubDate>
    <dc:creator>tracycrown</dc:creator>
    <dc:date>2020-12-21T01:09:12Z</dc:date>
    <item>
      <title>Data Missing in Dimensionality()</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Missing-in-Dimensionality/m-p/1769378#M717188</link>
      <description>&lt;P&gt;Dear Sir/Madam&lt;/P&gt;&lt;P&gt;Kindly advise why data missing in Total Rows and Columns for Grade ?.&lt;/P&gt;&lt;P&gt;Thank you, Tracy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 04:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Missing-in-Dimensionality/m-p/1769378#M717188</guid>
      <dc:creator>tracycrown</dc:creator>
      <dc:date>2020-12-18T04:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Data Missing in Dimensionality()</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Missing-in-Dimensionality/m-p/1769650#M717189</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28151"&gt;@tracycrown&lt;/a&gt;, If a cell has more than one value it will return null, in this case you have a value for each combination of year, month, id,... so the total row has more than value to show.&lt;/P&gt;&lt;P&gt;One possible solution is to use dimensionality() and secondarydimensionality() to use the appropiate aggreation for the cell to return only one value, ie:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If(SecondaryDimensionality()=0
  ,If(Dimensionality()&amp;lt;=1 
    ,Aggr(If(round(avg(Point),0.1)&amp;gt;= [Lower] and round(avg(Point),0.1) &amp;lt;= [Upper], Grade),ID,Grade)
    ,Aggr(If(round(avg(Point),0.1)&amp;gt;= [Lower] and round(avg(Point),0.1) &amp;lt;= [Upper], Grade),ID,Name,Product,Grade))
  ,If(Dimensionality()&amp;lt;3
    ,Aggr(If(round(avg(Point),0.1)&amp;gt;= [Lower] and round(avg(Point),0.1) &amp;lt;= [Upper], Grade),ID,Year,Month,Grade)
    ,Aggr(distinct If(round(avg(Point),0.1)&amp;gt;= [Lower] and round(avg(Point),0.1) &amp;lt;= [Upper], Grade),Year,Month,ID,Name,Product,Grade)))&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 19 Dec 2020 14:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Missing-in-Dimensionality/m-p/1769650#M717189</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2020-12-19T14:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Data Missing in Dimensionality()</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Missing-in-Dimensionality/m-p/1769662#M717190</link>
      <description>&lt;P&gt;Dear Mr Rubenmarin&lt;/P&gt;&lt;P&gt;Thank you very much for your kind and quick advice, it works well.&amp;nbsp;I will certainly "Accept as solution" later as you are so knowledgeable and I do not want to miss any opportunity.&lt;/P&gt;&lt;P&gt;Based on past experience, once I accepted as solution, the original query will be closed and you will not be able to read my further queries. Also, I do not know how to write to you using&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593"&gt;@rubenmarin&lt;/a&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure whether I have missed out anything after applying your method as it does not work after adding more dimensions such as Operation, Team and Shift , kindly help to review and advise asap.&lt;/P&gt;&lt;P&gt;Wishing you and your family have a Wonderful Merry Christmas.&lt;/P&gt;&lt;P&gt;Thank you, Tracy&lt;/P&gt;</description>
      <pubDate>Sun, 20 Dec 2020 07:57:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Missing-in-Dimensionality/m-p/1769662#M717190</guid>
      <dc:creator>tracycrown</dc:creator>
      <dc:date>2020-12-20T07:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Data Missing in Dimensionality()</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Missing-in-Dimensionality/m-p/1769698#M717191</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28151"&gt;@tracycrown&lt;/a&gt;, the difficulty here is that you need to calculate the average and assign the grade on different aggretation levels (operation, Team, ID...).&amp;nbsp;To identify the aggregation needed you can use Dimesnionality() and SecondaryDimensionaly().&lt;/P&gt;&lt;P&gt;Dimensionality() returns the dimension number, 0 for horizontal total row (not set in this table, it will be shown if Operations has checked the subtotals options), For each dimesnionality value you will need a different level of aggregation: Operation for Dimensionality()=1, Operation and Team for Dimensionality()=2, etc...&lt;/P&gt;&lt;P&gt;SecondaryDimesnionality() is the same but for vertical dimensions, in this case only 2 options: 0 for the first vertical totals, and 2 for the other columns. So for 0 you don't need to add anything, and for SecondaryDimensionality=2 you need to add Year and Month as aggreation levels. (copy from SecondaryDimensionality()=0 and add the two fields to the Aggr)&lt;/P&gt;&lt;P&gt;Solution attached, I also added Dimensionality() and SecondaryDimensionality() as columns so you can chek it's values.&lt;/P&gt;&lt;P&gt;Also, if you accept a solution the thread is not be closed, I don't know others but I try to answer even if the post is checked as a solution, just rememeber to tag me with &lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22593" target="_blank"&gt;@rubenmarin&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;to ensure I'll receive the notification... well... at least I try to answer but some times I'm very busy or I miss the notification.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Merry Christmas!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Dec 2020 19:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Missing-in-Dimensionality/m-p/1769698#M717191</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2020-12-20T19:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Data Missing in Dimensionality()</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Missing-in-Dimensionality/m-p/1769704#M717192</link>
      <description>&lt;P&gt;Dear Rubenmarin&lt;/P&gt;&lt;P&gt;Wow, you are TOO ADVANCED in QV and not easy for me to understand such a long script now, WELL DONE.&lt;/P&gt;&lt;P&gt;I have tagged you few minutes ago and will consult you after studying the script in details.&lt;/P&gt;&lt;P&gt;Thank you very much, Tracy&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 01:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Missing-in-Dimensionality/m-p/1769704#M717192</guid>
      <dc:creator>tracycrown</dc:creator>
      <dc:date>2020-12-21T01:09:12Z</dc:date>
    </item>
  </channel>
</rss>

