<?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 Creating a calculated dimension in script or in QlikSense &amp; SetAnalysis incomprehension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Creating-a-calculated-dimension-in-script-or-in-QlikSense/m-p/839074#M11569</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;I am using &lt;STRONG&gt;Qlik Sense Desktop&lt;/STRONG&gt; to explore statistics from what could be a website, particularly the connections and disconnections.&lt;/P&gt;&lt;P&gt;What I have is a mysql database in which are stored the logs this way:&lt;/P&gt;&lt;P&gt;id_log, id_user, _date (datestamp format: YYY/MM/DD hh:mm:ss), action (logIn or logOut)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is to have the duration of the connections of the users, just as if there was an other colum, duration, calculated this way: if action is logIn, look the next rows until the action logOut with the same id_user, and do the _date difference.&lt;/P&gt;&lt;P&gt;(Actually it could be done for the row with a logOut action, but I don't think it matters).&lt;/P&gt;&lt;P&gt;Point is, I can't add this colum to my database, so I thought about two other solutions, but I'm not able to have either of them work.&lt;/P&gt;&lt;P&gt;Could you please help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Idea1:&lt;/SPAN&gt; Create a field in the load script&lt;/P&gt;&lt;P&gt;Doesn't work basically because I have no idea how to do that. I woud need to request mysql values, make the calculation (the easiest part?) and finally write them into a dimension?&lt;/P&gt;&lt;P&gt;INLINE isn't the way I'm suppose to use I guess, and I can't find anyone else who has tried doing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Idea 2:&lt;/SPAN&gt; Create the dimension in Qlik Sense&lt;/P&gt;&lt;P&gt;Require the use of the Aggr function because I obviously need to calculate around the _date dimension, I concluded that I should tried to create a measure first so...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Idea 3:&lt;/SPAN&gt; Create the measure in Qlik Sense&lt;/P&gt;&lt;P&gt;I ha ve pretty much no idea why it doesn't work the way it should:&lt;/P&gt;&lt;P&gt;I create a table with _date, id_user and action (at this point it look likes the mysql table) then add a measure _duration whose formula is if(action='singIn', 1) -works fine- then puts if(action='singIn', Min(date_log)) (I'm progressing step by step) which results in _duration and _date beeing equal.&lt;/P&gt;&lt;P&gt;So I try if(action='singIn', Min({1} date_log)), which give the exact same result, which I don't understand...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isn't Min({1} date_log) supposed to display the minimum value of date_log, no matter the conditions ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I am asking questions, here is one that in my opinion relates with my original problem but can be explained with few words:&lt;/P&gt;&lt;P&gt;If I have a dimension as below, how do I get the result I'm looking for ? :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#000000&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="border-color: #000000; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&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; _dimension&amp;nbsp; &lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&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; Min( _dimension)&amp;nbsp; &lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;&lt;P&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; Min({1}&amp;nbsp; _dimension)&lt;/P&gt;&lt;P&gt;(Why is it this ?) &lt;/P&gt;&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;&lt;P&gt;actuel minimum&lt;/P&gt;&lt;P&gt;(what I thought would result)&lt;/P&gt;&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;&lt;P&gt;next value for even numbers, value for odd numbers&lt;/P&gt;&lt;P&gt;(how could I do that ?)&lt;/P&gt;&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;&lt;P&gt;next even value for even numbers, value for odd numbers&lt;/P&gt;&lt;P&gt;(more difficult ?)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;2&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;2&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;2&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;5&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;28&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;5&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;5&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;5&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;5&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;17&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;17&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;17&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;17&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;28&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;28&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;28&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;81&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;122&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;81&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;81&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;81&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;81&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;81&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;122&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;122&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;122&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;124&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;124&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;124&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;124&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;124&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;127&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;NULL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;127&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;127&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;127&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;127&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;127&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Can someone explain me what I don't get?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jul 2015 10:33:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-09T10:33:11Z</dc:date>
    <item>
      <title>Creating a calculated dimension in script or in QlikSense &amp; SetAnalysis incomprehension</title>
      <link>https://community.qlik.com/t5/App-Development/Creating-a-calculated-dimension-in-script-or-in-QlikSense/m-p/839074#M11569</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;I am using &lt;STRONG&gt;Qlik Sense Desktop&lt;/STRONG&gt; to explore statistics from what could be a website, particularly the connections and disconnections.&lt;/P&gt;&lt;P&gt;What I have is a mysql database in which are stored the logs this way:&lt;/P&gt;&lt;P&gt;id_log, id_user, _date (datestamp format: YYY/MM/DD hh:mm:ss), action (logIn or logOut)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is to have the duration of the connections of the users, just as if there was an other colum, duration, calculated this way: if action is logIn, look the next rows until the action logOut with the same id_user, and do the _date difference.&lt;/P&gt;&lt;P&gt;(Actually it could be done for the row with a logOut action, but I don't think it matters).&lt;/P&gt;&lt;P&gt;Point is, I can't add this colum to my database, so I thought about two other solutions, but I'm not able to have either of them work.&lt;/P&gt;&lt;P&gt;Could you please help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Idea1:&lt;/SPAN&gt; Create a field in the load script&lt;/P&gt;&lt;P&gt;Doesn't work basically because I have no idea how to do that. I woud need to request mysql values, make the calculation (the easiest part?) and finally write them into a dimension?&lt;/P&gt;&lt;P&gt;INLINE isn't the way I'm suppose to use I guess, and I can't find anyone else who has tried doing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Idea 2:&lt;/SPAN&gt; Create the dimension in Qlik Sense&lt;/P&gt;&lt;P&gt;Require the use of the Aggr function because I obviously need to calculate around the _date dimension, I concluded that I should tried to create a measure first so...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Idea 3:&lt;/SPAN&gt; Create the measure in Qlik Sense&lt;/P&gt;&lt;P&gt;I ha ve pretty much no idea why it doesn't work the way it should:&lt;/P&gt;&lt;P&gt;I create a table with _date, id_user and action (at this point it look likes the mysql table) then add a measure _duration whose formula is if(action='singIn', 1) -works fine- then puts if(action='singIn', Min(date_log)) (I'm progressing step by step) which results in _duration and _date beeing equal.&lt;/P&gt;&lt;P&gt;So I try if(action='singIn', Min({1} date_log)), which give the exact same result, which I don't understand...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isn't Min({1} date_log) supposed to display the minimum value of date_log, no matter the conditions ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I am asking questions, here is one that in my opinion relates with my original problem but can be explained with few words:&lt;/P&gt;&lt;P&gt;If I have a dimension as below, how do I get the result I'm looking for ? :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#000000&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="border-color: #000000; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&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; _dimension&amp;nbsp; &lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&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; Min( _dimension)&amp;nbsp; &lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;&lt;P&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; Min({1}&amp;nbsp; _dimension)&lt;/P&gt;&lt;P&gt;(Why is it this ?) &lt;/P&gt;&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;&lt;P&gt;actuel minimum&lt;/P&gt;&lt;P&gt;(what I thought would result)&lt;/P&gt;&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;&lt;P&gt;next value for even numbers, value for odd numbers&lt;/P&gt;&lt;P&gt;(how could I do that ?)&lt;/P&gt;&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;&lt;P&gt;next even value for even numbers, value for odd numbers&lt;/P&gt;&lt;P&gt;(more difficult ?)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;2&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;2&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;2&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;5&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;28&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;5&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;5&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;5&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;5&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;17&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;17&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;17&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;17&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;28&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;28&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;28&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;81&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;122&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;81&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;81&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;81&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;81&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;81&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;122&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;122&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;122&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;124&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;124&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;124&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;124&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;124&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;127&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;NULL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;127&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;127&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;127&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;1&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;127&lt;/TD&gt;&lt;TD style="color: #000000; text-align: center; background-color: #ffffff; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;127&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Can someone explain me what I don't get?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 10:33:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Creating-a-calculated-dimension-in-script-or-in-QlikSense/m-p/839074#M11569</guid>
      <dc:creator />
      <dc:date>2015-07-09T10:33:11Z</dc:date>
    </item>
  </channel>
</rss>

