<?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 Need help on logic in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-on-logic/m-p/1117003#M368588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to right a query when i will get duplicates on FactID i want to merge 3 months of data into single line&lt;/P&gt;&lt;P&gt;rest of FactID its working fine.&lt;/P&gt;&lt;P&gt;i just want to display all three months into single line.it's happening only when i will have duplicates on FactIDs&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="129197" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/129197_Capture.PNG" style="height: 47px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please find the attachment&lt;/P&gt;&lt;P&gt;Any script modifications please suggest me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manythanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Niru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 26 Jun 2016 09:03:10 GMT</pubDate>
    <dc:creator>NavinReddy</dc:creator>
    <dc:date>2016-06-26T09:03:10Z</dc:date>
    <item>
      <title>Need help on logic</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-logic/m-p/1117003#M368588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to right a query when i will get duplicates on FactID i want to merge 3 months of data into single line&lt;/P&gt;&lt;P&gt;rest of FactID its working fine.&lt;/P&gt;&lt;P&gt;i just want to display all three months into single line.it's happening only when i will have duplicates on FactIDs&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="129197" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/129197_Capture.PNG" style="height: 47px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please find the attachment&lt;/P&gt;&lt;P&gt;Any script modifications please suggest me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manythanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Niru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jun 2016 09:03:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-logic/m-p/1117003#M368588</guid>
      <dc:creator>NavinReddy</dc:creator>
      <dc:date>2016-06-26T09:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on logic</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-logic/m-p/1117004#M368589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Niranjan, QV splits rows based on dimensions, if there are different values for Trier3 benchmark and Tier1 limit it will split results based on the different dimension values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this removing this two dimensions. it will automatically show in one row. If the values are the same it will show in one row...There is a value for this two columns wich can represent both rows?, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jun 2016 09:55:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-logic/m-p/1117004#M368589</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-06-26T09:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on logic</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-logic/m-p/1117005#M368590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you so much your reply &lt;/P&gt;&lt;P&gt;yes you're correct, &lt;/P&gt;&lt;P&gt;Here i want to take current month dimension values based on month selections&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Niru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jun 2016 12:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-logic/m-p/1117005#M368590</guid>
      <dc:creator>NavinReddy</dc:creator>
      <dc:date>2016-06-26T12:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on logic</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-logic/m-p/1117006#M368591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, now I get where your problem is, the expression from the past months returns the dimensión values from that month, using aggr() in the calculated dimensión can fix the values returned by the dimensión.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with this dimensions:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Tier3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Aggr(if(ELE_VALUE_TYPE_CD = '-',&lt;/P&gt;&lt;P&gt;if(ELE_VALUE_TYPE_CD = 'PCT',Num((GREEN_RAG),'##.00%'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(ELE_VALUE_TYPE_CD = 'QTY',Num(GREEN_RAG))),&lt;/P&gt;&lt;P&gt;if(ELE_VALUE_TYPE_CD = 'PCT',Num((HIGH_GREEN_RAG),'##.00%')&amp;amp; '' &amp;amp; Num((GREEN_RAG),'##.00%'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(ELE_VALUE_TYPE_CD = 'QTY',Num(HIGH_GREEN_RAG)&amp;amp; '&amp;nbsp; ' &amp;amp; Num(GREEN_RAG)))), FCT_TMPLT_ID, FCT_SETUP_ID, FCT_DESC, PROC_NM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Tier1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=Aggr(if(ELE_VALUE_TYPE_CD = '-',&lt;/P&gt;&lt;P&gt;if(ELE_VALUE_TYPE_CD = 'PCT',Num((RED_RAG),'##.00%'),if(ELE_VALUE_TYPE_CD = 'QTY',Num(RED_RAG))),&lt;/P&gt;&lt;P&gt;if(ELE_VALUE_TYPE_CD = 'PCT', Num((HIGH_RED_RAG),'##.00%')&amp;amp;' '&amp;amp;Num((RED_RAG),'##.00%'),&lt;/P&gt;&lt;P&gt;if(ELE_VALUE_TYPE_CD = 'QTY',Num(HIGH_GREEN_RAG)&amp;amp;' '&amp;amp;Num(RED_RAG)))), FCT_TMPLT_ID, FCT_SETUP_ID, FCT_DESC, PROC_NM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just enclosed your actual dimensión in an Aggr with your previous dimensions as parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jun 2016 17:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-logic/m-p/1117006#M368591</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-06-26T17:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on logic</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-logic/m-p/1117007#M368592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much its working fine &lt;/P&gt;&lt;P&gt;There is a problem here prior months also i have some value, please help me to get prior month's value &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/129205_Capture.PNG" style="height: 40px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;Niru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jun 2016 17:35:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-logic/m-p/1117007#M368592</guid>
      <dc:creator>NavinReddy</dc:creator>
      <dc:date>2016-06-26T17:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on logic</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-logic/m-p/1117008#M368593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Niranjan, sorry for delay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your problem with expressions seems is only a typo:&lt;/P&gt;&lt;P&gt;if(ELE_VALUE_TYPE_CD = 'PCT',Num(sum({&amp;lt;Month=, MonthYear={"$(=Date(&lt;STRONG&gt;$(vMonth)-10&lt;/STRONG&gt;,'MMM YY'))"}&amp;gt;}FCT_ACTL_VALUE_QT),'##.00%'),&lt;/P&gt;&lt;P&gt;if(ELE_VALUE_TYPE_CD = 'QTY',sum({&amp;lt;Month=, MonthYear={"$(=Date(&lt;STRONG style="color: #ff0000;"&gt;$(vMonth-10)&lt;/STRONG&gt;,'MMM YY'))"}&amp;gt;}FCT_ACTL_VALUE_QT)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The parenthesys is wrong, it should be:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if(ELE_VALUE_TYPE_CD = 'PCT',Num(sum({&amp;lt;Month=, MonthYear={"$(=Date(&lt;STRONG&gt;$(vMonth)-10&lt;/STRONG&gt;,'MMM YY'))"}&amp;gt;}FCT_ACTL_VALUE_QT),'##.00%'),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if(ELE_VALUE_TYPE_CD = 'QTY',sum({&amp;lt;Month=, MonthYear={"$(=Date(&lt;STRONG style="color: #ff0000;"&gt;$(vMonth)-10&lt;/STRONG&gt;,'MMM YY'))"}&amp;gt;}FCT_ACTL_VALUE_QT)))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In this case 'Past month' is really a '10 days before'?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;You can also use AddMonths function:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;MonthYear={"$(=Date(&lt;STRONG&gt;AddMonths(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;$(vMonth), -1)&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,'MMM YY'))"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;And 2 months before can be&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;MonthYear={"$(=Date(&lt;STRONG&gt;AddMonths(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;$(vMonth), -&lt;SPAN style="color: #ff0000;"&gt;2&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,'MMM YY'))"}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 15:47:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-logic/m-p/1117008#M368593</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-06-27T15:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on logic</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-logic/m-p/1117009#M368594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;your rocks, Thank you so much its working &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;ManyThanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Niranjan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 20:31:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-logic/m-p/1117009#M368594</guid>
      <dc:creator>NavinReddy</dc:creator>
      <dc:date>2016-06-27T20:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on logic</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-on-logic/m-p/1117010#M368595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i have posted one issue can't we write (AND, OR) function in the same expression &lt;/P&gt;&lt;P&gt;please help me &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/222381"&gt;How to calculate consecutive months count&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Niru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2016 20:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-on-logic/m-p/1117010#M368595</guid>
      <dc:creator>NavinReddy</dc:creator>
      <dc:date>2016-06-27T20:35:31Z</dc:date>
    </item>
  </channel>
</rss>

