<?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: Relative expression of a calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Relative-expression-of-a-calculated-dimension/m-p/1935491#M1219140</link>
    <description>&lt;P&gt;&lt;SPAN&gt;"&amp;gt;=60" is&lt;/SPAN&gt; not querying a string else applying a numeric comparison. To make a string-query it should be: '&lt;SPAN&gt;&amp;gt;=60'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- Marcus&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2022 13:24:38 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2022-05-25T13:24:38Z</dc:date>
    <item>
      <title>Relative expression of a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Relative-expression-of-a-calculated-dimension/m-p/1935325#M1219132</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;I was wondering how to calculate a relative expression with a calculated dimension.&lt;/P&gt;
&lt;P&gt;My graph :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tabb.PNG" style="width: 459px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/80258i90932A28293AB3FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="tabb.PNG" alt="tabb.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;( in this example the last column doesn't work, it should have as total 100%&lt;/P&gt;
&lt;P&gt;My column age is an age range column and is&amp;nbsp; based on multiple if ( to define kind of age range thanks to&amp;nbsp; the dimension age defined in the script ). [ for example if age &amp;gt;50 and &amp;lt; 54 so "50-54',if.... ]&lt;/P&gt;
&lt;P&gt;To make the relative column, I thought about using&amp;nbsp; the&amp;nbsp; " TOTAL " keyword ( with the sum )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so something like&lt;/P&gt;
&lt;P&gt;num( (sum({&amp;lt;Year={$(=(2018))}&amp;gt;} [number]*number2)) ,'# ##0,0',',',' ')/num( (sum(TOTAL {&amp;lt;Year={$(=(2018))}&amp;gt;} [number1]*number 2)) ,'# ##0,0',',',' ')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But as i have an calculated dimension i can't put a name of the dimension inside the &amp;lt; &amp;gt; after the keyword TOTAL . So I think that's why it doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;am I&amp;nbsp; forced to put the calculated dimension in the script so i have a&amp;nbsp; true dimension name i can put with the total keyword ?&lt;/P&gt;
&lt;P&gt;Thanks for reading&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 10:29:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relative-expression-of-a-calculated-dimension/m-p/1935325#M1219132</guid>
      <dc:creator>flo2</dc:creator>
      <dc:date>2022-05-25T10:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Relative expression of a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Relative-expression-of-a-calculated-dimension/m-p/1935356#M1219133</link>
      <description>&lt;P&gt;Yes, in TOTAL or within aggr() native fields are needed. Creating them within the script is most often much easier as creating these logic within the UI and will of course speed up the performance.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 11:04:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relative-expression-of-a-calculated-dimension/m-p/1935356#M1219133</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-05-25T11:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Relative expression of a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Relative-expression-of-a-calculated-dimension/m-p/1935413#M1219134</link>
      <description>&lt;P&gt;Ah thanks, indeed ! Also&amp;nbsp; I have another question which follows in case &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I created a new field which contains the " age range" but in the expression i would need to suppress all the&amp;nbsp; values who are not "50-54" or "54-59" or "&amp;gt;=60"&lt;/P&gt;
&lt;P&gt;But when i put in set analysis the set analysis modifier&amp;nbsp; "&amp;gt;=60", it is interpreted as if I asked all the values superior than 60 and not as if i asked the exact&amp;nbsp; text value"&amp;gt;=60"&lt;/P&gt;
&lt;P&gt;my set analysis : num( (sum({&amp;lt;[age range]={'50-54,'55-59,'&amp;gt;=60 '}&amp;gt;} [field1]*field2)) ,'# ##0,0',',',' ')&lt;/P&gt;
&lt;P&gt;I thought it was only when i put the dollar sign $ that i was interpreted as all values superior than&lt;/P&gt;
&lt;P&gt;Did I do it wrong ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks again !&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 12:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relative-expression-of-a-calculated-dimension/m-p/1935413#M1219134</guid>
      <dc:creator>flo2</dc:creator>
      <dc:date>2022-05-25T12:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Relative expression of a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Relative-expression-of-a-calculated-dimension/m-p/1935424#M1219135</link>
      <description>&lt;P&gt;The listing of these string-values will work if they are properly spelled and the quotes are correctly set. You may try it with:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;num(sum({&amp;lt;[age range]={'50-54', '55-59', '&amp;gt;=60'}&amp;gt;} [field1]*field2) ,'# ##0,0',',',' ')&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 12:35:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relative-expression-of-a-calculated-dimension/m-p/1935424#M1219135</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-05-25T12:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Relative expression of a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Relative-expression-of-a-calculated-dimension/m-p/1935434#M1219136</link>
      <description>&lt;P&gt;I correctly spelled them and it doesn't work &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;i am going to try to create a little app to see if has the same problematic or not&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 12:41:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relative-expression-of-a-calculated-dimension/m-p/1935434#M1219136</guid>
      <dc:creator>flo2</dc:creator>
      <dc:date>2022-05-25T12:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Relative expression of a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Relative-expression-of-a-calculated-dimension/m-p/1935440#M1219137</link>
      <description>&lt;P&gt;Which results do you get - zero or as if no conditions were applied? The last could be caused if the field itself isn't correctly set. Above you say it's&amp;nbsp;&lt;SPAN&gt;" age range" and within the expression it's called&amp;nbsp;[age range] - which is not the same. The first one has an extra leading space.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- Marcus&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 12:46:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relative-expression-of-a-calculated-dimension/m-p/1935440#M1219137</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-05-25T12:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Relative expression of a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Relative-expression-of-a-calculated-dimension/m-p/1935479#M1219139</link>
      <description>&lt;P&gt;it is like if there was no condition ( no analysis modifier )&amp;nbsp; if i have in set analysis modifier "&amp;lt;25" or "&amp;gt;=60"&amp;nbsp; ( when there are no &amp;lt; or &amp;gt; in the text value, no problems, my set analysis modifier works perfectly&amp;nbsp; ) and I did the same things for 2 other apps with inline data in script and on these apps there are no problems i don't understand...&lt;/P&gt;
&lt;P&gt;It's like if there was a character i can't see just before or after the&amp;nbsp; &amp;gt; or &amp;lt; but I copy / paste the value of the data so it should work &lt;/P&gt;
&lt;P&gt;Weird problem because it totally works except in the app where i work ahah&lt;/P&gt;
&lt;P&gt;Thanks for help, now i know it's specifically on my app and i will search why&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 13:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relative-expression-of-a-calculated-dimension/m-p/1935479#M1219139</guid>
      <dc:creator>flo2</dc:creator>
      <dc:date>2022-05-25T13:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Relative expression of a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Relative-expression-of-a-calculated-dimension/m-p/1935491#M1219140</link>
      <description>&lt;P&gt;&lt;SPAN&gt;"&amp;gt;=60" is&lt;/SPAN&gt; not querying a string else applying a numeric comparison. To make a string-query it should be: '&lt;SPAN&gt;&amp;gt;=60'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- Marcus&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 13:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relative-expression-of-a-calculated-dimension/m-p/1935491#M1219140</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-05-25T13:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Relative expression of a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Relative-expression-of-a-calculated-dimension/m-p/1935494#M1219141</link>
      <description>&lt;P&gt;Yes the " " was&amp;nbsp; just bad text in my response &lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 13:26:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relative-expression-of-a-calculated-dimension/m-p/1935494#M1219141</guid>
      <dc:creator>flo2</dc:creator>
      <dc:date>2022-05-25T13:26:10Z</dc:date>
    </item>
  </channel>
</rss>

