<?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: Transformar IF em setAnalysis in Brasil</title>
    <link>https://community.qlik.com/t5/Brasil/Transformar-IF-em-setAnalysis/m-p/68042#M3602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you need for Avg and the combination of Aggr()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&lt;SPAN style="color: #000000; font-style: inherit; font-size: 10pt; background-color: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;&lt;STRONG&gt;avg(Aggr&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #000000; font-style: inherit; font-size: 10pt; background-color: inherit; font-family: arial, helvetica, sans-serif;"&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="font-style: inherit;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; background-color: inherit;"&gt;&lt;SPAN style="font-style: inherit;"&gt;[issue_created_on.autoCalendar. &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; background-color: inherit;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; background-color: inherit;"&gt;] =&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; background-color: inherit;"&gt;Month &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; background-color: inherit;"&gt;(Today ()), &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; background-color: inherit;"&gt;issues_sent_to_factory_delay&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; background-color: inherit;"&gt;),&lt;STRONG style=": ; color: #000000; font-style: inherit; font-size: 10pt; background-color: inherit; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="font-style: inherit;"&gt;[issue_created_on.autoCalendar. &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; background-color: inherit;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; background-color: inherit;"&gt;])&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;&lt;STRONG&gt;Note - &lt;/STRONG&gt;Make sure the format of &lt;SPAN style="color: #000000; font-size: 10pt; font-style: inherit; background-color: inherit; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;[issue_created_on.autoCalendar. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; font-style: inherit; background-color: inherit;"&gt;Month&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-style: inherit; background-color: inherit; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;]&lt;/STRONG&gt; and &lt;STRONG&gt;Month(Today())&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Apr 2018 00:10:56 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2018-04-20T00:10:56Z</dc:date>
    <item>
      <title>Transformar IF em setAnalysis</title>
      <link>https://community.qlik.com/t5/Brasil/Transformar-IF-em-setAnalysis/m-p/68040#M3600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pessoal, tenho apanhado um pouco para aprender usar o setAnalysis (que coisa incrível essa feature), Mas tem algumas coisas que eu ainda não consigo fazer e ai apelo para os velhos IF's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vocês poderiam fazer a gentileza de me mostrar como se esse IF aqui via o SetA, tentei de diversas maneiras e não consegui...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15241761795899771 jive_text_macro" jivemacro_uid="_15241761795899771"&gt;
&lt;P&gt;avg(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if ( &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [issue_created_on.autoCalendar.Month] = Month(Today())&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; issues_sent_to_factory_delay&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&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;PS.: O if já funciona e apresenta o dado que eu desejo, mas eu quero mesmo é aprender a usar o SetA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Agradeço muito a ajuda.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 22:19:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Transformar-IF-em-setAnalysis/m-p/68040#M3600</guid>
      <dc:creator>jhonatan_morais</dc:creator>
      <dc:date>2018-04-19T22:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Transformar IF em setAnalysis</title>
      <link>https://community.qlik.com/t5/Brasil/Transformar-IF-em-setAnalysis/m-p/68041#M3601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Olá Jhonatan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Faça um teste com a expressão abaixo, não tenho certeza se está correto:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avg({&amp;lt;issue_created_on.autoCalendar.Month = {Month(Today())}&amp;gt;}, issues_sent_to_factory_delay)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Acesse o link abaixo, acredito que poderá te ajudar também:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/62774"&gt;Set Analysis in Load script itself&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abs,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 22:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Transformar-IF-em-setAnalysis/m-p/68041#M3601</guid>
      <dc:creator>dhsilva7</dc:creator>
      <dc:date>2018-04-19T22:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Transformar IF em setAnalysis</title>
      <link>https://community.qlik.com/t5/Brasil/Transformar-IF-em-setAnalysis/m-p/68042#M3602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you need for Avg and the combination of Aggr()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; background-color: inherit; font-size: 9pt !important;"&gt;&lt;SPAN style="color: #000000; font-style: inherit; font-size: 10pt; background-color: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;&lt;STRONG&gt;avg(Aggr&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #000000; font-style: inherit; font-size: 10pt; background-color: inherit; font-family: arial, helvetica, sans-serif;"&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000000; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="font-style: inherit;"&gt;if(&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; background-color: inherit;"&gt;&lt;SPAN style="font-style: inherit;"&gt;[issue_created_on.autoCalendar. &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; background-color: inherit;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; background-color: inherit;"&gt;] =&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; background-color: inherit;"&gt;Month &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; background-color: inherit;"&gt;(Today ()), &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; background-color: inherit;"&gt;issues_sent_to_factory_delay&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; background-color: inherit;"&gt;),&lt;STRONG style=": ; color: #000000; font-style: inherit; font-size: 10pt; background-color: inherit; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="font-style: inherit;"&gt;[issue_created_on.autoCalendar. &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; background-color: inherit;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; background-color: inherit;"&gt;])&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;&lt;STRONG&gt;Note - &lt;/STRONG&gt;Make sure the format of &lt;SPAN style="color: #000000; font-size: 10pt; font-style: inherit; background-color: inherit; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="font-style: inherit;"&gt;&lt;STRONG&gt;[issue_created_on.autoCalendar. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; font-style: inherit; background-color: inherit;"&gt;Month&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-style: inherit; background-color: inherit; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;]&lt;/STRONG&gt; and &lt;STRONG&gt;Month(Today())&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 00:10:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Transformar-IF-em-setAnalysis/m-p/68042#M3602</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-04-20T00:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Transformar IF em setAnalysis</title>
      <link>https://community.qlik.com/t5/Brasil/Transformar-IF-em-setAnalysis/m-p/68043#M3603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eu já tinha testado desta maneira, e por algum motivo fica zerado. veja: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="11.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/200412_11.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Também tentei excluir as seleções mas&lt;SPAN style="font-size: 10pt;"&gt; não processou o cálculo: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Avg({1&amp;lt;issue_created_on.autoCalendar.Month = {Month(Today())}&amp;gt;}, issues_sent_to_factory_delay)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;inclusive tive que usar o $() para a expressão ser aceita...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Avg({&amp;lt;issue_created_on.autoCalendar.Month = { $(Month(Today()))}&amp;gt;}, issues_sent_to_factory_delay)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 17:37:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Transformar-IF-em-setAnalysis/m-p/68043#M3603</guid>
      <dc:creator>jhonatan_morais</dc:creator>
      <dc:date>2018-04-20T17:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Transformar IF em setAnalysis</title>
      <link>https://community.qlik.com/t5/Brasil/Transformar-IF-em-setAnalysis/m-p/68044#M3604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil, thanks for answer me.&lt;/P&gt;&lt;P&gt;this expression didn't work too.&lt;/P&gt;&lt;P&gt;I will prepare a special .qvf to attach here. will be more productive&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 17:44:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Brasil/Transformar-IF-em-setAnalysis/m-p/68044#M3604</guid>
      <dc:creator>jhonatan_morais</dc:creator>
      <dc:date>2018-04-20T17:44:06Z</dc:date>
    </item>
  </channel>
</rss>

