<?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 Building charts with static selection- Detatch or Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292381#M864343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have done some digging into my issue, and I have found many solutions which describe Set Analysis (and which I have had a hard time following) and a few others which discuss the Detatch function. I would appreciate a review of my use case and some insight on how best to proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm building a function to analyze support bookings, and I am trying to make the end result as user-friendly and click-less as possible. I've worked my way through much of the LOAD work, and now I need to develop the required displays. My question comes in two parts. I'll put part 2 in the comments to keep organized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part 1&lt;/P&gt;&lt;P&gt;I have a bar chart using the dimensions&amp;nbsp; MONTH and REGION and an expression of COUNT(DISTINCT([Booking ID]))&lt;/P&gt;&lt;P&gt;this results in two bars per month (North America and Europe), each counting the number of Booking IDs which fit a set of selections. I would like this result to display in a chart without having to make the selections, and the result should ignore of any selections made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to make it work now, I select the option "Dedicated" from the field [Charge Type], "Active" from the field [Status], and two other selections in separate fields (lets say "AAA" from [Field1] and "BBB" from [Field2]). This limits my data to exactly the total I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems Set Analysis might be the solution, but I don't fully understand the syntax in the examples I have read. If this is the way to go, please help me understand the expression required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, I could set the chart as I need it and then choose "Detatch". This may well be the solution, but I am unsure if this data will update as I reload my data set each month. The selections will always remain the same, but the number of DISTINCT([Booking ID]) will increase as new data is added. Can I rely on Detatch to handle this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>jason_nicholas</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Building charts with static selection- Detatch or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292381#M864343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have done some digging into my issue, and I have found many solutions which describe Set Analysis (and which I have had a hard time following) and a few others which discuss the Detatch function. I would appreciate a review of my use case and some insight on how best to proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm building a function to analyze support bookings, and I am trying to make the end result as user-friendly and click-less as possible. I've worked my way through much of the LOAD work, and now I need to develop the required displays. My question comes in two parts. I'll put part 2 in the comments to keep organized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part 1&lt;/P&gt;&lt;P&gt;I have a bar chart using the dimensions&amp;nbsp; MONTH and REGION and an expression of COUNT(DISTINCT([Booking ID]))&lt;/P&gt;&lt;P&gt;this results in two bars per month (North America and Europe), each counting the number of Booking IDs which fit a set of selections. I would like this result to display in a chart without having to make the selections, and the result should ignore of any selections made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to make it work now, I select the option "Dedicated" from the field [Charge Type], "Active" from the field [Status], and two other selections in separate fields (lets say "AAA" from [Field1] and "BBB" from [Field2]). This limits my data to exactly the total I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems Set Analysis might be the solution, but I don't fully understand the syntax in the examples I have read. If this is the way to go, please help me understand the expression required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, I could set the chart as I need it and then choose "Detatch". This may well be the solution, but I am unsure if this data will update as I reload my data set each month. The selections will always remain the same, but the number of DISTINCT([Booking ID]) will increase as new data is added. Can I rely on Detatch to handle this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292381#M864343</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Building charts with static selection- Detatch or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292382#M864344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Part 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking to capture other data in the same chart, which requires a different set of filters. For example, to capture the Asia data, I cannot use the "Dedicated" selection from [Charge Type], because this field is not used in the region. Instead, I deselect 'Dedicated" and replace it with "Asia" from a field [Region].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without the "Dedicated" selection, my Asia data remains correct, but without the "Asia" selection, I continue to receive North America and Europe data, but those numbers are now incorrect because of the missing "Dedicated" filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What function could I use to calculate two regions based on one set of filters and the third region based on another set of filters? Can I have both data sets showing at the same time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It follows that once I get these three data sets showing properly, I would want to use the results from my question above to make the chart agnostic of any selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 16:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292382#M864344</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2016-12-20T16:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Building charts with static selection- Detatch or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292383#M864345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this for Part 1&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;Count(DISTINCT {1&amp;lt;Field1 = {'AAA'}, Field2 = {'BBB'}, Date = {"=Date &amp;gt;= MonthStart(Max({1}TOTAL Date), -1) and Date&amp;lt;= MonthEnd(Max({1} TOTAL Date)"}&amp;gt;} [Booking ID])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 17:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292383#M864345</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-20T17:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Building charts with static selection- Detatch or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292384#M864346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might help to share a sample with expected output&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 17:24:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292384#M864346</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-20T17:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Building charts with static selection- Detatch or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292385#M864347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, I am behind a firewall which prevents uploading any content to an external internet address, so I am not able to post examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attempted the formula provided above, but I think there is a syntax error because the system stops recognizing formula functions when the date section starts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my version:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;{1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Charge Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Dedicated'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Status&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Active'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Test Filter]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Remove Testing'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Room Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Event Space'},Date={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=Date&amp;gt;=MonthStart(Max({1}TOTAL Date),-1) and Date&amp;lt;=MonthEnd(Max({1} TOTAL Date)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Booking ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aside from syntax, I'm a little unclear about the function. Are (), {}, and &amp;lt;&amp;gt; all used for the same purpose- to encapsulate and run a function in a specific order? Or do they have a specific purpose for each? I can't find a good reference for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What function does the 1 at the start perform?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the result of the Date part of the function? I can unpack the details of the function piece by piece to understand it better, and don't want to hide what might be a useful future question in this comment, but I'd appreciate a brief overview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 18:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292385#M864347</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2016-12-20T18:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Building charts with static selection- Detatch or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292386#M864348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your date field called Date or something else? I used Date as a placeholder for your actual date field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each of these ( &lt;STRONG&gt;(){}&amp;lt;&amp;gt; &lt;/STRONG&gt;) play an important role in a set analysis syntax. You can read about this here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4076"&gt;A Primer on Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some more advance set analysis, you can look here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4951"&gt;Set Analysis: syntaxes, examples&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The PDF attached in the above link isn't perfect, but it will be good starting point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 is used for ignoring all selections. This is covered in the second link I have shared above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date part is just saying that pick all dates where it is greater than one month before the max date and less than end of max month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 19:14:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292386#M864348</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-20T19:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Building charts with static selection- Detatch or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292387#M864349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. These links will be invaluable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I split my date into Day, Month and Year from my LOAD statement. I tried replacing "Date" with "Month". I also adding the full date to the load in addition to the breakout, and replaced "Date" with "FullDate". the result of both efforts shows "No data to display"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I will be away for a few days, I didn't want to leave the thread as "unanswered". I will keep tackling this when I return after studying your links above, and see where I come out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me the difference between using Set Analysis for this function vs Detatching the chart when my filters are selected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, what direction could I head to solve Part 2?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 19:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292387#M864349</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2016-12-20T19:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Building charts with static selection- Detatch or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292388#M864350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me get back home and read them with a clear mind to answer part 2 and any left over questions you have above from part 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 20:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292388#M864350</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-20T20:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Building charts with static selection- Detatch or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292389#M864351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the exact expression you used? May be I might be able to pinpoint what is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards to your part 2, I am going to give you a very general direction because I don't have enough information to get you the details. When you want two expression with different set of filters, you can Sum them using RangeSum() function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(ExpressionWithFirstSetofFilter, ExpressionWithSecondSetofFilter)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you do this rows where only 1st expression has value will display those values. Rows where only 2nd expression has value will display those values. Rows where both expressions will have value will be summed together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 01:18:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292389#M864351</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-21T01:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Building charts with static selection- Detatch or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292390#M864352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; In my case Date is called [Booking Date]. In fact, I load all of my data as:&lt;/P&gt;&lt;P&gt;YEAR([Booking Date]) as Year,&lt;/P&gt;&lt;P&gt;MONTH([Booking Date]) as Month,&lt;/P&gt;&lt;P&gt;Day([Booking Date]) as Day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But to match the function here, I added a simple [Booking Date] to the load script in front of these.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the exact function I developed based on your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;distinct&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;{1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Charge Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Dedicated Event'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Status&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Active'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Test Filter]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Remove Testing'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Room Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Event Space'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Booking Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=[Booking Date]&amp;gt;=MonthStart(Max({1}TOTAL[Booking Date]),-1)and[Booking Date]&amp;lt;=MonthEnd(Max({1}TOTAL [Booking Date])"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Booking ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I think part of the problem is the double quotes in the date part of the function. When I include them, the function stops working after the first [Booking Date]. I know this, because that entry will auto fill but beyond that everything is treated like meaningless text. I tried without the quotes and I got all the way through the last [Booking Date] with QV recognizing the function. However, event then, the end of the function is unrecognizable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 19:59:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292390#M864352</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2016-12-22T19:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Building charts with static selection- Detatch or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292391#M864353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give this a shot&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT {1&amp;lt;[Charge Type] = {'Dedicated Event'}, Status = {'Active'}, [Test Filter] = {'Remove Testing'}, [Room Type] = {'Event Space'}, [Booking Date] = {"=&lt;SPAN style="color: #ff0000;"&gt;Only({1}&lt;/SPAN&gt; [Booking Date]&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt; &amp;gt;= MonthStart(Max({1} TOTAL [Booking Date]), -1) and &lt;STRONG style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;Only({1}&lt;/SPAN&gt; &lt;/STRONG&gt;[Booking Date]&lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;)&lt;/STRONG&gt; &amp;lt;= MonthEnd(Max({1}TOTAL [Booking Date])"}&amp;gt;} [Booking ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 20:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292391#M864353</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-22T20:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Building charts with static selection- Detatch or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292392#M864354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This gets closer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the one hand, QV recognizes the whole function in so much that it allows me to auto-fill the last [Booking ID].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, some of the functions I expected to turn blue in the command, like &lt;STRONG&gt;AND&lt;/STRONG&gt;, do not. After the first&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Booking Date]={&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;everything is red text, which indicates there might be something wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, the totals are coming out to 0. I have confirmed the spelling of all of the filters, and have an identical chart which provides the correct total when I manually select [Charge Type], [Status], [Test Filter] and [Room Type] to the choices selected here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does the 'Detatch' function I mentioned earlier play in to this? If I were to select the filters I want and detatch the chart, would the totals update as new data is imported? Or does Detatch lock it down to the results of the time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 13:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292392#M864354</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2016-12-23T13:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Building charts with static selection- Detatch or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292393#M864355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And doesn't turn blue because it is within the double quotes part of the set analysis. There is nothing wrong in there. The thing within the double quotes section is again how I would expect it to be. A brief intro to set analysis might help&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4076"&gt;A Primer on Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just the total is 0 or each and every single line is 0?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards to detach, I am not full sure how it works, but I guess we can create a small sample to test it out. I will get back to you in a bit to confirm about detach&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 13:20:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292393#M864355</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-23T13:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Building charts with static selection- Detatch or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292394#M864356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just checked and the reload does update the chart with the new values even if the chart is detached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 13:21:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292394#M864356</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-23T13:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Building charts with static selection- Detatch or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292395#M864357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This chart lists the number of distinct Booking IDs across a range of 7 business groups. Each of those totals 0, and the grand total equals 0. Using the unmodified copy of the chart and manually making the selections, the total comes out to about 7,000. Which means something in the function is generating a "false" response. That's why I thought I had a spelling error, but that doesn't seem to be the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If DETATCH will solve my problem, it might be the simplest way to go. In fact, it would make my whole overall process easier. But I can't test it myself until after the first of the month when there is new data to import. So, for the time being, I would be happy to continue trying to nail down this function. I'm learning a lot in the process, and greatly appreciate your efforts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried removing the entire date section, leaving the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; {1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Charge Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Dedicated Event'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Status&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Active'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Test Filter]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Remove Testing'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Room Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Event Space'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Booking ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked, and I get the total I am looking for over the entire year, regardless of the active selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the purpose of the following section?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Booking Date] = {"=&lt;SPAN style="color: #ff0000;"&gt;Only({1}&lt;/SPAN&gt; [Booking Date]&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt; &amp;gt;= MonthStart(Max({1} TOTAL [Booking Date]), -1) and &lt;/STRONG&gt;&lt;STRONG style="font-size: 13.33px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;Only({1}&lt;/SPAN&gt; [Booking Date]&lt;/STRONG&gt;&lt;STRONG style="color: #ff0000; font-size: 13.33px;"&gt;) &amp;lt;= MonthEnd(Max({1}TOTAL [Booking Date])"}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible, can I change it so that active date selection still works, but the four filters remain permanent? In other words, I want the [Charge Type], [Status], [Room Type] and [Remove Testing] options to be permanently fixed to the settings from the first formula above, but have the rest of the total calculate based on the dates I have selected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the operator $ is used to imply current selections, but I don't know how to apply it so it will only reference current date selections and no others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 14:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292395#M864357</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2016-12-23T14:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Building charts with static selection- Detatch or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292396#M864358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Going over this first&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Booking Date] = {"=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Only({1}&lt;/SPAN&gt; [Booking Date]&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;)&lt;/SPAN&gt; &amp;gt;= MonthStart(Max({1} TOTAL [Booking Date]), -1) and &lt;/STRONG&gt;&lt;STRONG style="font-size: 13.33px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.33px; font-family: inherit; color: #ff0000;"&gt;Only({1}&lt;/SPAN&gt; [Booking Date]&lt;/STRONG&gt;&lt;STRONG style="font-size: 13.33px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;) &amp;lt;= MonthEnd(Max({1}TOTAL [Booking Date])"}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best way to see what this is doing is to create a chart with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension -&amp;gt; &lt;STRONG&gt;Booking Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression -&amp;gt;&lt;STRONG&gt; =Only({1} [Booking Date]) &amp;gt;= MonthStart(Max({1} TOTAL [Booking Date]), -1) and Only({1} [Booking Date]) &amp;lt;= MonthEnd(Max({1}TOTAL [Booking Date])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My hope is that when you create this chart, the chart will show -1 for all dates starting the monthstart for one month before the max month to monthend for max month. For example, if you max date is 12/23/2016, you would see 11/01/2016 to 12/31/2016 to be all -1 (and might see 0 for all other dates if you have unchecked 'Suppress Zero Values' on the presentation tab of chart properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are not seeing what I just mentioned, then I must have made a typo, or something else might be missing from the syntax above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards to your second question&lt;/P&gt;&lt;P&gt;Yes you can do this in bunch of ways based on your requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Ignore all selections except Date field selections&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(DISTINCT {&lt;SPAN style="color: #ff0000;"&gt;1&lt;/SPAN&gt;&amp;lt;[Charge Type] = {'Dedicated Event'}, Status = {'Active'}, [Test Filter] = {'Remove Testing'}, [Room Type] = {'Event Space'}, &lt;SPAN style="color: #ff0000;"&gt;[Booking Date] = p(&lt;/SPAN&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Booking D&lt;/STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ate]&lt;/STRONG&gt;)&lt;/SPAN&gt;&amp;gt;} [Booking ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(DISTINCT {&lt;SPAN style="color: #ff0000;"&gt;1&lt;/SPAN&gt;&amp;lt;[Charge Type] = {'Dedicated Event'}, Status = {'Active'}, [Test Filter] = {'Remove Testing'}, [Room Type] = {'Event Space'}, &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #ff0000;"&gt;[Booking Date] = $::&lt;/SPAN&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Booking D&lt;/STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ate]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;gt;} [Booking ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 is used to ignore all selections. There is a small difference between the above two expressions, but based on your requirement you might need one or the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Booking Date = p(Booking Date)&lt;/STRONG&gt; allows for possible values for Booking Dates. So for example if you select a country where there are only 2 of the 3 booking dates available, your chart will show only 2 of the dates. Although you have not made any direct selections in Booking Dates, but the chart is still filtered. On the other hand &lt;STRONG&gt;Booking Date = $:: Booking Date&lt;/STRONG&gt; will only filter based on direct selection of Booking Date field. In our previous example, you would still see 3 Booking Dates because you have not made selection in the Booking Date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Allow all selections except the few you have mentioned in your set analysis&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(DISTINCT {&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #ff0000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&amp;lt;[Charge Type] = {'Dedicated Event'}, Status = {'Active'}, [Test Filter] = {'Remove Testing'}, [Room Type] = {'Event Space'}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&amp;gt;} [Booking ID])&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you don't need &lt;STRONG&gt;Booking Date = p(Booking Date)&lt;/STRONG&gt; or &lt;STRONG style="font-size: 13.3333px;"&gt;Booking Date = $:: Booking Date&lt;/STRONG&gt; because the &lt;STRONG&gt;$ &lt;/STRONG&gt;will take care of your selection in Booking Date field. But this expression will be fixed for Charge Type, Status, Test Filter, &amp;amp; Room Type, but will change based on all other selections. You can remove $ if you wish, because not having one is defaults to $. So the below will work the same way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(DISTINCT {&lt;/STRONG&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&amp;lt;[Charge Type] = {'Dedicated Event'}, Status = {'Active'}, [Test Filter] = {'Remove Testing'}, [Room Type] = {'Event Space'}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&amp;gt;} [Booking ID])&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will clarify some of your doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 14:46:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292396#M864358</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-23T14:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Building charts with static selection- Detatch or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292397#M864359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a Winner!&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: Helvetica;"&gt;Count(DISTINCT {&lt;/STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&amp;lt;[Charge Type] = {'Dedicated Event'}, Status = {'Active'}, [Test Filter] = {'Remove Testing'}, [Room Type] = {'Event Space'}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&amp;gt;} [Booking ID])&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your first example for the demo chart, I received an error. it said " ) expected in expression". I added one at the end, but got the same result.&amp;nbsp; both [Booking Date]=p([Booking Date]) and [Booking Date]=$::([Booking Date]) resolved to errors. But the last option is exactly the solution I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now, for Part 2, is this the correct Syntax?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum&lt;/STRONG&gt;(&lt;EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica;"&gt;Count(DISTINCT {&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;$&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&amp;lt;[Charge Type] = {'Dedicated Event'}, Status = {'Active'}, [Test Filter] = {'Remove Testing'}, [Room Type] = {'Event Space'}&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&lt;EM&gt;&amp;gt;} [Booking ID])&lt;/EM&gt;&lt;STRONG&gt;,COUNT(DISTINCT{&lt;EM&gt;otherSimilarExpressionWithDifferentFilters})&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Or do I have to put RangeSum inside the Count(Distinct expression?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 15:28:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292397#M864359</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2016-12-23T15:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Building charts with static selection- Detatch or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292398#M864360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will need this to be outside of the Count expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(CountExpression1, CountExpression2)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 15:32:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292398#M864360</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-23T15:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Building charts with static selection- Detatch or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292399#M864361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Jason Nicholas wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In your first example for the demo chart, I received an error. it said " ) expected in expression". I added one at the end, but got the same result.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Got the same result? Meaning the result we expected to see?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 15:34:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292399#M864361</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-23T15:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Building charts with static selection- Detatch or Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292400#M864362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;same result, meaning an error expecting another ) in the expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2016 15:35:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Building-charts-with-static-selection-Detatch-or-Set-Analysis/m-p/1292400#M864362</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2016-12-23T15:35:33Z</dc:date>
    </item>
  </channel>
</rss>

