<?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: Set Analysis Help Needed in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589548#M738704</link>
    <description>&lt;P&gt;Can you try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Max({&amp;lt;ProductionStartMonth = {"$(=Date(Max(ProductionStartMonth), 'MM-YYYY'))"}&amp;gt;} AFPO.WEWRT/AFPO.PSMNG)&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 07 Jun 2019 12:34:23 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-06-07T12:34:23Z</dc:date>
    <item>
      <title>Set Analysis Help Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589198#M738696</link>
      <description>&lt;P&gt;So I have an issue with a set analysis formula that I cannot figure out what is wrong with it. I am trying to have the formula display the value of&amp;nbsp;(AFPO.WEWRT/AFPO.PSMNG) where the ProductionStartMonth (formatted as a date MM-YYYY) is the maximum which would display the newest price per unit.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula I came up with is&amp;nbsp;MAX({&amp;lt;ProductionStartMonth=MAX(ProductionStartMonth)&amp;gt;} (AFPO.WEWRT/AFPO.PSMNG)) but that isnt working. The error message starting after the }. What am I missing with this?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589198#M738696</guid>
      <dc:creator>JustinRamsey</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589213#M738698</link>
      <description>&lt;P&gt;If the date could be causing the issue I could change it to the number AFPO.AUFNR but I would still need the max of that value&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 18:14:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589213#M738698</guid>
      <dc:creator>JustinRamsey</dc:creator>
      <dc:date>2019-06-06T18:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589268#M738700</link>
      <description>&lt;P&gt;Hi, mainly the syntax for se analysis needs the values between &lt;FONT color="#FF0000"&gt;brackets&lt;/FONT&gt;, also to evaluate max value inside brackets &lt;FONT color="#3366FF"&gt;$-expansion&lt;/FONT&gt; can be used:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MAX({&amp;lt;ProductionStartMonth=&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;$(=&lt;/FONT&gt;&lt;/STRONG&gt;MAX(ProductionStartMonth)&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/FONT&gt;&amp;gt;} (AFPO.WEWRT/AFPO.PSMNG))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Maybe you need to set date format:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MAX({&amp;lt;ProductionStartMonth={$(=&lt;STRONG&gt;Date(&lt;/STRONG&gt;MAX(ProductionStartMonth)&lt;STRONG&gt;, MM-YYYY)&lt;/STRONG&gt;)}&amp;gt;} (AFPO.WEWRT/AFPO.PSMNG))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This can work if WEWRT and PSMNG only has one value per ProducctionStartMonth, if there can be many values you have to aggregate them:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Sum(&lt;/STRONG&gt;{&amp;lt;ProductionStartMonth={$(=Date(MAX(ProductionStartMonth), MM-YYYY))}&amp;gt;} AFPO.WEWRT&lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;/Sum(&lt;/STRONG&gt;{&amp;lt;ProductionStartMonth={$(=Date(MAX(ProductionStartMonth), MM-YYYY))}&amp;gt;}AFPO.PSMNG&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 20:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589268#M738700</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-06-06T20:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589542#M738702</link>
      <description>&lt;P&gt;Ive tried your formulas and I cant get them to work either. I have reconfigured my load script to give me a Production Year value (ProductionYear) and can get close to the value I want by using the function:&amp;nbsp;&lt;/P&gt;&lt;P&gt;AVG({&amp;lt;ProductionYear={2019}&amp;gt;} (AFPO.WEWRT/AFPO.PSMNG))&lt;/P&gt;&lt;P&gt;This would return the average price per unit for all 2019 production orders. It's close to what I am wanting but I would prefer for it to display the value of the most recent Production order. My load script for the production day is: date(monthstart(AFPO.STRMP), 'MM-DD-YYYY') as ProductionStartDay,&lt;/P&gt;&lt;P&gt;date(monthstart(AFPO.STRMP), 'MM-YYYY') as ProductionStartMonth,&lt;BR /&gt;date(monthstart(AFPO.STRMP), 'YYYY') as ProductionYear,&lt;/P&gt;&lt;P&gt;Something is not working right in the section for the max date selection. I am lost as to why as it seems like it should work.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 12:28:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589542#M738702</guid>
      <dc:creator>JustinRamsey</dc:creator>
      <dc:date>2019-06-07T12:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589548#M738704</link>
      <description>&lt;P&gt;Can you try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Max({&amp;lt;ProductionStartMonth = {"$(=Date(Max(ProductionStartMonth), 'MM-YYYY'))"}&amp;gt;} AFPO.WEWRT/AFPO.PSMNG)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 07 Jun 2019 12:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589548#M738704</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-07T12:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589593#M738706</link>
      <description>&lt;P&gt;&lt;U&gt;Returned a value for only 1 line out of the 300 or so.&amp;nbsp;&lt;/U&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 13:36:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589593#M738706</guid>
      <dc:creator>JustinRamsey</dc:creator>
      <dc:date>2019-06-07T13:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589601#M738708</link>
      <description>&lt;P&gt;Okay so what is the issue? May be you only have one row for Max ProductionStartMonth....&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 13:49:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589601#M738708</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-07T13:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589603#M738710</link>
      <description>&lt;P&gt;There is approximately 300 parts that have a production date therefore they should all have a production max date.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 13:51:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589603#M738710</guid>
      <dc:creator>JustinRamsey</dc:creator>
      <dc:date>2019-06-07T13:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589614#M738711</link>
      <description>&lt;P&gt;I am not sure I understand... are you able to share some sample data and the output you expect to see from it?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 14:10:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589614#M738711</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-07T14:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589623#M738712</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Example.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13413iFAA79397B600C9CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Example.PNG" alt="Example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See data table above. Trying to add column that displays the price per part on the most recent production order. All parts shown that have a production price should have a max production date that would be the most recent production order.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 14:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589623#M738712</guid>
      <dc:creator>JustinRamsey</dc:creator>
      <dc:date>2019-06-07T14:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589650#M738713</link>
      <description>&lt;P&gt;Seems like what you really need is a FirstSortedValue() function instead of set analysis....&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 15:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589650#M738713</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-07T15:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589686#M738714</link>
      <description>&lt;P&gt;I've never used that function. Can you assist me with its syntax? Tried&lt;/P&gt;&lt;P&gt;&amp;nbsp;FirstSortedValue(AFPO.AUFNR, AFPO.STRMP, 1) as NewestOrder,&lt;/P&gt;&lt;P&gt;Where AFPO.AUFNR is the Production order number. but it errors out.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 17:05:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589686#M738714</guid>
      <dc:creator>JustinRamsey</dc:creator>
      <dc:date>2019-06-07T17:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589691#M738715</link>
      <description>&lt;P&gt;You need to do this in the script?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 17:59:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589691#M738715</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-07T17:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589693#M738716</link>
      <description>&lt;P&gt;I dont need to I thought that was where the function was usually implemented per the examples I saw.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 18:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589693#M738716</guid>
      <dc:creator>JustinRamsey</dc:creator>
      <dc:date>2019-06-07T18:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589695#M738717</link>
      <description>&lt;P&gt;Can be implemented on the front end as well.&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/ChartFunctions/BasicAggregationFunctions/firstsortedvalue.htm" target="_blank" rel="noopener"&gt;firstsortedvalue&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I don't think I can give you the exact expression without testing it out based on your dimension and expectation, but feel free to try it out.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 18:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589695#M738717</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-07T18:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Help Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589709#M738718</link>
      <description>&lt;P&gt;Appears this may be working. Have to have a coworker verify in the system.&lt;/P&gt;&lt;P&gt;FirstSortedValue((AFPO.WEWRT/AFPO.PSMNG), -AFPO.STRMP, 1)&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 19:32:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Help-Needed/m-p/1589709#M738718</guid>
      <dc:creator>JustinRamsey</dc:creator>
      <dc:date>2019-06-07T19:32:52Z</dc:date>
    </item>
  </channel>
</rss>

