<?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: Calculated Dimension on a Pivot Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-on-a-Pivot-Chart/m-p/1734487#M722776</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check the attached app, see if this is what you are looking for. I created a dimension with the category combinations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Aug 2020 12:57:36 GMT</pubDate>
    <dc:creator>fosuzuki</dc:creator>
    <dc:date>2020-08-10T12:57:36Z</dc:date>
    <item>
      <title>Calculated Dimension on a Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-on-a-Pivot-Chart/m-p/1733973#M722770</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm currently working on a dashboard. In the data model there is a dimension called "Category" with 4 values:&lt;/P&gt;&lt;TABLE border="1" width="20%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%" height="24px"&gt;&lt;STRONG&gt;Category&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="24px"&gt;Category 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="24px"&gt;Category 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="24px"&gt;Category 3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="24px"&gt;Category 4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I'm needing to build a pivot chart that in a single column or dimension shows the possible combinations of the same field "Category" and in the expression count the number of users that have granted permision in that combination. The expected result would be something like this:&lt;/P&gt;&lt;TABLE border="1" width="600"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="80.9091px" height="24px"&gt;&lt;STRONG&gt;Dimension&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="83.6364px"&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Count (Distinct .........USERNAME)&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="80.9091px" height="24px"&gt;Category 1 and Category 2&lt;/TD&gt;&lt;TD width="83.6364px"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="80.9091px" height="24px"&gt;Category 2 and Category 3&lt;/TD&gt;&lt;TD width="83.6364px"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="80.9091px" height="24px"&gt;Category 2 and Category 4&lt;/TD&gt;&lt;TD width="83.6364px"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="80.9091px" height="24px"&gt;..And so on&lt;/TD&gt;&lt;TD width="83.6364px"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;...................&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, the following expression returns the correct calculation to count the users that have the combination of category "Category 1" and "Category 2", but it is not functional for me since it does not have it in one dimension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count(DISTINCT {&amp;lt;USERNAME = {"=(COUNT(DISTINCT {&amp;lt;Category={'Category 1'}, Granted={'Y'}  &amp;gt;} USERNAME) &amp;gt; 0 
AND COUNT(DISTINCT {&amp;lt;Category={'Category 2'}, Granted={'Y'} &amp;gt;} USERNAME) &amp;gt; 0) "}&amp;gt;} USERNAME)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the example of the qv file I made the attempt with a bar chart that has no dimensions, it is not what I need.&amp;nbsp;I think the calculation can be made simpler, maybe from the same script I can create those combinations in a new dimension but I don't know how.&lt;/P&gt;&lt;P&gt;From already thank you very much.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:11:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-on-a-Pivot-Chart/m-p/1733973#M722770</guid>
      <dc:creator>educastri83</dc:creator>
      <dc:date>2024-11-16T00:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension on a Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-on-a-Pivot-Chart/m-p/1734016#M722771</link>
      <description>&lt;P&gt;You can create one expresssion for each combination, and the expressions header can be pivoted in the table to show as columns or rows. So maybe you don't need a dimension...&lt;/P&gt;&lt;P&gt;Is there a reason why you need the combinations in a dimension? Do you want the users to use this dimension as a filter?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 08:13:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-on-a-Pivot-Chart/m-p/1734016#M722771</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2020-08-07T08:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension on a Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-on-a-Pivot-Chart/m-p/1734033#M722772</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find attached QVW and sample data file with solution.&lt;/P&gt;&lt;P&gt;Hope this works for you.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 09:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-on-a-Pivot-Chart/m-p/1734033#M722772</guid>
      <dc:creator>mahesh_agrawal</dc:creator>
      <dc:date>2020-08-07T09:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension on a Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-on-a-Pivot-Chart/m-p/1734128#M722773</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/41226"&gt;@mahesh_agrawal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like this I imagine to have the category combos as dimension field. However, the calculation it performs on the pivot chart is not correct. For example, in your example UserID 1 has only the value "Category1" in the CategoryName field, so that user should not appear in the calculation of the combinations and it is because it only has a single category, it does not have more than one category to be able to arm the category combos. And so for other users.&lt;BR /&gt;Can the pivot chart expression count when a user has the combination of categories?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 14:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-on-a-Pivot-Chart/m-p/1734128#M722773</guid>
      <dc:creator>educastri83</dc:creator>
      <dc:date>2020-08-07T14:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension on a Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-on-a-Pivot-Chart/m-p/1734136#M722774</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28676"&gt;@fosuzuki&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data was from a dummy example, but in reality it can be many more categories. In the example I tried it with a listbox as a filter, which helps but I lose the option to see it in a summary. To be able to visualize it from a pivot chart that shows as a dimension all the combinations of categories and in the expression that counts the total number of users that have that combination is what I need.&lt;/P&gt;&lt;P&gt;I tested it with a bar chart and at least in the example there is an expression for each combination of categories. That bar chart has no dimensions and I lose interaction. I would also like to be able to order from highest to lowest the combination that has the highest number of users and I am not succeeding.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 14:26:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-on-a-Pivot-Chart/m-p/1734136#M722774</guid>
      <dc:creator>educastri83</dc:creator>
      <dc:date>2020-08-07T14:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension on a Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-on-a-Pivot-Chart/m-p/1734266#M722775</link>
      <description>&lt;P&gt;In fact, about the filter option, the calculation I did in a list box was the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Aggr(if(Count(DISTINCT {&amp;lt;Category={'Category 1'}, Granted ={'Y'}&amp;gt;} USERNAME)  &amp;gt;0
   and Count(DISTINCT {&amp;lt;Category={'Category 2'}, Granted ={'Y'}&amp;gt;} USERNAME)   &amp;gt; 0 , 'Category 1 &amp;amp; Category 2',
   
   
   if(Count(DISTINCT {&amp;lt;Category={'Category 2'}, Granted ={'Y'}&amp;gt;} USERNAME)  &amp;gt;0
   and Count(DISTINCT {&amp;lt;Category={'Category 3'}, Granted ={'Y'}&amp;gt;} USERNAME)   &amp;gt; 0 , 'Category 2 &amp;amp; Category 3',
   
   
   if(Count(DISTINCT {&amp;lt;Category={'Category 2'}, Granted ={'Y'}&amp;gt;} USERNAME)  &amp;gt;0
   and Count(DISTINCT {&amp;lt;Category={'Category 4'}, Granted ={'Y'}&amp;gt;} USERNAME)   &amp;gt; 0 , 'Category 2 &amp;amp; Category 4'
   
   ))), USERNAME)
  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;the above returns a list like:&lt;/P&gt;&lt;TABLE border="1" width="30%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%" height="24px"&gt;&lt;STRONG&gt;List box&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="24px"&gt;Category 1 &amp;amp; Category 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="24px"&gt;Category 2 &amp;amp; Category 3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="24px"&gt;Category 3 &amp;amp; Category 4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It serves as a filter to see which user has which combination, but the truth is I lose the total summary that counts the total number of users who have each combo, which is basically what I need.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 01:58:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-on-a-Pivot-Chart/m-p/1734266#M722775</guid>
      <dc:creator>educastri83</dc:creator>
      <dc:date>2020-08-08T01:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension on a Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-on-a-Pivot-Chart/m-p/1734487#M722776</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check the attached app, see if this is what you are looking for. I created a dimension with the category combinations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 12:57:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-on-a-Pivot-Chart/m-p/1734487#M722776</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2020-08-10T12:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension on a Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-on-a-Pivot-Chart/m-p/1734688#M722777</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28676"&gt;@fosuzuki&lt;/a&gt;&amp;nbsp; Thank you very much, you have helped me a lot and it's a great solution.&amp;nbsp;&lt;SPAN&gt;I did the test with the real data and the pivot chart works as I wanted.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;One last question, I would also like the listbox with the "CatCombo" field to be available on the dashboard, and when including it I have noticed that it brings some combos that users do not have, for example username 17 which has the values "Category 2" and "Category 4" and the listbox shows the combination "Category 1 and Category 2" and so on.. that username17 doesn't really have.&lt;BR /&gt;Is there a way for the listbox to show "Category 4 and Category 2" as a related value? something like that:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" width="30%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%" height="24px"&gt;&lt;STRONG&gt;CatCombo&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%" height="24px"&gt;Category 4 and Category 2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;note: Example when USERNAME 17&amp;nbsp;was selected&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 03:30:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-on-a-Pivot-Chart/m-p/1734688#M722777</guid>
      <dc:creator>educastri83</dc:creator>
      <dc:date>2020-08-11T03:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension on a Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-on-a-Pivot-Chart/m-p/1735018#M722778</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Actually the previous solution I sent you has two parts: some preprocessing in the script, and a part of the magic in the expression with aggr.&lt;/P&gt;&lt;P&gt;If you want a more direct filter behavior, I think that you'll need to change the data model, preprocessing the CatCombo and creating a field directly associated with the user.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 21:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-on-a-Pivot-Chart/m-p/1735018#M722778</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2020-08-11T21:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension on a Pivot Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-on-a-Pivot-Chart/m-p/1735030#M722779</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28676"&gt;@fosuzuki&lt;/a&gt;&amp;nbsp;, Thank you very much, you have helped me a lot. I'm going to try and play with the data, but the solution you gave me works for me. Thanks, again&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 22:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-on-a-Pivot-Chart/m-p/1735030#M722779</guid>
      <dc:creator>educastri83</dc:creator>
      <dc:date>2020-08-11T22:27:36Z</dc:date>
    </item>
  </channel>
</rss>

