<?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 I can help ... for next in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/I-can-help-for-next/m-p/1665612#M728830</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi, I have problems with this process. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;does not respect my condition if it comes in red.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can Help, Please&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tmp_Cuotas_Sucursal:&lt;BR /&gt;LOAD distinct&lt;BR /&gt;%Pto_vta_ID,&lt;BR /&gt;Clasificación_Cuotas,&lt;BR /&gt;CuotaUnidades,&lt;BR /&gt;Fecha,&lt;BR /&gt;// Año,&lt;BR /&gt;ValorPorcentual2&lt;BR /&gt;FROM&lt;BR /&gt;Transformación\Fact\Cuotas_DiariasUnidades2.qvd (qvd)&lt;BR /&gt;where %Pto_vta_ID='54NG364' and Clasificación_Cuotas='Mac'&lt;BR /&gt;and Fecha&amp;gt;='12/01/2020';&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Cuotas_Sucursal:&lt;BR /&gt;LOAD %Pto_vta_ID,&lt;BR /&gt;Clasificación_Cuotas,&lt;BR /&gt;CuotaUnidades,&lt;BR /&gt;Fecha,&lt;BR /&gt;ValorPorcentual2&lt;BR /&gt;Resident tmp_Cuotas_Sucursal&lt;BR /&gt;where %Pto_vta_ID='54NG364' and Clasificación_Cuotas='Mac'&lt;BR /&gt;and Fecha&amp;gt;='12/01/2020'&lt;BR /&gt;order by ValorPorcentual2,&lt;BR /&gt;Clasificación_Cuotas ,&lt;BR /&gt;%Pto_vta_ID&lt;BR /&gt;desc&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;Drop table tmp_Cuotas_Sucursal;&lt;/P&gt;&lt;P&gt;//Variable de cuota Total&lt;BR /&gt;Ciclo_CuotaTotal:&lt;BR /&gt;Load Distinct CuotaUnidades&lt;BR /&gt;Resident Cuotas_Sucursal;&lt;/P&gt;&lt;P&gt;Let v_CuotasTotal = peek('CuotaUnidades',0,'Ciclo_CuotaTotal');&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;trace $(v_CuotasTotal);&lt;/P&gt;&lt;P&gt;//drop table Cuotas_Sucursal;&lt;/P&gt;&lt;P&gt;Drop Table Ciclo_CuotaTotal;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If $(v_CuotasTotal) &amp;lt;= 7 Then&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for i= 0 to $(v_CuotasTotal)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Trace $(v_CuotasTotal);&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;// if '$(i)' &amp;lt;= '$(v_CuotasTotal)' then &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// let cuota_diaria= 1; Else &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// Let cuota_diaria= 0;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// trace $(cuota_diaria);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;left join (Cuotas_Sucursal)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;%Pto_vta_ID, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Fecha, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Clasificación_Cuotas,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ValorPorcentual2,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;CuotaUnidades,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// '$(cuota_diaria)' as ValorPorcentual3,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;if($(i)&amp;lt;$(v_CuotasTotal), 1,0) as ValorP,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// ValorPorcentual2&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;1 as diferente&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident Cuotas_Sucursal&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;order by &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ValorPorcentual2,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Clasificación_Cuotas ,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// Fecha,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;%Pto_vta_ID&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;desc&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;//ENDIF&lt;BR /&gt;NEXT&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:30:41 GMT</pubDate>
    <dc:creator>gr_eldred</dc:creator>
    <dc:date>2024-11-16T01:30:41Z</dc:date>
    <item>
      <title>I can help ... for next</title>
      <link>https://community.qlik.com/t5/QlikView/I-can-help-for-next/m-p/1665612#M728830</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, I have problems with this process. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;does not respect my condition if it comes in red.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can Help, Please&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tmp_Cuotas_Sucursal:&lt;BR /&gt;LOAD distinct&lt;BR /&gt;%Pto_vta_ID,&lt;BR /&gt;Clasificación_Cuotas,&lt;BR /&gt;CuotaUnidades,&lt;BR /&gt;Fecha,&lt;BR /&gt;// Año,&lt;BR /&gt;ValorPorcentual2&lt;BR /&gt;FROM&lt;BR /&gt;Transformación\Fact\Cuotas_DiariasUnidades2.qvd (qvd)&lt;BR /&gt;where %Pto_vta_ID='54NG364' and Clasificación_Cuotas='Mac'&lt;BR /&gt;and Fecha&amp;gt;='12/01/2020';&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Cuotas_Sucursal:&lt;BR /&gt;LOAD %Pto_vta_ID,&lt;BR /&gt;Clasificación_Cuotas,&lt;BR /&gt;CuotaUnidades,&lt;BR /&gt;Fecha,&lt;BR /&gt;ValorPorcentual2&lt;BR /&gt;Resident tmp_Cuotas_Sucursal&lt;BR /&gt;where %Pto_vta_ID='54NG364' and Clasificación_Cuotas='Mac'&lt;BR /&gt;and Fecha&amp;gt;='12/01/2020'&lt;BR /&gt;order by ValorPorcentual2,&lt;BR /&gt;Clasificación_Cuotas ,&lt;BR /&gt;%Pto_vta_ID&lt;BR /&gt;desc&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;Drop table tmp_Cuotas_Sucursal;&lt;/P&gt;&lt;P&gt;//Variable de cuota Total&lt;BR /&gt;Ciclo_CuotaTotal:&lt;BR /&gt;Load Distinct CuotaUnidades&lt;BR /&gt;Resident Cuotas_Sucursal;&lt;/P&gt;&lt;P&gt;Let v_CuotasTotal = peek('CuotaUnidades',0,'Ciclo_CuotaTotal');&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;trace $(v_CuotasTotal);&lt;/P&gt;&lt;P&gt;//drop table Cuotas_Sucursal;&lt;/P&gt;&lt;P&gt;Drop Table Ciclo_CuotaTotal;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If $(v_CuotasTotal) &amp;lt;= 7 Then&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for i= 0 to $(v_CuotasTotal)&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Trace $(v_CuotasTotal);&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;// if '$(i)' &amp;lt;= '$(v_CuotasTotal)' then &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// let cuota_diaria= 1; Else &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// Let cuota_diaria= 0;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// trace $(cuota_diaria);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;left join (Cuotas_Sucursal)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;%Pto_vta_ID, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Fecha, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Clasificación_Cuotas,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ValorPorcentual2,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;CuotaUnidades,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// '$(cuota_diaria)' as ValorPorcentual3,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;if($(i)&amp;lt;$(v_CuotasTotal), 1,0) as ValorP,&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// ValorPorcentual2&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;1 as diferente&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident Cuotas_Sucursal&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;order by &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ValorPorcentual2,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Clasificación_Cuotas ,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;// Fecha,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;%Pto_vta_ID&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;desc&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;//ENDIF&lt;BR /&gt;NEXT&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-can-help-for-next/m-p/1665612#M728830</guid>
      <dc:creator>gr_eldred</dc:creator>
      <dc:date>2024-11-16T01:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: I can help ... for next</title>
      <link>https://community.qlik.com/t5/QlikView/I-can-help-for-next/m-p/1669135#M728831</link>
      <description>&lt;P&gt;Hola como estas?&lt;/P&gt;&lt;P&gt;Probaste con comillas en la variable? ('')&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;'$(v_CuotasTotal)'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;En algunos casos las pones, en otras no&lt;/P&gt;&lt;P&gt;Saludos&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jan 2020 08:53:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/I-can-help-for-next/m-p/1669135#M728831</guid>
      <dc:creator>fkeuroglian</dc:creator>
      <dc:date>2020-01-25T08:53:47Z</dc:date>
    </item>
  </channel>
</rss>

