<?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: Generating dimensions values depending on another dimension values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generating-dimensions-values-depending-on-another-dimension/m-p/658319#M669157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the field Status has to be created using a script, you may try a script like the following:&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;ID, Activity&lt;/P&gt;&lt;P&gt;A,Activity_1&lt;/P&gt;&lt;P&gt;A,Activity_2&lt;/P&gt;&lt;P&gt;A,Activity_3&lt;/P&gt;&lt;P&gt;A,Activity_4&lt;/P&gt;&lt;P&gt;A,Done&lt;/P&gt;&lt;P&gt;B,Activity_1&lt;/P&gt;&lt;P&gt;B,Activity_2&lt;/P&gt;&lt;P&gt;C,Activity_1&lt;/P&gt;&lt;P&gt;C,Activity_2&lt;/P&gt;&lt;P&gt;C,Done&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD ID, Activity as Status Resident Data Where Activity = 'Done';&lt;/P&gt;&lt;P&gt;Left Join (Data) LOAD * Resident Temp;&lt;/P&gt;&lt;P&gt;DROP Table Temp;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;NoConcatenate &lt;/P&gt;&lt;P&gt;LOAD ID, Activity,If(Status='Done',Status,'Undone') as Status Resident Data;&lt;/P&gt;&lt;P&gt;DROP Table Data;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Oct 2014 21:16:56 GMT</pubDate>
    <dc:creator>nagaiank</dc:creator>
    <dc:date>2014-10-04T21:16:56Z</dc:date>
    <item>
      <title>Generating dimensions values depending on another dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-dimensions-values-depending-on-another-dimension/m-p/658314#M669152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have two dimensions: "ID" and "Activity". For each distinct ID there is a lot of activities. When one activity is finished, we add a value called "Done". &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I'd like to create a new dimension called "Status", in which we can have a "Done" value associated to a IDs that contains the "Done" value in one of the "Activity" values. If we don't have it, the other value is "Undone".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Bellow, you can see more clearly what I'm looking for:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;IMG __jive_id="68282" alt="ScreenShot065.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/68282_ScreenShot065.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks in advanced!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Oct 2014 17:32:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-dimensions-values-depending-on-another-dimension/m-p/658314#M669152</guid>
      <dc:creator />
      <dc:date>2014-10-04T17:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Generating dimensions values depending on another dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-dimensions-values-depending-on-another-dimension/m-p/658315#M669153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Oct 2014 17:52:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-dimensions-values-depending-on-another-dimension/m-p/658315#M669153</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-10-04T17:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Generating dimensions values depending on another dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-dimensions-values-depending-on-another-dimension/m-p/658316#M669154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe this calculated dimension&lt;/P&gt;&lt;P&gt;=if(aggr(count(distinct {$ &amp;lt;Activity={Done}&amp;gt;} Activity), ID)=1, 'Done', 'Undone')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/68280_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Oct 2014 17:58:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-dimensions-values-depending-on-another-dimension/m-p/658316#M669154</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-10-04T17:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Generating dimensions values depending on another dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-dimensions-values-depending-on-another-dimension/m-p/658317#M669155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works on tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I'm looking for is a new dimension createad on load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I could have a list with "Done" and "Undone":&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ScreenShot066.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/68283_ScreenShot066.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Oct 2014 19:08:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-dimensions-values-depending-on-another-dimension/m-p/658317#M669155</guid>
      <dc:creator />
      <dc:date>2014-10-04T19:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Generating dimensions values depending on another dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-dimensions-values-depending-on-another-dimension/m-p/658318#M669156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Massimo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine on tables too. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I need a dimension created on the load script. Then, I could have the dimension "Status", with two values: Done and Undone.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ScreenShot066.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/68284_ScreenShot066.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Oct 2014 19:37:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-dimensions-values-depending-on-another-dimension/m-p/658318#M669156</guid>
      <dc:creator />
      <dc:date>2014-10-04T19:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Generating dimensions values depending on another dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-dimensions-values-depending-on-another-dimension/m-p/658319#M669157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the field Status has to be created using a script, you may try a script like the following:&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;ID, Activity&lt;/P&gt;&lt;P&gt;A,Activity_1&lt;/P&gt;&lt;P&gt;A,Activity_2&lt;/P&gt;&lt;P&gt;A,Activity_3&lt;/P&gt;&lt;P&gt;A,Activity_4&lt;/P&gt;&lt;P&gt;A,Done&lt;/P&gt;&lt;P&gt;B,Activity_1&lt;/P&gt;&lt;P&gt;B,Activity_2&lt;/P&gt;&lt;P&gt;C,Activity_1&lt;/P&gt;&lt;P&gt;C,Activity_2&lt;/P&gt;&lt;P&gt;C,Done&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD ID, Activity as Status Resident Data Where Activity = 'Done';&lt;/P&gt;&lt;P&gt;Left Join (Data) LOAD * Resident Temp;&lt;/P&gt;&lt;P&gt;DROP Table Temp;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;NoConcatenate &lt;/P&gt;&lt;P&gt;LOAD ID, Activity,If(Status='Done',Status,'Undone') as Status Resident Data;&lt;/P&gt;&lt;P&gt;DROP Table Data;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Oct 2014 21:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-dimensions-values-depending-on-another-dimension/m-p/658319#M669157</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2014-10-04T21:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Generating dimensions values depending on another dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-dimensions-values-depending-on-another-dimension/m-p/658320#M669158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It didn't work. In my real data, there's others dimensions, not only ID and Activity.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Oct 2014 23:14:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-dimensions-values-depending-on-another-dimension/m-p/658320#M669158</guid>
      <dc:creator />
      <dc:date>2014-10-04T23:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Generating dimensions values depending on another dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-dimensions-values-depending-on-another-dimension/m-p/658321#M669159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one solution might be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_136387_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/68286_QlikCommunity_Thread_136387_Pic1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14124661331082664" jivemacro_uid="_14124661331082664"&gt;
&lt;P&gt;tabInput:&lt;/P&gt;
&lt;P&gt;LOAD * Inline [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID, Activity&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, Activity_1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, Activity_2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, Activity_3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, Activity_4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, Done&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, Activity_1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, Activity_2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, Activity_1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, Activity_2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C, Done&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join (tabInput)&lt;/P&gt;
&lt;P&gt;LOAD ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Sum(Activity='Done'),'Done','Undone') as Status&lt;/P&gt;
&lt;P&gt;Resident tabInput&lt;/P&gt;
&lt;P&gt;Group By ID;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Oct 2014 23:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-dimensions-values-depending-on-another-dimension/m-p/658321#M669159</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-10-04T23:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Generating dimensions values depending on another dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-dimensions-values-depending-on-another-dimension/m-p/658322#M669160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked fine, Marco!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Oct 2014 00:05:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-dimensions-values-depending-on-another-dimension/m-p/658322#M669160</guid>
      <dc:creator />
      <dc:date>2014-10-05T00:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Generating dimensions values depending on another dimension values</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-dimensions-values-depending-on-another-dimension/m-p/658323#M669161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you're welcome&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Oct 2014 07:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-dimensions-values-depending-on-another-dimension/m-p/658323#M669161</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-10-05T07:49:27Z</dc:date>
    </item>
  </channel>
</rss>

