<?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: Multiples Tarifas con Mapping in Español</title>
    <link>https://community.qlik.com/t5/Espa%C3%B1ol/Multiples-Tarifas-con-Mapping/m-p/27453#M355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eso ya lo he aplicado primeramente con el mappping mi duda surge de como aplicar la solucion que me diste ya que antes el mapeo lo usaba para ciertas condicionales te adjnto el script en un txt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2018 16:34:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-02T16:34:40Z</dc:date>
    <item>
      <title>Multiples Tarifas con Mapping</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/Multiples-Tarifas-con-Mapping/m-p/27448#M350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Buenas tardes compañeros&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hace poco tenia la duda de como aplicar distintos pesos segun el ID de toneladas me comentaron que usara MAPPING para hacer este mapeo de IDS y valores&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ahora la pregunta es&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;En los valores que se le asignan al ID puede tener multiples valores dependiendo de un rango por ejemplo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actualmente mi mapeo es de esta manera&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gray 1.0pt; border-left: none; background: #FFC000; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="167"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;STRONG&gt;IDTonelada&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gray 1.0pt; border-left: none; background: #FFC000; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="102"&gt;&lt;P&gt;Peso Minimo&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="167"&gt;10&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="102"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;35 000&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="167"&gt;20&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="102"&gt;30 000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="167"&gt;&lt;P&gt;30&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="102"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;20 000&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15222738530886875 jive_text_macro" jivemacro_uid="_15222738530886875" modifiedtitle="true"&gt;
&lt;P&gt;MAP_TARIFAS:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;MAPPING LOAD *&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;MAP_TARIFAS&amp;nbsp; IDTONELADA, MAP_TARIFAS&amp;nbsp; PESOMINIMO&lt;/P&gt;
&lt;P&gt;30, 35 000&lt;/P&gt;
&lt;P&gt;40, 30 000&lt;/P&gt;
&lt;P&gt;50, 20 000&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pero ahora ocupo utilizar multiples tarifas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 825px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid gray 1.0pt; border-left: none; background: #FFC000; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="167"&gt;&lt;P align="center" style="text-align: center;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;STRONG&gt;Destino&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gray 1.0pt; border-left: none; background: #FFC000; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="102"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;STRONG&gt;0 a 4 Ton's &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gray 1.0pt; border-left: none; background: #FFC000; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="86"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;STRONG&gt; 4 a 7 Ton's &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gray 1.0pt; border-left: none; background: #FFC000; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="90"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;STRONG&gt; 7 a 15 Ton's &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gray 1.0pt; border-left: none; background: #FFC000; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="97"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;STRONG&gt; 15 a 30 Ton's &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid gray 1.0pt; border-left: none; background: #FFC000; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="102"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;STRONG&gt; 28 a 30 Ton's &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="167"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;10&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="102"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;$ 2,070 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="86"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; $ 2,530 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="90"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; $ 4,025 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="97"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="102"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;$ 6,900 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="167"&gt;20&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="102"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;$ 2,070 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="86"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; $ 2,530 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="90"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; $ 4,025 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="97"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="102"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;$ 6,900 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="167"&gt;30&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="102"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;$ 2,070 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="86"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; $ 2,530 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="90"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt; $ 4,025 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="97"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="102"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;$ 6,900 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="167"&gt;40&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="102"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;$ 6,325 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="86"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="90"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: black;"&gt;$ 9,775 &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="97"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid gray 1.0pt; border-right: solid gray 1.0pt; padding: 0 3.5pt 0 3.5pt;" valign="bottom" width="102"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gracias por su paciencia y ayuda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2018 21:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/Multiples-Tarifas-con-Mapping/m-p/27448#M350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-28T21:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Multiples Tarifas con Mapping</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/Multiples-Tarifas-con-Mapping/m-p/27449#M351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tu puede hacer que el ID de busqueda sea la sumatoria de los dos campos... por ejemplo:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ID_T, PesoM&lt;/P&gt;&lt;P&gt;10-4, 35000&lt;/P&gt;&lt;P&gt;10-7, 2555&lt;/P&gt;&lt;P&gt;10-15, 2133&lt;/P&gt;&lt;P&gt;20-4, 2555&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 16:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/Multiples-Tarifas-con-Mapping/m-p/27449#M351</guid>
      <dc:creator>jolivares</dc:creator>
      <dc:date>2018-03-29T16:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Multiples Tarifas con Mapping</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/Multiples-Tarifas-con-Mapping/m-p/27450#M352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hola Nacianceno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;En este caso no puedes utilizar tabla de mapeo (MAPPING LOAD) porque no tienes un listado de valores discretos con los que hacer la asignación, sino un listado de valores por tramo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;En estos casos lo que yo hago es un JOIN entre la información de hechos y la maestra por la clave haciendo un producto cartesiano (siempre que no haya problemas de rendimiento por ser los conjuntos muy grandes; en caso contrario mirar la sentencia INTERVALMATCH) y luego "limpiándolo" de los registros que no sirvan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Te adjunto un ejemplo en el que verás, con tus datos, paso a paso lo que comento, y lo pego aquí también:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;HECHOS:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD *&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;IDTonelada, Peso Minimo&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;10, 35000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;20, 30000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;30, 20000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;TARIFAS1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD *&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Destino, 0 a 4 Ton's, 4 a 7 Ton's, 7 a 15 Ton's, 15 a 28 Ton's, 28 a 30 Ton's, 30 a 99 Ton's&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;10, 2.070, 2.530, 4.025, , 6.900, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;20, 2.070, 2.530, 4.025, , 6.900, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;30, 2.070, 2.530, 4.025, , 6.900, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;40, 6.325, , 9.775, , , &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;TARIFAS2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;CROSSTABLE&amp;nbsp;&amp;nbsp; (Límite, Tarifa, 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ! !*&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TARIFAS1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;TARIFAS3:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Destino&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS [ID Destino], &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&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; SubField(Límite, ' ', 1) * 1000 AS [Límite Inferior], &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&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; SubField(Límite, ' ', 3) * 1000 AS [Límite Superior], &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&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; Tarifa&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS [Importe Tarifa]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TARIFAS2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LEFT JOIN&amp;nbsp;&amp;nbsp;&amp;nbsp; (HECHOS)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ID Destino]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS IDTonelada, &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&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; [Límite Inferior] AS [Límite Inferior Hechos], &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&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; [Límite Superior] AS [Límite Superior Hechos], &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&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; [Importe Tarifa]&amp;nbsp; AS [Importe Tarifa Hechos]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TARIFAS3;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;HECHOS_FINALES:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IDTonelada&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; AS [ID Tonelada], &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&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; [Peso Minimo]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS [Peso], &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&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; [Importe Tarifa Hechos] AS [Importe Tarifa Hechos2]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;RESIDENT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HECHOS&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;WHERE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Peso Minimo] &amp;gt; [Límite Inferior Hechos] AND &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&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; [Peso Minimo] &amp;lt;= [Límite Superior Hechos];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Mira la sentencia CROSSTABLE para entender por qué la he utilizado.&lt;/LI&gt;&lt;LI&gt;Cuidado cuando declares los tramos, que no se superpongan.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Espero que te sirva...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saludos,&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Mar 2018 18:10:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/Multiples-Tarifas-con-Mapping/m-p/27450#M352</guid>
      <dc:creator>hector_munoz</dc:creator>
      <dc:date>2018-03-29T18:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Multiples Tarifas con Mapping</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/Multiples-Tarifas-con-Mapping/m-p/27451#M353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gracias por responder Hector pero entonces ahora como podre usar el mapeo en mi script ya que anteriormente usaba apply map para consultar los datos de mi mapeo te adjunto la aplicacion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 14:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/Multiples-Tarifas-con-Mapping/m-p/27451#M353</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-02T14:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiples Tarifas con Mapping</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/Multiples-Tarifas-con-Mapping/m-p/27452#M354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hola Nacianceno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ahora no tengo instalado Qlik Sense en mi equipo actual por lo que no puedo abrir tu QVF... Si quieres usar la función ApplyMap() tienes que tener antes una tabla de mapeo (MAPPING LOAD) con todas las posibles combinaciones de IDs y toneladas más su tarifa... Algo así como:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAP_TARIFAS:&lt;/P&gt;&lt;P&gt;MAPPING LOAD *&lt;/P&gt;&lt;P&gt;INLINE [&lt;/P&gt;&lt;P&gt;ID MAPPING, Tarifa MAPPING&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-style: inherit; font-weight: inherit; color: #3d3d3d; font-size: 13px;"&gt;10|0, 2.070&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: 'courier new', courier; font-weight: inherit;"&gt;10|1, 2.070&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: 'courier new', courier; font-weight: inherit;"&gt;10|2, 2.070&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: 'courier new', courier; font-weight: inherit;"&gt;10|3, 2.070&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: 'courier new', courier; font-weight: inherit;"&gt;10|4, 2.070&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-style: inherit; font-weight: inherit; color: #3d3d3d; font-size: 13px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;10|5&lt;/SPAN&gt;, 2.530&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-style: inherit; font-weight: inherit; color: #3d3d3d; font-size: 13px;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-style: inherit; font-weight: inherit; color: #3d3d3d; font-size: 13px;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-style: inherit; font-weight: inherit; color: #3d3d3d; font-size: 13px;"&gt;30|99, &lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt;9.775&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;, y luego en la carga de los hechos:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HECHOS:&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *, &lt;/P&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; ApplyMap('&lt;SPAN style="font-size: 13.3333px;"&gt;MAP_TARIFAS&lt;/SPAN&gt;', Destino &amp;amp; '|' &amp;amp; Toneladas, 0)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS Tarifa&lt;/P&gt;&lt;P&gt;FROM&amp;nbsp;&amp;nbsp;&amp;nbsp; Hechos.csv;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Esta solución, aunque sería viable de generar a partir de tramos iniciales convertidos es valores en serie con bucles o JOINS, no te la recomiendo porque lo mismo tienes tramos de toneladas (decimales) y la cosa se complica...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yo adaptaría la solución que te pasaba en mi comentario anterior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saludos,&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 16:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/Multiples-Tarifas-con-Mapping/m-p/27452#M354</guid>
      <dc:creator>hector_munoz</dc:creator>
      <dc:date>2018-04-02T16:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multiples Tarifas con Mapping</title>
      <link>https://community.qlik.com/t5/Espa%C3%B1ol/Multiples-Tarifas-con-Mapping/m-p/27453#M355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eso ya lo he aplicado primeramente con el mappping mi duda surge de como aplicar la solucion que me diste ya que antes el mapeo lo usaba para ciertas condicionales te adjnto el script en un txt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 16:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Espa%C3%B1ol/Multiples-Tarifas-con-Mapping/m-p/27453#M355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-02T16:34:40Z</dc:date>
    </item>
  </channel>
</rss>

