<?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: Transpose groups and measures in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Transpose-groups-and-measures/m-p/137866#M753982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not that straight forward, because you need to move your measures to the Dimnesions tab somehow. There are two ways to achieve this.&lt;/P&gt;&lt;P&gt;1. You can adjust your data model and based on your measure definition create new field, which will be used as dimension (this can be done perhaps by use of a few if statements). Then you can add this field as a dimension to you chart.&lt;/P&gt;&lt;P&gt;2. If you can't change data model, you can use ValueList() function to achieve this, but this can get pretty complicated, performance heavy (based on data volume) and rather hard to maintain.&lt;/P&gt;&lt;P&gt;Add a calculated dimension:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_153875218160786 jive_text_macro" jivemacro_uid="_153875218160786"&gt;
&lt;P&gt;ValueList('Expression 1 Label', 'Expression 2 Label','Expression 3 Label')&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;Then use a single expression:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15387521875446034 jive_text_macro" jivemacro_uid="_15387521875446034"&gt;
&lt;P&gt;Pick(Match(ValueList('Expression 1 Label', 'Expression 2 Label','Expression 3 Label'), 'Expression 1 Label', 'Expression 2 Label','Expression 3 Label'),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Sum(Expression1),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Sum(Expression2),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Sum(Expression3)&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Juraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Oct 2018 15:10:12 GMT</pubDate>
    <dc:creator>juraj_misina</dc:creator>
    <dc:date>2018-10-05T15:10:12Z</dc:date>
    <item>
      <title>Transpose groups and measures</title>
      <link>https://community.qlik.com/t5/QlikView/Transpose-groups-and-measures/m-p/137865#M753981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello QV-community. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to QV so I must excuse myself for this perhaps stupid question: I want to create a Stacked Bar Chart with measures on the X-axis and the dimension on the Y-Axis. The Dimension is boolean field whcih crosses over all measures (see the first picture). So I want to split my measures in the red and the blue group which is a fact attribute. When I do this in QV I get the QV to Transpose the results in the&amp;nbsp; wrong way (see picture 2). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" height="159" src="https://community.qlik.com/legacyfs/online/215197_pastedImage_0.png" style="width: 300px; height: 158.824px;" width="300" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (How it looks like in Excel)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" height="296" src="https://community.qlik.com/legacyfs/online/215205_pastedImage_2.png" style="width: 274.532px; height: 296px;" width="275" /&gt;&lt;/P&gt;&lt;P&gt;The Problem here in this picture is that the QV chooses the dimension (1 and 0) as X-Axis instead of grouping togheter respectively measure together and having one stacked gray bar and one stacked blue bar etc. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transpose-groups-and-measures/m-p/137865#M753981</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose groups and measures</title>
      <link>https://community.qlik.com/t5/QlikView/Transpose-groups-and-measures/m-p/137866#M753982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not that straight forward, because you need to move your measures to the Dimnesions tab somehow. There are two ways to achieve this.&lt;/P&gt;&lt;P&gt;1. You can adjust your data model and based on your measure definition create new field, which will be used as dimension (this can be done perhaps by use of a few if statements). Then you can add this field as a dimension to you chart.&lt;/P&gt;&lt;P&gt;2. If you can't change data model, you can use ValueList() function to achieve this, but this can get pretty complicated, performance heavy (based on data volume) and rather hard to maintain.&lt;/P&gt;&lt;P&gt;Add a calculated dimension:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_153875218160786 jive_text_macro" jivemacro_uid="_153875218160786"&gt;
&lt;P&gt;ValueList('Expression 1 Label', 'Expression 2 Label','Expression 3 Label')&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;Then use a single expression:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15387521875446034 jive_text_macro" jivemacro_uid="_15387521875446034"&gt;
&lt;P&gt;Pick(Match(ValueList('Expression 1 Label', 'Expression 2 Label','Expression 3 Label'), 'Expression 1 Label', 'Expression 2 Label','Expression 3 Label'),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Sum(Expression1),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Sum(Expression2),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Sum(Expression3)&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Juraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2018 15:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Transpose-groups-and-measures/m-p/137866#M753982</guid>
      <dc:creator>juraj_misina</dc:creator>
      <dc:date>2018-10-05T15:10:12Z</dc:date>
    </item>
  </channel>
</rss>

