<?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: How to create a new field filtering another in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-a-new-field-filtering-another/m-p/1546265#M746408</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;If I have understood you properly then yes, you can create the color dimension. How? The color is in product code. Are the last two letters from the product code always the color of the product? If so, then in the script you can do something like&lt;/P&gt;&lt;PRE&gt;Load&lt;BR /&gt;   Code,&lt;BR /&gt;   Right(Code, 2) as ColorCode,&lt;BR /&gt;   &lt;EM&gt;Other fields...&lt;/EM&gt;&lt;BR /&gt;from &lt;EM&gt;whereever;&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;Thus you create the "color code" dimension (it'll have values like "BL" in your example). You'll need to translate those color codes to real colors:&lt;/P&gt;&lt;PRE&gt;Load * Inline [&lt;BR /&gt;    ColorCode, Color&lt;BR /&gt;    BL, Blue&lt;BR /&gt;    RD, Red&lt;BR /&gt;    ...&lt;BR /&gt;];&lt;/PRE&gt;&lt;P&gt;Hope it helps! Bests,&lt;/P&gt;&lt;P&gt;Jaime.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Feb 2019 11:10:20 GMT</pubDate>
    <dc:creator>jaibau1993</dc:creator>
    <dc:date>2019-02-19T11:10:20Z</dc:date>
    <item>
      <title>How to create a new field filtering another</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-new-field-filtering-another/m-p/1546250#M746407</link>
      <description>&lt;P&gt;Hello everybody!&lt;/P&gt;&lt;P&gt;I'm &lt;STRONG&gt;very new&amp;nbsp;&lt;/STRONG&gt;so i'm gonna try to explain what have I done until now. This would be my database:&lt;/P&gt;&lt;P&gt;Code: XXXXXX+COLOUR (for instance: 123456&lt;STRONG&gt;BL&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;Description: Product1 &lt;STRONG&gt;BLUE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Qty: 10&lt;/P&gt;&lt;P&gt;I want to make a new field in which i just aggregate those similar colours.&lt;/P&gt;&lt;P&gt;I mean, ¿how many &lt;STRONG&gt;RED&lt;/STRONG&gt; products did I sell? Or, ¿which is the most selled colour?&lt;/P&gt;&lt;P&gt;I have not a &lt;STRONG&gt;Colour&lt;/STRONG&gt; field, so i must&amp;nbsp;&lt;EM&gt;create&lt;/EM&gt; it. Is it possible?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:24:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-new-field-filtering-another/m-p/1546250#M746407</guid>
      <dc:creator>Inspiral</dc:creator>
      <dc:date>2024-11-16T04:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new field filtering another</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-new-field-filtering-another/m-p/1546265#M746408</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;If I have understood you properly then yes, you can create the color dimension. How? The color is in product code. Are the last two letters from the product code always the color of the product? If so, then in the script you can do something like&lt;/P&gt;&lt;PRE&gt;Load&lt;BR /&gt;   Code,&lt;BR /&gt;   Right(Code, 2) as ColorCode,&lt;BR /&gt;   &lt;EM&gt;Other fields...&lt;/EM&gt;&lt;BR /&gt;from &lt;EM&gt;whereever;&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;Thus you create the "color code" dimension (it'll have values like "BL" in your example). You'll need to translate those color codes to real colors:&lt;/P&gt;&lt;PRE&gt;Load * Inline [&lt;BR /&gt;    ColorCode, Color&lt;BR /&gt;    BL, Blue&lt;BR /&gt;    RD, Red&lt;BR /&gt;    ...&lt;BR /&gt;];&lt;/PRE&gt;&lt;P&gt;Hope it helps! Bests,&lt;/P&gt;&lt;P&gt;Jaime.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 11:10:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-new-field-filtering-another/m-p/1546265#M746408</guid>
      <dc:creator>jaibau1993</dc:creator>
      <dc:date>2019-02-19T11:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new field filtering another</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-new-field-filtering-another/m-p/1546266#M746409</link>
      <description>You can create a color field. It looks like your Code field contains information that can be used to determine the color, i.e. the last two letters of the Code.&lt;BR /&gt;&lt;BR /&gt;Colors:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ColorCode, Color&lt;BR /&gt;BL, Blue&lt;BR /&gt;GR, Green&lt;BR /&gt;RD, Red&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;Data:&lt;BR /&gt;LOAD&lt;BR /&gt;Code,&lt;BR /&gt;Right(Code,2) as ColorCode,&lt;BR /&gt;... other fields ...&lt;BR /&gt;FROM ... source table ... ;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Feb 2019 11:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-new-field-filtering-another/m-p/1546266#M746409</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2019-02-19T11:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a new field filtering another</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-new-field-filtering-another/m-p/1546319#M746410</link>
      <description>&lt;P&gt;Well. I'm gonna try and i will tell you.&lt;/P&gt;&lt;P&gt;Edit: I've tried but i have a problem. I connect the Database with ODBC so i need to use SQL sentence instead. How can i translate the code? If I understood it well i must add in the script the following code&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Load
   Code,
   Right(Code, 2) as ColorCode,&lt;/PRE&gt;&lt;P&gt;But i need to use SQL. Is it possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit2: Thanks so much! It worked perfectly!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 12:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-new-field-filtering-another/m-p/1546319#M746410</guid>
      <dc:creator>Inspiral</dc:creator>
      <dc:date>2019-02-19T12:49:32Z</dc:date>
    </item>
  </channel>
</rss>

