<?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 Get the value from one row to another row based on the condition in the script in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/Get-the-value-from-one-row-to-another-row-based-on-the-condition/m-p/2143614#M26142</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Based on the month condition, I need to populate the value from one row to another. If the CP data has lower terr counts, we must incorporate the ORG terr counts (CP &amp;lt; ORG) in the script.&lt;/P&gt;
&lt;P&gt;Kindly help me out.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dineshm030_0-1701582884934.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120941iD54AC29BAFD92111/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dineshm030_0-1701582884934.png" alt="dineshm030_0-1701582884934.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Expected Output:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;CP_Team_Flag&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;Sales_District&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;TerrCount&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;CP&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;IN1001&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;ORG&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;IN1001&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;CP&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;IN1028&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;ORG&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;IN1028&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;CP&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;IN5002&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;ORG&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;IN5002&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Dec 2023 06:02:53 GMT</pubDate>
    <dc:creator>dineshm030</dc:creator>
    <dc:date>2023-12-03T06:02:53Z</dc:date>
    <item>
      <title>Get the value from one row to another row based on the condition in the script</title>
      <link>https://community.qlik.com/t5/Management-Governance/Get-the-value-from-one-row-to-another-row-based-on-the-condition/m-p/2143614#M26142</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Based on the month condition, I need to populate the value from one row to another. If the CP data has lower terr counts, we must incorporate the ORG terr counts (CP &amp;lt; ORG) in the script.&lt;/P&gt;
&lt;P&gt;Kindly help me out.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dineshm030_0-1701582884934.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120941iD54AC29BAFD92111/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dineshm030_0-1701582884934.png" alt="dineshm030_0-1701582884934.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Expected Output:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;CP_Team_Flag&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;Sales_District&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;TerrCount&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;CP&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;IN1001&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;ORG&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;IN1001&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;CP&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;IN1028&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;ORG&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;IN1028&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;CP&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;IN5002&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;ORG&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;IN5002&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/17935"&gt;@MayilVahanan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2023 06:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Get-the-value-from-one-row-to-another-row-based-on-the-condition/m-p/2143614#M26142</guid>
      <dc:creator>dineshm030</dc:creator>
      <dc:date>2023-12-03T06:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get the value from one row to another row based on the condition in the script</title>
      <link>https://community.qlik.com/t5/Management-Governance/Get-the-value-from-one-row-to-another-row-based-on-the-condition/m-p/2143620#M26143</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/16771"&gt;@dineshm030&lt;/a&gt;&amp;nbsp; Please use the below expression in your Table:&lt;/P&gt;
&lt;P&gt;=if(Sales_District=below(Sales_District) and TerrCount&amp;lt;Below(TerrCount), Below(TerrCount), TerrCount)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sidhiq91_0-1701585169225.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120943i76F590AFF92485D6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sidhiq91_0-1701585169225.png" alt="sidhiq91_0-1701585169225.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If this resolves your issue, please like and accept it as a solution.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2023 06:33:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Get-the-value-from-one-row-to-another-row-based-on-the-condition/m-p/2143620#M26143</guid>
      <dc:creator>sidhiq91</dc:creator>
      <dc:date>2023-12-03T06:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get the value from one row to another row based on the condition in the script</title>
      <link>https://community.qlik.com/t5/Management-Governance/Get-the-value-from-one-row-to-another-row-based-on-the-condition/m-p/2143621#M26144</link>
      <description>&lt;P&gt;Hi Sidhiq,&lt;/P&gt;
&lt;P&gt;Thanks for your response.&lt;/P&gt;
&lt;P&gt;This logic is working at the expression level, but I need it like this at the script level.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2023 06:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Get-the-value-from-one-row-to-another-row-based-on-the-condition/m-p/2143621#M26144</guid>
      <dc:creator>dineshm030</dc:creator>
      <dc:date>2023-12-03T06:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get the value from one row to another row based on the condition in the script</title>
      <link>https://community.qlik.com/t5/Management-Governance/Get-the-value-from-one-row-to-another-row-based-on-the-condition/m-p/2143695#M26145</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6188"&gt;@sidhiq91&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The logic is working fine without a Business Unit at the expression level.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dineshm030_0-1701663230125.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120950i321011A9C4C50A57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dineshm030_0-1701663230125.png" alt="dineshm030_0-1701663230125.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Once I add the business unit, the value has been changed at the expression level.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dineshm030_1-1701663260547.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120951i8325830DF56AB3F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dineshm030_1-1701663260547.png" alt="dineshm030_1-1701663260547.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Sorting Order :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dineshm030_3-1701663462420.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120953iC29509826909590C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dineshm030_3-1701663462420.png" alt="dineshm030_3-1701663462420.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Kindly help me out.&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 04:18:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Get-the-value-from-one-row-to-another-row-based-on-the-condition/m-p/2143695#M26145</guid>
      <dc:creator>dineshm030</dc:creator>
      <dc:date>2023-12-04T04:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get the value from one row to another row based on the condition in the script</title>
      <link>https://community.qlik.com/t5/Management-Governance/Get-the-value-from-one-row-to-another-row-based-on-the-condition/m-p/2145144#M26187</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;For Script level,&lt;/P&gt;
&lt;P&gt;if all the fields are coming from same table. you can create one mapping table for "ORG" and bring one more field in the table.&lt;/P&gt;
&lt;P&gt;In front end, you can compare the value and use it accordingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ex:&lt;/P&gt;
&lt;P&gt;MAPORG:&lt;BR /&gt;Mapping&lt;BR /&gt;LOAD Sales_District, TerrCount INLINE [&lt;BR /&gt;CP_Team_Flag, Sales_District, TerrCount&lt;BR /&gt;ORG, IN1001, 1&lt;BR /&gt;ORG, IN1028, 2&lt;BR /&gt;ORG, IN5002, 1&lt;BR /&gt;]where CP_Team_Flag = 'ORG';&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;LOAD *, ApplyMap('MAPORG', Sales_District, 0) as ORGTerrCount INLINE [&lt;BR /&gt;CP_Team_Flag, Sales_District, TerrCount&lt;BR /&gt;CP, IN1001, 1&lt;BR /&gt;ORG, IN1001, 1&lt;BR /&gt;CP, IN1028, 2&lt;BR /&gt;ORG, IN1028, 2&lt;BR /&gt;CP, IN5002, 4&lt;BR /&gt;ORG, IN5002, 1&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exp:&amp;nbsp;If(ORGTerrCount &amp;gt; TerrCount, ORGTerrCount, TerrCount)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, its depends on the cardinality and data.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 08:10:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Get-the-value-from-one-row-to-another-row-based-on-the-condition/m-p/2145144#M26187</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2023-12-07T08:10:36Z</dc:date>
    </item>
  </channel>
</rss>

