<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Luke Hayler - SQL Server developer &#187; Join()</title>
	<atom:link href="http://www.lukehayler.com/tag/join/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lukehayler.com</link>
	<description>A blog about Integration services, Reporting services, and the things that interest me</description>
	<lastBuildDate>Fri, 06 Aug 2010 10:19:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The JOIN() Function in SSRS</title>
		<link>http://www.lukehayler.com/2009/08/the-join-function-in-ssrs/</link>
		<comments>http://www.lukehayler.com/2009/08/the-join-function-in-ssrs/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 13:00:10 +0000</pubDate>
		<dc:creator>Luke Hayler</dc:creator>
				<category><![CDATA[Reporting Services]]></category>
		<category><![CDATA[SQLServerPedia Syndication]]></category>
		<category><![CDATA[Join()]]></category>
		<category><![CDATA[multi-valued parameter]]></category>
		<category><![CDATA[SSRS]]></category>

		<guid isPermaLink="false">http://www.lukehayler.com/?p=109</guid>
		<description><![CDATA[BOL’s description of the JOIN() Function: “Returns a string created by joining a number of substrings contained in an array.”. The syntax of the function is as follows:
=JOIN(List [,delimiter])
 
List – Required. One-dimensional array containing substrings to be joined
Delimiter – Optional. String character used to separate substrings. If omitted, a space “ “ will be [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://msdn.microsoft.com/en-us/library/yscc53h0(VS.85).aspx">BOL’s description of the JOIN() Function</a>: “Returns a string created by joining a number of substrings contained in an array.”. The syntax of the function is as follows:</p>
<p><strong>=JOIN(List [,delimiter])</strong></p>
<p><em> </em></p>
<p><strong><em>List</em></strong><em> – Required. One-dimensional array containing substrings to be joined</em></p>
<p><strong><em>Delimiter</em></strong><em> – Optional. String character used to separate substrings. If omitted, a space “ “ will be used.</em></p>
<p>So, the JOIN() Function concatenates an array’s values, using either a default space or the specified separator (for example, “, “) to separate the values.</p>
<p><strong>What are the practical uses of this function as it relates to Reporting Services?</strong></p>
<p>A common use of the function in Reporting Services is to display the values being used in a Multi-valued Parameter. You may for example have a report that has a parameter that filters Sales Regions. A requirement of the report is to display, in the header, the Sales Regions that the report is for. In the header of the report you would include the following expression:</p>
<p><strong><span style="color: #3366ff;">=”Monthly Sales Report, for Regions:  ” &amp; JOIN(Parameters!SalesRegion.Value, “, “)</span></strong></p>
<p>Previewing this in the report with the following regions selected from the SalesRegion Multi-Value Parameter:</p>
<ul>
<li>North America</li>
<li>South America</li>
<li>Southern Africa</li>
</ul>
<p>Will result in the following Header string:</p>
<p><strong> </strong></p>
<p style="padding-left: 30px;"><strong><span style="color: #3366ff;">Monthly Sales Report, for Regions:   North America, South America, Southern Africa</span></strong></p>
<p>I have mentioned this function here as I find it very useful and have used it on many occasions. The above use is only one of many, but for me, is the most common.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lukehayler.com/2009/08/the-join-function-in-ssrs/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
