<?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: Create a Field from an Expression and creating Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651623#M731032</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can create a field with using preceding load.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Preceding-Load/ba-p/1469534" target="_self"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Preceding-Load/ba-p/1469534&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD 
Field1,
Field2,
sum(GainedPoints)/sum(TotalPoints) as TotalQScore

INLINE [
Field1, Field2,GainedPoints,TotalPoints
UK, London,34,123
Russia, Moscow 22,89
USA,Dallas, 45, 130
]
Group by Field1,
Field2
;&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 26 Nov 2019 21:36:50 GMT</pubDate>
    <dc:creator>sergio0592</dc:creator>
    <dc:date>2019-11-26T21:36:50Z</dc:date>
    <item>
      <title>Create a Field from an Expression and creating Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651614#M731031</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;How can I take a Qlikview expression and make it into a permanent Field of data that can be re-used in other expressions?&amp;nbsp; My expression is: (sum(GainedPoints))/(sum(TotalPoints)), which I express in my chart as a percentage (example: 4/5=80.0%).&amp;nbsp; I label this expression "Total QA Score" in my particular chart, but I want a way to use that label as a&amp;nbsp;field name [TotalQAScore] so I can use it over and over in other charts/expressions and also as a modifier in set analysis.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1. How can I create this expression as a Field in my data/load script?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;2.&amp;nbsp; Also, how would I create a set analysis statement if I want to take the following measure and only display results if the TotalQAScore=100.0%:&amp;nbsp;&amp;nbsp;=count(DISTINCT(UniqueActivityID))&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651614#M731031</guid>
      <dc:creator>susanflarsen</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Field from an Expression and creating Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651623#M731032</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can create a field with using preceding load.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Preceding-Load/ba-p/1469534" target="_self"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Preceding-Load/ba-p/1469534&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD 
Field1,
Field2,
sum(GainedPoints)/sum(TotalPoints) as TotalQScore

INLINE [
Field1, Field2,GainedPoints,TotalPoints
UK, London,34,123
Russia, Moscow 22,89
USA,Dallas, 45, 130
]
Group by Field1,
Field2
;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 26 Nov 2019 21:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651623#M731032</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2019-11-26T21:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Field from an Expression and creating Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651901#M731033</link>
      <description>&lt;P&gt;I don't quite understand your response.&amp;nbsp; I do have GainedPoints and TotalPoints as existing fields in my load script currently (with data values of 1-100).&amp;nbsp; So I don't think&amp;nbsp; the INLINE table would be needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I paste the text your suggested [(sum(GainedPoints)/sum(TotalPoints)) as TotalQScore] into the bottom of that same Load script, I get an error when the load runs that says "Invalid expression", but if I click on OK, the load will continue to run to end and the new field TotalQScore does exist (but has no content).&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 13:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651901#M731033</guid>
      <dc:creator>susanflarsen</dc:creator>
      <dc:date>2019-11-27T13:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Field from an Expression and creating Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651905#M731034</link>
      <description>&lt;P&gt;The load inline instruction was just for a quik sample in my post. I assume that you are using SQL Statement.&lt;/P&gt;&lt;P&gt;Can you post your sript?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 13:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651905#M731034</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2019-11-27T13:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Field from an Expression and creating Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651907#M731035</link>
      <description>&lt;P&gt;I don't know how to write SQL statements, but this is my load script:&lt;/P&gt;&lt;P&gt;LOAD ID,&lt;BR /&gt;UniqueActivityID,&lt;BR /&gt;PolicyNo,&lt;BR /&gt;ActivityCompleter as Reviewee,&lt;BR /&gt;ActivityCompleterID,&lt;BR /&gt;CompletionDate,&lt;BR /&gt;WorkType,&lt;BR /&gt;QARemarks,&lt;BR /&gt;QustionID as QuestionID,&lt;BR /&gt;Question,&lt;BR /&gt;QAAnswer,&lt;BR /&gt;TotalPoints,&lt;BR /&gt;GainedPoints,&lt;BR /&gt;QACount,&lt;BR /&gt;DPUError,&lt;BR /&gt;DPOError,&lt;BR /&gt;QAType,&lt;BR /&gt;QADate,&lt;BR /&gt;QADateTime,&lt;BR /&gt;QAName,&lt;BR /&gt;QAID,&lt;BR /&gt;AHT,&lt;BR /&gt;CaseStatus,&lt;BR /&gt;(sum(GainedPoints)/sum(TotalPoints)) as TotalQAScore,&lt;BR /&gt;'Ask Unum SS' as Role&lt;BR /&gt;FROM&lt;BR /&gt;[\\Fsdfs3dat01p\dept\Continuous Improvement\EXL Exports for Qlikview\QMS AU Completed Audits Data-prior to last month.xlsx]&lt;BR /&gt;(ooxml, embedded labels, header is 1 lines, table is Export_To_Excel_Audits);&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 14:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651907#M731035</guid>
      <dc:creator>susanflarsen</dc:creator>
      <dc:date>2019-11-27T14:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Field from an Expression and creating Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651908#M731036</link>
      <description>&lt;P&gt;Susan, why do you want to add it to the script?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;the formula appears simple, I don't find the need to put it in the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for the 1: try to use a variable where you store the value of (sum(GainedPoints))/(sum(TotalPoints)) with the label TotalQAScore&lt;/P&gt;&lt;P&gt;Otherwise for the second question, you can use the same variable in Set Analysis.&lt;/P&gt;&lt;P&gt;Share a sample data and give an example.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Taoufiq&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 14:08:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651908#M731036</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2019-11-27T14:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Field from an Expression and creating Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651916#M731037</link>
      <description>&lt;P&gt;You use sum(), so you have to use group by statement at the end.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 14:12:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651916#M731037</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2019-11-27T14:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Field from an Expression and creating Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651925#M731038</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;I propose you create a variable and you put the expression in it&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 14:28:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651925#M731038</guid>
      <dc:creator>yassinemhadhbi</dc:creator>
      <dc:date>2019-11-27T14:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Field from an Expression and creating Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651951#M731039</link>
      <description>&lt;P&gt;So try with, does it works?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD
ID,
UniqueActivityID,
PolicyNo,
ActivityCompleter as Reviewee,
ActivityCompleterID,
CompletionDate,
WorkType,
QARemarks,
QustionID as QuestionID,
Question,
QAAnswer,
TotalPoints,
GainedPoints,
QACount,
DPUError,
DPOError,
QAType,
QADate,
QADateTime,
QAName,
QAID,
AHT,
CaseStatus,
(sum(GainedPoints)/sum(TotalPoints)) as TotalQAScore,
'Ask Unum SS' as Role
FROM
[\\Fsdfs3dat01p\dept\Continuous Improvement\EXL Exports for Qlikview\QMS AU Completed Audits Data-prior to last month.xlsx]
(ooxml, embedded labels, header is 1 lines, table is Export_To_Excel_Audits)
group by
ID,
UniqueActivityID,
PolicyNo,
ActivityCompleter as Reviewee,
ActivityCompleterID,
CompletionDate,
WorkType,
QARemarks,
QustionID as QuestionID,
Question,
QAAnswer,
TotalPoints,
GainedPoints,
QACount,
DPUError,
DPOError,
QAType,
QADate,
QADateTime,
QAName,
QAID,
AHT,
CaseStatus,
'Ask Unum SS' as Role
;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 15:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651951#M731039</guid>
      <dc:creator>sergio0592</dc:creator>
      <dc:date>2019-11-27T15:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Field from an Expression and creating Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651962#M731040</link>
      <description>&lt;P&gt;No, Sergio.&amp;nbsp; Unfortunately, I still receive Invalid Expression error when I run the load script as copied from what you suggested.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 15:58:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651962#M731040</guid>
      <dc:creator>susanflarsen</dc:creator>
      <dc:date>2019-11-27T15:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Field from an Expression and creating Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651969#M731041</link>
      <description>&lt;P&gt;Hi Taoufig,&lt;/P&gt;&lt;P&gt;I've added a variable in the Settings/Variable Overview screen now called vTotalQAScore, and indicated that the definition of this is &lt;SPAN&gt;(sum(GainedPoints))/(sum(TotalPoints)*100).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I use this variable to write a set analysis so that my system will count distinct UniqueActivityID (i.e.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=count(DISTINCT(UniqueActivityID))) but only if the vTotalQAScore is equal to 100.0?&amp;nbsp; I'll also need to create a set analysis to count all of those scores that are not equal to 100.0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am new to set analysis.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 16:19:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651969#M731041</guid>
      <dc:creator>susanflarsen</dc:creator>
      <dc:date>2019-11-27T16:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Field from an Expression and creating Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651984#M731042</link>
      <description>&lt;P&gt;You will want to store the expression in a variable.&amp;nbsp; &amp;nbsp;You can create the variable overview or in the script:&lt;/P&gt;&lt;P&gt;SET&amp;nbsp;&lt;SPAN&gt;TotalQAScore]&amp;nbsp;&lt;/SPAN&gt;=&amp;nbsp;&lt;SPAN&gt;(sum(GainedPoints))/(sum(TotalPoints));&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then you can use it in chart expressions as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;$(TotalQAScore)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Re your set analysis question.&amp;nbsp; I'll assume you have only 1 row per&amp;nbsp;UniqueActivityID and therefore do not need to sum() before calculating GainedPoints / TotalPoints.&amp;nbsp; Let me know if I'm wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;count(DISTINCT {&amp;lt;UniqueActivityID={"=GainedPoints /&amp;nbsp;TotalPoints = 1"}&amp;gt;} UniqueActivityID)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(Note there is no paren after the keyword "DISTINCT")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 17:28:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1651984#M731042</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-11-27T17:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Field from an Expression and creating Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1653232#M731043</link>
      <description>&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;Thanks for your suggestions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, my data does contain more than&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;1 row per&amp;nbsp;UniqueActivityID, so I'd appreciate your recommendation of what to modify in the second syntax you suggested.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, with the first syntax that you provided (SET&amp;nbsp;TotalQAScore]&amp;nbsp;=&amp;nbsp;(sum(GainedPoints))/(sum(TotalPoints));&amp;nbsp; ), is there any typo in that?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I did copy and paste that syntax into my load script (once with the "]" and once without the "]", but after I refresh my data, the field "TotalQAScore" doesn't show up in my chart dimensions "Available Fields/Groups" list.&amp;nbsp; I welcome any additional insight.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 16:26:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1653232#M731043</guid>
      <dc:creator>susanflarsen</dc:creator>
      <dc:date>2019-12-02T16:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Field from an Expression and creating Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1653869#M731044</link>
      <description>&lt;P&gt;Hi Sue,&lt;/P&gt;&lt;P&gt;Yes, there was a typo in my previous post. The statement should be:&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt; TotalQAScore = (sum(GainedPoints) / sum(TotalPoints));&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;TotalQAScore will not show up in the Field list. It is a variable, so it will show up in the Variable dropdown in the Expression Editor.&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Since you have multiple rows per&amp;nbsp;&lt;SPAN&gt;UniqueActivityID, you will have to use an aggr in your set analysis modifier. The expression return the aggregated value by UniqueActivityID, using the variable, is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;aggr&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;&lt;STRONG&gt;&lt;I&gt;$(TotalQAScore)&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;, &lt;/SPAN&gt;UniqueActivityID&lt;SPAN class="s2"&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;The expression to count the ids where result = 1 is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;count&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;({&amp;lt;&lt;/SPAN&gt;UniqueActivityID&lt;SPAN class="s2"&gt;={&lt;/SPAN&gt;"=aggr($(TotalQAScore), UniqueActivityID) = 1"&lt;SPAN class="s2"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;DISTINCT&lt;/SPAN&gt; UniqueActivityID&lt;SPAN class="s2"&gt;) &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;to count the "not 1":&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;count&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;({&amp;lt;&lt;/SPAN&gt;UniqueActivityID&lt;SPAN class="s2"&gt;-={&lt;/SPAN&gt;"=aggr($(TotalQAScore), UniqueActivityID) = 1"&lt;SPAN class="s2"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;DISTINCT&lt;/SPAN&gt; UniqueActivityID&lt;SPAN class="s2"&gt;) &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;The only difference between the two being the "=" or "-=".&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;Attached is a qvw that demonstrates. If this example does not work for your data, please update it to show your data problem and repost.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 00:30:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1653869#M731044</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-12-04T00:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Field from an Expression and creating Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1654221#M731045</link>
      <description>&lt;P&gt;Success!&amp;nbsp; Thank you for your help, Rob!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 16:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Field-from-an-Expression-and-creating-Set-Analysis/m-p/1654221#M731045</guid>
      <dc:creator>susanflarsen</dc:creator>
      <dc:date>2019-12-04T16:58:50Z</dc:date>
    </item>
  </channel>
</rss>

