<?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: Re: Re: Exception query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exception-query/m-p/586320#M1114271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've attached some data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially i need to return the Accounts.Name where AccountTags.Name is 'tier 1' and where there are no Activities.AccountID values for each Accounts.Name for the last 30 days&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2014 12:54:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-10T12:54:13Z</dc:date>
    <item>
      <title>Exception query</title>
      <link>https://community.qlik.com/t5/QlikView/Exception-query/m-p/586313#M1114264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following tables linked&lt;/P&gt;&lt;P&gt;&lt;IMG alt="table.bmp" class="jive-image" src="https://community.qlik.com/legacyfs/online/54034_table.bmp" style="width: 620px; height: 215px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this question, please ignore the Role and Businesses table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see each activity entered by one of our salespeople is linked to a contact, which is linked to an account&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to produce a straight table which shows me Accounts which have had no activities in the last month. How would i do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 17:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exception-query/m-p/586313#M1114264</guid>
      <dc:creator />
      <dc:date>2014-02-28T17:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Exception query</title>
      <link>https://community.qlik.com/t5/QlikView/Exception-query/m-p/586314#M1114265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure there is a better solution, but this is the first which came to my mind:&lt;/P&gt;&lt;P&gt;Dimension: Accounts&lt;/P&gt;&lt;P&gt;Expression: If(COUNT(ActivityContactID) = 0, 1, 0)&lt;/P&gt;&lt;P&gt;Presentation =&amp;gt; Supress Zero Values checked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lukasz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: you can extend with set analysis to take only the last month into consideration &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 17:33:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exception-query/m-p/586314#M1114265</guid>
      <dc:creator />
      <dc:date>2014-02-28T17:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Exception query</title>
      <link>https://community.qlik.com/t5/QlikView/Exception-query/m-p/586315#M1114266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From your data model all the tables seem to be nicely assoicated. So on the front-end put acountsID and Activity.CalendarDate in a table box. Where ever there is a null() against Account ID then those don't have any activities.&lt;/P&gt;&lt;P&gt;Now in a straight table &lt;/P&gt;&lt;P&gt;Add AccountID as dimension&lt;/P&gt;&lt;P&gt;Expression something like: if(isnull(Acitivity.LastMonth),1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activity.lastMonth is a flag on back-end to find out the last month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 17:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exception-query/m-p/586315#M1114266</guid>
      <dc:creator />
      <dc:date>2014-02-28T17:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Exception query</title>
      <link>https://community.qlik.com/t5/QlikView/Exception-query/m-p/586316#M1114267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay, this is very close but not quite right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last Month only literally gives me the last calendar month. It's my fault as I should have been clearer in my question, but I actually meant the last 30 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how would the expression differ, would it be something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(isnull(Activity.DaysAgo&amp;lt;=30),1,0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 11:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exception-query/m-p/586316#M1114267</guid>
      <dc:creator />
      <dc:date>2014-03-03T11:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Exception query</title>
      <link>https://community.qlik.com/t5/QlikView/Exception-query/m-p/586317#M1114268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also need to apply to following set analysis to the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{$&amp;lt;AccountTags.Name={'tier 1'}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would this fit into the expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 11:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exception-query/m-p/586317#M1114268</guid>
      <dc:creator />
      <dc:date>2014-03-03T11:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Exception query</title>
      <link>https://community.qlik.com/t5/QlikView/Exception-query/m-p/586318#M1114269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How would I extend this for the last 30 days?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 12:48:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exception-query/m-p/586318#M1114269</guid>
      <dc:creator />
      <dc:date>2014-03-03T12:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Exception query</title>
      <link>https://community.qlik.com/t5/QlikView/Exception-query/m-p/586319#M1114270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to attach a sample doc with data source files as well.&lt;/P&gt;&lt;P&gt;If you want a general suggestion your data your data might look like this in a table box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="74" style="border: 1px solid #000000; width: 450px; height: 53px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Account.AccountID&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Accounts.CreatedDate&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Activity.CalendarDate&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;23&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3/2/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3/3/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;45&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1/1/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1/3/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;345&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12/30/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1/1/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;213&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11/2/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12/4/2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;345&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9/2/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10/16/2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2342&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5/1/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5/1/2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;092&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2/27/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;234&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1/2/2013&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1322&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3/1/2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Now from this you can find out that the last three don't have a Activity date which means those IDs dont have any Activities but those would have Accts.CreatedDate.&lt;/P&gt;&lt;P&gt;In this case you want 092 and 1322 only as they are within last 30 days right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can create a flag for last 30 days based on Accts.CreatedDate&amp;nbsp; as 1/0 and left join Activity.CalendarDate to Accounts table and create field like if(isnull(Activity.CalendarDate),1,0) on backend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now on front end your expression could be&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Only({&amp;lt;Accounts.CreatedDateFlag={1},Activity.CalendarDateFlag={1},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;AccountTags.Name={'tier 1'}&lt;/SPAN&gt;&amp;gt;}Account.AccountID)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 17:43:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exception-query/m-p/586319#M1114270</guid>
      <dc:creator />
      <dc:date>2014-03-03T17:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Exception query</title>
      <link>https://community.qlik.com/t5/QlikView/Exception-query/m-p/586320#M1114271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've attached some data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially i need to return the Accounts.Name where AccountTags.Name is 'tier 1' and where there are no Activities.AccountID values for each Accounts.Name for the last 30 days&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 12:54:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exception-query/m-p/586320#M1114271</guid>
      <dc:creator />
      <dc:date>2014-03-10T12:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Exception query</title>
      <link>https://community.qlik.com/t5/QlikView/Exception-query/m-p/586321#M1114272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Alex,&lt;/P&gt;&lt;P&gt;The data you provided doesn't seem to have null &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Activities.AccountID&lt;/SPAN&gt; for &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;AccountTags.Name&lt;/SPAN&gt;= 'tier 1' in the last 30 days.&lt;/P&gt;&lt;P&gt;So added two rows to the excel with the criteria you mentioned.I created a field called ReqField on the back-end which will give you values you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 15:23:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exception-query/m-p/586321#M1114272</guid>
      <dc:creator />
      <dc:date>2014-03-10T15:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Exception query</title>
      <link>https://community.qlik.com/t5/QlikView/Exception-query/m-p/586322#M1114273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've worked it out now, with a lot of help. This was the solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(count({$ &amp;lt;Activity.CalendarDate={'&amp;gt;=$(=Date(Today()-30))&amp;lt;=$(=Date(Today()))'}, AccountTags.Name={'Tier 1'}&amp;gt;} Activities.AccountId)=0, 1,0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 16:00:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exception-query/m-p/586322#M1114273</guid>
      <dc:creator />
      <dc:date>2014-03-10T16:00:08Z</dc:date>
    </item>
  </channel>
</rss>

