<?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: Expressions in dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expressions-in-dimensions/m-p/1269717#M517428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is certainly possible, but the coding/expressions will be quite specific to your data model. If you upload a smalls ample qvw with representative data, you may get more specific and accurate help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, though, your first (calculated) dimension would look something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; If(Count(Orders) &amp;gt; 1000, Dual('1000+', 1000),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Count(Orders) &amp;gt; 100, Dual('100 - 1000+', 100),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Count(Orders) &amp;gt; 10, Dual('10 - 100+', 10),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual('&amp;lt;10', 0))))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Customer would be the second dimension,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sum(Sales) or whatever you need as a metric.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Duals allow for correct sorting of the groups in the calculate dimension. Sort numerically.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2017 13:04:06 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2017-01-18T13:04:06Z</dc:date>
    <item>
      <title>Expressions in dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-in-dimensions/m-p/1269714#M517425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I can explain this properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a bunch of bunch of expressions that we would like to use as dimensions and bunch of dimensions as expressions. The expressions are derived from our dataset and we would like to slide the dimensions based on the expression values if that makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For e.g.&lt;/P&gt;&lt;P&gt;We have CustomerA, CustomerB and CustomerC as fields in our table and orders as expressions. If we want to show expressions as dimensions on x axis i.e. say Orders 10-100, 100-1000 and so on and then show customer A, B and C in a bar graph stacked on y axis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone loosely implemented this or point me to an article that does similar kind of things?&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, 18 Jan 2017 12:12:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-in-dimensions/m-p/1269714#M517425</guid>
      <dc:creator>kashjaniqlik</dc:creator>
      <dc:date>2017-01-18T12:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions in dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-in-dimensions/m-p/1269715#M517426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need two dimensions... 1st will be a &lt;A href="https://community.qlik.com/qlik-blogpost/3676"&gt;Calculated Dimensions&lt;/A&gt;‌ &lt;SPAN style="font-size: 10pt;"&gt;and second dimension will be Customer. Then use your expression for what those bar seems to be plotting&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 12:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-in-dimensions/m-p/1269715#M517426</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-18T12:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions in dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-in-dimensions/m-p/1269716#M517427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/89626"&gt;Calculated Dimension and conditional dimension --&amp;amp;gt; bad performance&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3676"&gt;Calculated Dimensions&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 12:19:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-in-dimensions/m-p/1269716#M517427</guid>
      <dc:creator>dsharmaqv</dc:creator>
      <dc:date>2017-01-18T12:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions in dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Expressions-in-dimensions/m-p/1269717#M517428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is certainly possible, but the coding/expressions will be quite specific to your data model. If you upload a smalls ample qvw with representative data, you may get more specific and accurate help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, though, your first (calculated) dimension would look something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; If(Count(Orders) &amp;gt; 1000, Dual('1000+', 1000),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Count(Orders) &amp;gt; 100, Dual('100 - 1000+', 100),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Count(Orders) &amp;gt; 10, Dual('10 - 100+', 10),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual('&amp;lt;10', 0))))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Customer would be the second dimension,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sum(Sales) or whatever you need as a metric.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Duals allow for correct sorting of the groups in the calculate dimension. Sort numerically.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 13:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expressions-in-dimensions/m-p/1269717#M517428</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-01-18T13:04:06Z</dc:date>
    </item>
  </channel>
</rss>

