<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: SQL Server 2008 R2: Reporting Services – Look Up, Look Down, Look All Around (Part III)</title>
	<atom:link href="http://blog.datainspirations.com/2010/04/07/sql-server-2008-r2-reporting-services-look-up-part-iii/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.datainspirations.com/2010/04/07/sql-server-2008-r2-reporting-services-look-up-part-iii/</link>
	<description>Inspiring Intelligence from Information</description>
	<lastBuildDate>Thu, 02 Feb 2012 01:12:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Data Inspirations &#187; SQL Server 2008 R2: Reporting Services – Look Up, Look Down, Look All Around (Part II)</title>
		<link>http://blog.datainspirations.com/2010/04/07/sql-server-2008-r2-reporting-services-look-up-part-iii/comment-page-1/#comment-8734</link>
		<dc:creator>Data Inspirations &#187; SQL Server 2008 R2: Reporting Services – Look Up, Look Down, Look All Around (Part II)</dc:creator>
		<pubDate>Thu, 02 Feb 2012 01:12:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.datainspirations.com/?p=107#comment-8734</guid>
		<description>[...] my next post, I&#8217;ll explain the last of the lookup functions, [...]</description>
		<content:encoded><![CDATA[<p>[...] my next post, I&#8217;ll explain the last of the lookup functions, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stacia Misner</title>
		<link>http://blog.datainspirations.com/2010/04/07/sql-server-2008-r2-reporting-services-look-up-part-iii/comment-page-1/#comment-7466</link>
		<dc:creator>Stacia Misner</dc:creator>
		<pubDate>Mon, 26 Dec 2011 23:09:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.datainspirations.com/?p=107#comment-7466</guid>
		<description>Hi Mike,  You can think of lookups as working like a left outer join in T-SQL, so using a lookup to stack two MDX datasets together wouldn&#039;t work. If it&#039;s possible for you, I would recommend approaching the problem by using an OPENQUERY function as I describe in this post: http://blog.datainspirations.com/2010/11/30/creating-a-linked-server-for-analysis-services/. Then you can have two select statements to get the results for each MDX dataset and perform a union on the two result sets.</description>
		<content:encoded><![CDATA[<p>Hi Mike,  You can think of lookups as working like a left outer join in T-SQL, so using a lookup to stack two MDX datasets together wouldn&#8217;t work. If it&#8217;s possible for you, I would recommend approaching the problem by using an OPENQUERY function as I describe in this post: <a href="http://blog.datainspirations.com/2010/11/30/creating-a-linked-server-for-analysis-services/" rel="nofollow">http://blog.datainspirations.com/2010/11/30/creating-a-linked-server-for-analysis-services/</a>. Then you can have two select statements to get the results for each MDX dataset and perform a union on the two result sets.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://blog.datainspirations.com/2010/04/07/sql-server-2008-r2-reporting-services-look-up-part-iii/comment-page-1/#comment-7188</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sat, 17 Dec 2011 00:58:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.datainspirations.com/?p=107#comment-7188</guid>
		<description>Very nice article! I was hoping this would provide a solution to my issue which similar but different. I am trying to stack two MDX datasets together, very similar to a sql Union. Can lookups be used for this purpose?</description>
		<content:encoded><![CDATA[<p>Very nice article! I was hoping this would provide a solution to my issue which similar but different. I am trying to stack two MDX datasets together, very similar to a sql Union. Can lookups be used for this purpose?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Russell</title>
		<link>http://blog.datainspirations.com/2010/04/07/sql-server-2008-r2-reporting-services-look-up-part-iii/comment-page-1/#comment-5703</link>
		<dc:creator>Russell</dc:creator>
		<pubDate>Wed, 26 Oct 2011 11:54:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.datainspirations.com/?p=107#comment-5703</guid>
		<description>Hi Marko

Can you let me know how you did that please.
Im really stuck.

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Marko</p>
<p>Can you let me know how you did that please.<br />
Im really stuck.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marko</title>
		<link>http://blog.datainspirations.com/2010/04/07/sql-server-2008-r2-reporting-services-look-up-part-iii/comment-page-1/#comment-3482</link>
		<dc:creator>Marko</dc:creator>
		<pubDate>Thu, 02 Jun 2011 17:56:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.datainspirations.com/?p=107#comment-3482</guid>
		<description>Never mind.  Figured it out by passing the lookupset values to a custom function to convert and summarize.</description>
		<content:encoded><![CDATA[<p>Never mind.  Figured it out by passing the lookupset values to a custom function to convert and summarize.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marko</title>
		<link>http://blog.datainspirations.com/2010/04/07/sql-server-2008-r2-reporting-services-look-up-part-iii/comment-page-1/#comment-3481</link>
		<dc:creator>Marko</dc:creator>
		<pubDate>Thu, 02 Jun 2011 17:35:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.datainspirations.com/?p=107#comment-3481</guid>
		<description>Anyway to Sum() the values returned?  I am looking to combine current year and last year sales into one tablix that are currently in different datasets.  Tried doing a:
=SUM(LookupSet(Fields!StateProvinceCode.Value,Fields!StateProvinceCode.Value, Fields!CustomerID.Value,”Dataset2″)). Didn&#039;t work.</description>
		<content:encoded><![CDATA[<p>Anyway to Sum() the values returned?  I am looking to combine current year and last year sales into one tablix that are currently in different datasets.  Tried doing a:<br />
=SUM(LookupSet(Fields!StateProvinceCode.Value,Fields!StateProvinceCode.Value, Fields!CustomerID.Value,”Dataset2″)). Didn&#8217;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stacia Misner</title>
		<link>http://blog.datainspirations.com/2010/04/07/sql-server-2008-r2-reporting-services-look-up-part-iii/comment-page-1/#comment-3440</link>
		<dc:creator>Stacia Misner</dc:creator>
		<pubDate>Fri, 27 May 2011 22:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.datainspirations.com/?p=107#comment-3440</guid>
		<description>Hi Mohamed,

Well, the example in the post shows how to get a count of the elements:

=LookupSet(Fields!StateProvinceCode.Value,Fields!StateProvinceCode.Value, Fields!CustomerID.Value,&quot;Dataset2&quot;).Length

And since the results is an array, we know that the count of elements less 1 is the index to the last element in the array. So to get the last element, you would use this expression. 

=LookupSet(Fields!StateProvinceCode.Value,Fields!StateProvinceCode.Value, Fields!CustomerID.Value,&quot;Dataset2&quot;)(LookupSet(Fields!StateProvinceCode.Value,Fields!StateProvinceCode.Value, Fields!CustomerID.Value,&quot;Dataset2&quot;).Length -1)

I hope that helps!  -- Stacia</description>
		<content:encoded><![CDATA[<p>Hi Mohamed,</p>
<p>Well, the example in the post shows how to get a count of the elements:</p>
<p>=LookupSet(Fields!StateProvinceCode.Value,Fields!StateProvinceCode.Value, Fields!CustomerID.Value,&#8221;Dataset2&#8243;).Length</p>
<p>And since the results is an array, we know that the count of elements less 1 is the index to the last element in the array. So to get the last element, you would use this expression. </p>
<p>=LookupSet(Fields!StateProvinceCode.Value,Fields!StateProvinceCode.Value, Fields!CustomerID.Value,&#8221;Dataset2&#8243;)(LookupSet(Fields!StateProvinceCode.Value,Fields!StateProvinceCode.Value, Fields!CustomerID.Value,&#8221;Dataset2&#8243;).Length -1)</p>
<p>I hope that helps!  &#8212; Stacia</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohamed</title>
		<link>http://blog.datainspirations.com/2010/04/07/sql-server-2008-r2-reporting-services-look-up-part-iii/comment-page-1/#comment-3330</link>
		<dc:creator>Mohamed</dc:creator>
		<pubDate>Mon, 16 May 2011 04:34:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.datainspirations.com/?p=107#comment-3330</guid>
		<description>Hi, The LookupSet returns number of elements. I want take the Last element of that. How to do that?
Please help me.

Thanks..</description>
		<content:encoded><![CDATA[<p>Hi, The LookupSet returns number of elements. I want take the Last element of that. How to do that?<br />
Please help me.</p>
<p>Thanks..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stacia Misner</title>
		<link>http://blog.datainspirations.com/2010/04/07/sql-server-2008-r2-reporting-services-look-up-part-iii/comment-page-1/#comment-720</link>
		<dc:creator>Stacia Misner</dc:creator>
		<pubDate>Mon, 15 Nov 2010 21:40:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.datainspirations.com/?p=107#comment-720</guid>
		<description>The lookup functions don&#039;t really perform a join in a T-SQL sense. All the work is performed on datasets after the query is performed. The behavior is more like a left join though because the results for dataset1 will display, although you might get an error if dataset2 doesn&#039;t have a match for the lookup. You can add some error-trapping to your expression to deal with that. Handling a full join might be possible with some creative implementation of lookup functions using a combination of expressions, but it&#039;s not handled natively by the lookup functions.</description>
		<content:encoded><![CDATA[<p>The lookup functions don&#8217;t really perform a join in a T-SQL sense. All the work is performed on datasets after the query is performed. The behavior is more like a left join though because the results for dataset1 will display, although you might get an error if dataset2 doesn&#8217;t have a match for the lookup. You can add some error-trapping to your expression to deal with that. Handling a full join might be possible with some creative implementation of lookup functions using a combination of expressions, but it&#8217;s not handled natively by the lookup functions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hDt</title>
		<link>http://blog.datainspirations.com/2010/04/07/sql-server-2008-r2-reporting-services-look-up-part-iii/comment-page-1/#comment-681</link>
		<dc:creator>hDt</dc:creator>
		<pubDate>Thu, 11 Nov 2010 03:21:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.datainspirations.com/?p=107#comment-681</guid>
		<description>hi,

are these Lookup / MultiLookup / LookupSet functions performing a left join?

i need to do the following.

dataset1 returns 3 columns.
dataset2 returns 3 columns.

2 of the 3 columns on each are &#039;primary keys&#039; to be matched, joined on.

i need to do a Full Join though, as i have values missing and/or present in both, so i want a full view across both datasets...

which option to use? is this possible..?

thanks !!</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>are these Lookup / MultiLookup / LookupSet functions performing a left join?</p>
<p>i need to do the following.</p>
<p>dataset1 returns 3 columns.<br />
dataset2 returns 3 columns.</p>
<p>2 of the 3 columns on each are &#8216;primary keys&#8217; to be matched, joined on.</p>
<p>i need to do a Full Join though, as i have values missing and/or present in both, so i want a full view across both datasets&#8230;</p>
<p>which option to use? is this possible..?</p>
<p>thanks !!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

