<?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 expression comparing fields in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/set-analysis-expression-comparing-fields/m-p/46359#M3111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using IntervalMatch to associate your date with start and end date?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Feb 2018 19:15:56 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-02-02T19:15:56Z</dc:date>
    <item>
      <title>set analysis expression comparing fields</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-expression-comparing-fields/m-p/46358#M3110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN class="messageText"&gt;I am using Qlik Sense.&amp;nbsp; Here is the description of what I am trying to do and the problem I am facing.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN class="messageText"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN class="messageText"&gt;In my data I have operators at two factories.&amp;nbsp; The operators do not work every day, so not everyone has the same date for their most recent data.&amp;nbsp; However, the factory has some operators working every day.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN class="messageText"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN class="messageText"&gt;When an operator is performing a task the amount of time to complete the task is measured.&amp;nbsp; Each factory has a performance target for completing a task and the target can change over time.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN class="messageText"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN class="messageText"&gt;An example of my target data for the factories looks like this:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN class="messageText"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="121" style="border: 1px solid #000000; width: 262px; height: 123px;" width="260"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Factory&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Target&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;StartDate&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;EndDate&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2017-10-01&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2017-12-31&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;25&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2018-01-01&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;NULL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;17&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2017-10-01&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;NULL&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN class="messageText"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN class="messageText"&gt;I need an expression that tells me the target given the following criteria:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN class="messageText"&gt;1) If one factory is selected, return the most recent Target (relative to the Date Range selection in the app).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN class="messageText"&gt;2) If two factories are selected, return the lowest of the most recent Targets &lt;SPAN style="color: #636363; font-family: Arial, Helvetica, sans-serif; font-size: 16.6667px; background-color: #fdfdfd;"&gt;(relative to the Date Range selection in the app)&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN class="messageText"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN class="messageText"&gt;Examples of correct results:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN class="messageText"&gt;- Date Range selection: 2017-12-01 to 2017-12-31, Factory: A.&amp;nbsp; Result: 15.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN style="color: #636363; font-size: 16.6667px; background-color: #fdfdfd; font-family: Arial, Helvetica, sans-serif;"&gt;- Date Range selection: 2017-12-01 to 2017-12-31, Factory: A,B.&amp;nbsp; Result: 15.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN style="color: #636363; font-size: 16.6667px; background-color: #fdfdfd; font-family: Arial, Helvetica, sans-serif;"&gt;- Date Range selection: 2017-12-01 to 2018-01-31, Factory: A,B.&amp;nbsp; Result: 17.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN style="color: #636363; font-size: 16.6667px; background-color: #fdfdfd; font-family: Arial, Helvetica, sans-serif;"&gt;- Date Range selection: 2018-01-01 to 2018-01-31, Factory: A.&amp;nbsp; Result: 25.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN style="color: #636363; font-size: 16.6667px; background-color: #fdfdfd; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN class="messageText"&gt;I have written an expression which accomplishes this:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN class="messageText"&gt;Min({$&amp;lt;Date={"$(=max(Date))"}&amp;gt;} Target)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN class="messageText"&gt;Date is every date in the Calendar filter in the app.&amp;nbsp; The target data table above is joined to the data model so that every date for every factory has a target.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN class="messageText"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN class="messageText"&gt;The problem I am having is I am using this expression to compare it to each operator's average task time in a bar chart.&amp;nbsp; The dimension in the bar chart is operator, and the measure is average task time.&amp;nbsp; If the operator's average task time is below the target value that comes from the expression then color the operator's bar green, otherwise color it red.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN class="messageText"&gt;So it looks like this in the chart's color expression:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN class="messageText"&gt;if(avgTaskTime &amp;lt; &lt;SPAN style="color: #636363; font-family: Arial, Helvetica, sans-serif; font-size: 16.6667px; background-color: #fdfdfd;"&gt;Min({$&amp;lt;Date={"$(=max(Date))"}&amp;gt;} Target), 'green', 'red')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN style="color: #636363; font-size: 16.6667px; background-color: #fdfdfd; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN style="color: #636363; font-size: 16.6667px; background-color: #fdfdfd; font-family: Arial, Helvetica, sans-serif;"&gt;What's happening is operators who are lower than the target are only getting colored green if they also have task data on the max date selected.&amp;nbsp; What I want is for them to be colored green if they are lower than the target and have data within the date range.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN style="color: #636363; font-size: 16.6667px; background-color: #fdfdfd; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN style="color: #636363; font-size: 16.6667px; background-color: #fdfdfd; font-family: Arial, Helvetica, sans-serif;"&gt;Can someone help with this?&amp;nbsp; My guess is my expression is incorrect but I am not sure, and I haven't been able to figure out a solution.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN style="color: #636363; font-size: 16.6667px; background-color: #fdfdfd; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="client" style="color: #636363; margin: 0 0 5px; font-size: 1.25em; font-family: Arial, Helvetica, sans-serif; background-color: #fdfdfd;"&gt;&lt;SPAN style="color: #636363; font-size: 16.6667px; background-color: #fdfdfd; font-family: Arial, Helvetica, sans-serif;"&gt;If you need more information or clarification please ask.&amp;nbsp; Thank you for helping me!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 18:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-expression-comparing-fields/m-p/46358#M3110</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-02T18:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis expression comparing fields</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-expression-comparing-fields/m-p/46359#M3111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using IntervalMatch to associate your date with start and end date?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 19:15:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-expression-comparing-fields/m-p/46359#M3111</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-02T19:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis expression comparing fields</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-expression-comparing-fields/m-p/46360#M3112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not.&amp;nbsp; Do you think this would solve my problem?&amp;nbsp; If you don't mind, could you explain?&amp;nbsp; I've never heard of IntervalMatch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 19:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-expression-comparing-fields/m-p/46360#M3112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-02T19:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis expression comparing fields</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-expression-comparing-fields/m-p/46361#M3113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well my question is how is the target table linked to operator? It seems that target table has start and end date, but not Date field which you used in the set analysis. This Date field might have come from operator's table, but then how the two tables are connected (or are they even connected on anything)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For interval match, you can check here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3037"&gt;IntervalMatch&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 19:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-expression-comparing-fields/m-p/46361#M3113</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-02T19:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis expression comparing fields</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-expression-comparing-fields/m-p/46362#M3114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand what you're saying.&amp;nbsp; Thanks for the explanation.&amp;nbsp; We have a table in our data model that does what you're asking.&amp;nbsp; The table has Factory, ShiftDate, Operator, and Target for every date the target was effective.&amp;nbsp; ShiftDate in this table is linked to Date in our calendar table.&amp;nbsp; Does this answer your question?&amp;nbsp; Does it change the way the set analysis should be written?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 20:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-expression-comparing-fields/m-p/46362#M3114</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-02T20:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis expression comparing fields</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-expression-comparing-fields/m-p/46363#M3115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think might make life easy, if you are able to share a sample with us and explain as to what exactly is needed here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 12:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-expression-comparing-fields/m-p/46363#M3115</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-05T12:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis expression comparing fields</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-expression-comparing-fields/m-p/46364#M3116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been working on this and I've gotten part of my formula to work.&amp;nbsp; Here's my formula currently:&lt;/P&gt;&lt;P&gt;Min({$&amp;lt;Date={"$(=max({$&amp;lt;Operator=&amp;gt;} TOTAL Date))"}&amp;gt;} Target)/60&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The portion that is working is: {"$(=max({$&amp;lt;Operator=&amp;gt;} TOTAL Date))"}&lt;/P&gt;&lt;P&gt;It is returning the maximum date in the data ignoring the maximum date of the operator of each operator in the bar chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I think I need the Date to the left of the equal sign to do the same.&amp;nbsp; I tried:&lt;/P&gt;&lt;P&gt;Min({$&amp;lt;OperatorName=&amp;gt;} TOTAL Date={"$(=max({$&amp;lt;OperatorName=&amp;gt;} TOTAL Date))"}&amp;gt;} Target)/60 but it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I want the Date selected and evaluated over the factory's set of data and to ignore the operator.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 20:04:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-expression-comparing-fields/m-p/46364#M3116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-05T20:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis expression comparing fields</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-expression-comparing-fields/m-p/46365#M3117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no idea what you are trying, but may be try this&lt;/P&gt;&lt;P&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;STRONG&gt;Min({$&amp;lt;Date={"$(=max({$&amp;lt;Operator&amp;gt;} Date))"}, &lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Operator&lt;/SPAN&gt;&amp;gt;} Target)/60&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 20:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-expression-comparing-fields/m-p/46365#M3117</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-05T20:43:53Z</dc:date>
    </item>
  </channel>
</rss>

