<?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 Simplifying Set Analysis in Techspert Talks</title>
    <link>https://community.qlik.com/t5/Techspert-Talks/Simplifying-Set-Analysis/m-p/1487482#M46</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In this webinar we will discuss:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Advantages of Set Analysis&lt;/LI&gt;&lt;LI&gt;When to avoid it&lt;/LI&gt;&lt;LI&gt;Understanding the components of set expressions&lt;/LI&gt;&lt;LI&gt;Creating expressions with practical examples&lt;/LI&gt;&lt;LI&gt;Using Advanced Search with Set Analysis&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IFRAME frameborder="0" width="425" height="350" src="https://www.youtube.com/embed/S7uuDLe4SDo" allowfullscreen=""&gt;&lt;/IFRAME&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;For best viewing, we recommend you set the highest video resolution.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; text-decoration: underline; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; text-decoration: underline; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;Q&amp;amp;A - CST Simplifying Set Analysis&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; text-decoration: underline; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; text-decoration: underline;"&gt;&lt;STRONG&gt;Q: ­Basic idea how Set Analysis works in the backend compared to If condition­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: Here’s snippet from Qlik Community posted by Henric Cronström: “Set analysis is like a selection, that is evaluated before the chart is built.”&amp;nbsp; I think of Set Analysis as just another set of selections behind the scenes.&amp;nbsp; If statements are evaluated row by row in the underlying data, and there can be substantial overhead associated with this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­I never understood the use of the selections from forward and back buttons, could you give me an example please?­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: I certainly felt the same way for some time (where would you ever use this?!)&amp;nbsp; I recently saw a neat, practical example where a sheet was designed to work as a (one way) drill-down/drill-up analysis.&amp;nbsp; Each step in the process could be compared to the prior, sort of like a “what if” analysis.&amp;nbsp; Just remember that triggers can cause trouble with using the forward and back stack. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­Hi, Is there a reason why we cannot use fieldName={1} where fieldname has a dual value. I always need to do this ={"&amp;gt;=1"}&amp;nbsp; where there is no other value higher than 1­.&amp;nbsp; ­Example: if(Running='t', Dual('Yes', 1), Dual('No', 0)) as Running,­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: Yes – Set Analysis expects the textual value of a dual value field if it is used as a literal value.&amp;nbsp; But using the search string takes care of this for you.&amp;nbsp; This post is regarding dates, but may offer some additional insight: &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2015/09/28/dates-in-set-analysis"&gt;&lt;SPAN style="color: black;"&gt;https://community.qlik.com/blogs/qlikviewdesignblog/2015/09/28/dates-in-set-analysis&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­When using a pivot table, the dimension calculates before the set analysis. If you want to show two columns: sales and previous year sales it wont work if you have month or year as a dimension. Is there any workaround?­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: I think this exemplifies that set expressions are only evaluated once for the entire chart (think of it as an alternative set of selections that will be used for the expression for the entire object.) Each row does not get its own set. I would check out Qlik Community for some possible alternatives; one I have used in the past is a “previous year” field in your data model, and in&amp;nbsp; a set expression replace the selections in the year field with those possible in the “previous year” field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­Is there an equivalent to using isNull(FIELD)? in set analysis­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: Not directly, just like you can’t select a NULL value. You can possibly replace nulls in your data with some value.&amp;nbsp; Check out the &lt;EM&gt;NullAsValue&lt;/EM&gt; statement in the help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­can u explain row by row concept­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: I’ll reference the same answer from a different question:&amp;nbsp; Here’s snippet from Qlik Community posted by Henric Cronström: “Set analysis is like a selection, that is evaluated before the chart is built.”&amp;nbsp; I think of Set Analysis as just another set of selections behind the scenes.&amp;nbsp; If statements are evaluated row by row in the underlying data, and there can be substantial overhead associated with this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­Are there difference between Sense and View regarding set analysis ?­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: The only differences are where some functionality doesn’t exist in one of the two products; for example, alternate states are not available in Qlik Sense as of today, so these cannot be used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­Is there a really good single book, document or site that thoroughly covers set analysis?­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: I am not aware of an all-inclusive document; the online help would be the closest thing to this.&amp;nbsp; I would start with HIC’s recent design blog articles on Qlik Community: &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog"&gt;&lt;SPAN style="color: black;"&gt;https://community.qlik.com/blogs/qlikviewdesignblog&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­why there is no set analysis wizard in QlikView 11 ? is there any plan to implement it?­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: I can’t speak as to why there isn’t one, nor am I aware of any plans to implement this directly into the products.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­BM with Static value has less Bits as compared to Formula as its got calculation and = expansion with it ?­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: I’m not sure I understand the question; the default behavior in QlikView is that, if a search string returns one and only one value, the literal value will be stored in the bookmark as opposed to the search string.&amp;nbsp; The BC_SearchOnlyOneValue Easter Egg can be used to change this behavior.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­does the dynamic search string via a web portal? So can a user log into a hosted dashboard and select that bookmark?­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: This works in QlikView Server as well as QlikView Desktop&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­are there alternative choices of if condition to improve performance?­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: Set Analysis &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&amp;nbsp; Alternatively, “flag” fields (with a value of 0 or 1) can be used and multiply by these in your expression.&amp;nbsp; Here’s an old Community post that may shed some light: &lt;A _jive_internal="true" href="https://community.qlik.com/message/796209#796209"&gt;&lt;SPAN style="color: black;"&gt;https://community.qlik.com/message/796209&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­the " issues when will you fix it?­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: The bug in Qlik Sense where bookmark names wouldn’t work as set identifiers was fixed in 2.0.5, which was released last week and now available on the downloads site.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­can you say a little more on if vs set? ­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: Here’s snippet from Qlik Community posted by Henric Cronström: “Set analysis is like a selection, that is evaluated before the chart is built.”&amp;nbsp; I think of Set Analysis as just another set of selections behind the scenes.&amp;nbsp; If statements are evaluated row by row in the underlying data, and there can be substantial overhead associated with this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­In order to present the intersection of bikes and accessories you had to do an AND calculation. How did you do that? Since Qlik normally only does OR calculations. ­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: I used a set operator in my set expression; in this case the intersection operator “*”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­Is it possible to make a dollar expansion that is not in a global setting. E.g. if you want to calculate the maximum year, where you take the dimensions of e.g. a chart into account.­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: Not inside of a set expression, as that be expanded before the chart is calculated.&amp;nbsp; The same would apply for a dollar-sign expansion.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­Can you provide a good rule of thumb of using Set Analysis vs. the AGGR function?­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: Set Analysis defines the data (record set) over which the expression will be evaluated, while the Aggr() function is for creating nested aggregations, which is kind of like building a straight table equivalent “behind the scenes” which.&amp;nbsp; These are often used together.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­sometimes I can achieve the same using an if statement or set analysis, what is better for performance?­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: Generally speaking Set Analysis will perform bette&lt;/SPAN&gt;&lt;SPAN style="color: #538135;"&gt;r&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; than using If() statements inside of aggregation functions&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Nov 2015 10:38:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-23T10:38:07Z</dc:date>
    <item>
      <title>Simplifying Set Analysis</title>
      <link>https://community.qlik.com/t5/Techspert-Talks/Simplifying-Set-Analysis/m-p/1487482#M46</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In this webinar we will discuss:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Advantages of Set Analysis&lt;/LI&gt;&lt;LI&gt;When to avoid it&lt;/LI&gt;&lt;LI&gt;Understanding the components of set expressions&lt;/LI&gt;&lt;LI&gt;Creating expressions with practical examples&lt;/LI&gt;&lt;LI&gt;Using Advanced Search with Set Analysis&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IFRAME frameborder="0" width="425" height="350" src="https://www.youtube.com/embed/S7uuDLe4SDo" allowfullscreen=""&gt;&lt;/IFRAME&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;&lt;EM&gt;For best viewing, we recommend you set the highest video resolution.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; text-decoration: underline; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; text-decoration: underline; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;Q&amp;amp;A - CST Simplifying Set Analysis&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; text-decoration: underline; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; text-decoration: underline;"&gt;&lt;STRONG&gt;Q: ­Basic idea how Set Analysis works in the backend compared to If condition­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: Here’s snippet from Qlik Community posted by Henric Cronström: “Set analysis is like a selection, that is evaluated before the chart is built.”&amp;nbsp; I think of Set Analysis as just another set of selections behind the scenes.&amp;nbsp; If statements are evaluated row by row in the underlying data, and there can be substantial overhead associated with this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­I never understood the use of the selections from forward and back buttons, could you give me an example please?­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: I certainly felt the same way for some time (where would you ever use this?!)&amp;nbsp; I recently saw a neat, practical example where a sheet was designed to work as a (one way) drill-down/drill-up analysis.&amp;nbsp; Each step in the process could be compared to the prior, sort of like a “what if” analysis.&amp;nbsp; Just remember that triggers can cause trouble with using the forward and back stack. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­Hi, Is there a reason why we cannot use fieldName={1} where fieldname has a dual value. I always need to do this ={"&amp;gt;=1"}&amp;nbsp; where there is no other value higher than 1­.&amp;nbsp; ­Example: if(Running='t', Dual('Yes', 1), Dual('No', 0)) as Running,­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: Yes – Set Analysis expects the textual value of a dual value field if it is used as a literal value.&amp;nbsp; But using the search string takes care of this for you.&amp;nbsp; This post is regarding dates, but may offer some additional insight: &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2015/09/28/dates-in-set-analysis"&gt;&lt;SPAN style="color: black;"&gt;https://community.qlik.com/blogs/qlikviewdesignblog/2015/09/28/dates-in-set-analysis&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­When using a pivot table, the dimension calculates before the set analysis. If you want to show two columns: sales and previous year sales it wont work if you have month or year as a dimension. Is there any workaround?­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: I think this exemplifies that set expressions are only evaluated once for the entire chart (think of it as an alternative set of selections that will be used for the expression for the entire object.) Each row does not get its own set. I would check out Qlik Community for some possible alternatives; one I have used in the past is a “previous year” field in your data model, and in&amp;nbsp; a set expression replace the selections in the year field with those possible in the “previous year” field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­Is there an equivalent to using isNull(FIELD)? in set analysis­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: Not directly, just like you can’t select a NULL value. You can possibly replace nulls in your data with some value.&amp;nbsp; Check out the &lt;EM&gt;NullAsValue&lt;/EM&gt; statement in the help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­can u explain row by row concept­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: I’ll reference the same answer from a different question:&amp;nbsp; Here’s snippet from Qlik Community posted by Henric Cronström: “Set analysis is like a selection, that is evaluated before the chart is built.”&amp;nbsp; I think of Set Analysis as just another set of selections behind the scenes.&amp;nbsp; If statements are evaluated row by row in the underlying data, and there can be substantial overhead associated with this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­Are there difference between Sense and View regarding set analysis ?­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: The only differences are where some functionality doesn’t exist in one of the two products; for example, alternate states are not available in Qlik Sense as of today, so these cannot be used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­Is there a really good single book, document or site that thoroughly covers set analysis?­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: I am not aware of an all-inclusive document; the online help would be the closest thing to this.&amp;nbsp; I would start with HIC’s recent design blog articles on Qlik Community: &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog"&gt;&lt;SPAN style="color: black;"&gt;https://community.qlik.com/blogs/qlikviewdesignblog&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­why there is no set analysis wizard in QlikView 11 ? is there any plan to implement it?­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: I can’t speak as to why there isn’t one, nor am I aware of any plans to implement this directly into the products.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­BM with Static value has less Bits as compared to Formula as its got calculation and = expansion with it ?­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: I’m not sure I understand the question; the default behavior in QlikView is that, if a search string returns one and only one value, the literal value will be stored in the bookmark as opposed to the search string.&amp;nbsp; The BC_SearchOnlyOneValue Easter Egg can be used to change this behavior.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­does the dynamic search string via a web portal? So can a user log into a hosted dashboard and select that bookmark?­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: This works in QlikView Server as well as QlikView Desktop&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­are there alternative choices of if condition to improve performance?­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: Set Analysis &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&amp;nbsp; Alternatively, “flag” fields (with a value of 0 or 1) can be used and multiply by these in your expression.&amp;nbsp; Here’s an old Community post that may shed some light: &lt;A _jive_internal="true" href="https://community.qlik.com/message/796209#796209"&gt;&lt;SPAN style="color: black;"&gt;https://community.qlik.com/message/796209&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­the " issues when will you fix it?­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: The bug in Qlik Sense where bookmark names wouldn’t work as set identifiers was fixed in 2.0.5, which was released last week and now available on the downloads site.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­can you say a little more on if vs set? ­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: Here’s snippet from Qlik Community posted by Henric Cronström: “Set analysis is like a selection, that is evaluated before the chart is built.”&amp;nbsp; I think of Set Analysis as just another set of selections behind the scenes.&amp;nbsp; If statements are evaluated row by row in the underlying data, and there can be substantial overhead associated with this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­In order to present the intersection of bikes and accessories you had to do an AND calculation. How did you do that? Since Qlik normally only does OR calculations. ­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: I used a set operator in my set expression; in this case the intersection operator “*”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­Is it possible to make a dollar expansion that is not in a global setting. E.g. if you want to calculate the maximum year, where you take the dimensions of e.g. a chart into account.­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: Not inside of a set expression, as that be expanded before the chart is calculated.&amp;nbsp; The same would apply for a dollar-sign expansion.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­Can you provide a good rule of thumb of using Set Analysis vs. the AGGR function?­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: Set Analysis defines the data (record set) over which the expression will be evaluated, while the Aggr() function is for creating nested aggregations, which is kind of like building a straight table equivalent “behind the scenes” which.&amp;nbsp; These are often used together.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;STRONG&gt;Q: ­sometimes I can achieve the same using an if statement or set analysis, what is better for performance?­&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;A: Generally speaking Set Analysis will perform bette&lt;/SPAN&gt;&lt;SPAN style="color: #538135;"&gt;r&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; than using If() statements inside of aggregation functions&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 10:38:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Techspert-Talks/Simplifying-Set-Analysis/m-p/1487482#M46</guid>
      <dc:creator />
      <dc:date>2015-11-23T10:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Simplifying Set Analysis</title>
      <link>https://community.qlik.com/t5/Techspert-Talks/Simplifying-Set-Analysis/m-p/1487483#M47</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought the Venn diagram in your example document was pretty cool.&lt;/P&gt;&lt;P&gt;I built a document similar to some we use for data analysis at work and I defined a multibox for alternate state C and then defined another multibox for alternate state D. Then, I borrowed the text boxes that make up your Venn diagram and put them in there so that someone can make up a set of selections in the two multiboxes and click on the Venn diagram.&lt;/P&gt;&lt;P&gt;Underneath that, I defined a straight table with columns like SLS HISTORY with expressions using the vSetOperatorExpression variable and values like&amp;nbsp; {C+D}&amp;nbsp; or&amp;nbsp; {C*D}&amp;nbsp; or&amp;nbsp; {D}, etc. So, it becomes a multivariate analysis with "selections" that you can't ordinarily do with list boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also created a small transparent text box under the Venn diagram and used the nested IF logic from your vSetOperatorExpression to build a text description of the current choice, like "Union, everything selected in C plus everything selected in D".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the presentation and useful information!&lt;/P&gt;&lt;P&gt;-Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 18:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Techspert-Talks/Simplifying-Set-Analysis/m-p/1487483#M47</guid>
      <dc:creator />
      <dc:date>2015-11-23T18:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Simplifying Set Analysis</title>
      <link>https://community.qlik.com/t5/Techspert-Talks/Simplifying-Set-Analysis/m-p/1487484#M48</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the feedback Tim and I'm glad you were able to get something useful from it!&amp;nbsp; I figured someone would be able to find a more practical use for this and take it to the next level (although I'd be lying if I didn't say that my colleague and I weren't jumping up and down in excitement when we got it to work &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;-Isaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 20:25:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Techspert-Talks/Simplifying-Set-Analysis/m-p/1487484#M48</guid>
      <dc:creator />
      <dc:date>2015-12-03T20:25:05Z</dc:date>
    </item>
  </channel>
</rss>

