<?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 Calculated Dimension Mapping in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Mapping/m-p/560687#M209275</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;My problem is that I need to create a calculated dimension that depending on the value of an expression (one Sum ) to calculate corresponding section the result of that expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explained in more detail , I have many outlets , and within each of them ( and depending on the current selection ) I have to do that units sent to you and depending on your service has to go to a section or other service . A point of sale is a section of Service .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not calculate the Script -level sections , because it depends on the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A sample output would look something like the image attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This result was achieved with the following expression , but the problem is that it is not optimal because the existing information takes a long time to load (2-3 minutes on the Windows client , Web- not even opened) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr ( If ($ ( vAuxTramoServicio ) = 1, 1, If ($ ( vAuxTramoServicio ) = 2 , 2 If ($ ( vAuxTramoServicio ) = 3,3 , if ( $ ( vAuxTramoServicio ) = 4,4 , if ( $ ( vAuxTramoServicio ) = 5,5 , if ( $ ( vAuxTramoServicio ) &amp;gt; = 6 And $ ( vAuxTramoServicio ) &amp;lt; = 10 , '6 to 10 ' , if ( $ ( vAuxTramoServicio ) &amp;gt; = 11 And $ ( vAuxTramoServicio ) &amp;lt; = 25 , ' 11-25 ' , if ( $ ( vAuxTramoServicio ) &amp;gt; = 26 And $ ( vAuxTramoServicio ) &amp;lt; = 50 , '26 to 50' , if ( $ ( vAuxTramoServicio ) &amp;gt; = 51 And $ ( vAuxTramoServicio ) &amp;lt; = 100 , '51 to 100 ' If ($ ( vAuxTramoServicio ) &amp;gt; = 101, ' Over 100 ' )))))))))) , CLAVE_PUNTO_VENTA , COD_NUMERO )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vAuxTramoServicio is&lt;/P&gt;&lt;P&gt;Sum ( { &amp;lt; [ ESTADO_PUNTO_VENTA ] = {' end '} &amp;gt;} NUM_ENTREGADOS + NUM_COMPLEMENTOS )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried an alternative , but I can not work any .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ApplyMap First I tried , but I 've noticed that this function only works in Script , because the Load Mapping are deleted when the script ends .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I uploaded some Excel with mapping of each of the possible outcomes that correspond stretch , but I have not got the expression that works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with FieldValue and FieldIndex , but the problem is that FieldValue are different values ​​, so I can not get the correct index to get the value it deserves. I mean for example if the service is 8, not service takes the stage 8 , but the 8th value TramoServicio .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr ( FieldValue ( TramoServicio , FieldIndex ( EjemplaresServicio , $ ( vAuxTramoServicio ) ) ) , CLAVE_PUNTO_VENTA , COD_NUMERO )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tested with a function like this , but it does not work :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr ( Only ( If ( EjemplaresServicio = $ ( vAuxTramoServicio ) TramoServicio ) ) , CLAVE_PUNTO_VENTA , COD_NUMERO )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tests I've done with If I get nulls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see if someone can help me or give me an idea with which to continue to work to optimize the expression of the calculated dimension .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also attached an Excel with examples of mappings that I have to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Sep 2013 14:58:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-24T14:58:48Z</dc:date>
    <item>
      <title>Calculated Dimension Mapping</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Mapping/m-p/560687#M209275</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;My problem is that I need to create a calculated dimension that depending on the value of an expression (one Sum ) to calculate corresponding section the result of that expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explained in more detail , I have many outlets , and within each of them ( and depending on the current selection ) I have to do that units sent to you and depending on your service has to go to a section or other service . A point of sale is a section of Service .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not calculate the Script -level sections , because it depends on the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A sample output would look something like the image attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This result was achieved with the following expression , but the problem is that it is not optimal because the existing information takes a long time to load (2-3 minutes on the Windows client , Web- not even opened) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr ( If ($ ( vAuxTramoServicio ) = 1, 1, If ($ ( vAuxTramoServicio ) = 2 , 2 If ($ ( vAuxTramoServicio ) = 3,3 , if ( $ ( vAuxTramoServicio ) = 4,4 , if ( $ ( vAuxTramoServicio ) = 5,5 , if ( $ ( vAuxTramoServicio ) &amp;gt; = 6 And $ ( vAuxTramoServicio ) &amp;lt; = 10 , '6 to 10 ' , if ( $ ( vAuxTramoServicio ) &amp;gt; = 11 And $ ( vAuxTramoServicio ) &amp;lt; = 25 , ' 11-25 ' , if ( $ ( vAuxTramoServicio ) &amp;gt; = 26 And $ ( vAuxTramoServicio ) &amp;lt; = 50 , '26 to 50' , if ( $ ( vAuxTramoServicio ) &amp;gt; = 51 And $ ( vAuxTramoServicio ) &amp;lt; = 100 , '51 to 100 ' If ($ ( vAuxTramoServicio ) &amp;gt; = 101, ' Over 100 ' )))))))))) , CLAVE_PUNTO_VENTA , COD_NUMERO )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vAuxTramoServicio is&lt;/P&gt;&lt;P&gt;Sum ( { &amp;lt; [ ESTADO_PUNTO_VENTA ] = {' end '} &amp;gt;} NUM_ENTREGADOS + NUM_COMPLEMENTOS )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried an alternative , but I can not work any .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ApplyMap First I tried , but I 've noticed that this function only works in Script , because the Load Mapping are deleted when the script ends .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I uploaded some Excel with mapping of each of the possible outcomes that correspond stretch , but I have not got the expression that works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with FieldValue and FieldIndex , but the problem is that FieldValue are different values ​​, so I can not get the correct index to get the value it deserves. I mean for example if the service is 8, not service takes the stage 8 , but the 8th value TramoServicio .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr ( FieldValue ( TramoServicio , FieldIndex ( EjemplaresServicio , $ ( vAuxTramoServicio ) ) ) , CLAVE_PUNTO_VENTA , COD_NUMERO )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tested with a function like this , but it does not work :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr ( Only ( If ( EjemplaresServicio = $ ( vAuxTramoServicio ) TramoServicio ) ) , CLAVE_PUNTO_VENTA , COD_NUMERO )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tests I've done with If I get nulls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see if someone can help me or give me an idea with which to continue to work to optimize the expression of the calculated dimension .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also attached an Excel with examples of mappings that I have to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 14:58:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Mapping/m-p/560687#M209275</guid>
      <dc:creator />
      <dc:date>2013-09-24T14:58:48Z</dc:date>
    </item>
  </channel>
</rss>

