<?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>BI &#8211; SQLpowered.com</title>
	<atom:link href="https://sqlpowered.com/category/bi/feed/" rel="self" type="application/rss+xml" />
	<link>https://sqlpowered.com</link>
	<description>SQL Server + BI</description>
	<lastBuildDate>Fri, 31 Dec 2021 20:42:59 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://sqlpowered.com/wp-content/uploads/2020/07/FavIcon-e1594067873682-99x100.png</url>
	<title>BI &#8211; SQLpowered.com</title>
	<link>https://sqlpowered.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Extracting Metadata from the Power BI Report File</title>
		<link>https://sqlpowered.com/extracting-metadata-from-the-power-bi-report-file/</link>
					<comments>https://sqlpowered.com/extracting-metadata-from-the-power-bi-report-file/#comments</comments>
		
		<dc:creator><![CDATA[Jan Dvořák]]></dc:creator>
		<pubDate>Sat, 19 Dec 2020 12:30:47 +0000</pubDate>
				<category><![CDATA[BI]]></category>
		<category><![CDATA[Power BI]]></category>
		<category><![CDATA[SSRS]]></category>
		<guid isPermaLink="false">https://sqlpowered.com/?p=4795</guid>

					<description><![CDATA[The more and more is Power BI used everywhere it&#8217;s starting to be really painful to incorporate it in any metadata management solution. This article is a result of 10 hours investigation on how to get metadata from Power BI files. To be honest, a lot of workarounds, community tools,...]]></description>
										<content:encoded><![CDATA[
<p>The more and more is Power BI used everywhere it&#8217;s starting to be really painful to incorporate it in any metadata management solution. This article is a result of 10 hours investigation on how to get metadata from Power BI files. To be honest, a lot of workarounds, community tools, and nearly zero support by Microsoft. Correct me if I&#8217;m wrong.</p>



<p>The original requirement was to extract metadata from more than five hundred Power BI reports deployed in on-premises <a href="https://powerbi.microsoft.com/en-us/report-server/">Power BI Report Server</a>. It&#8217;s not an issue to download all these reports to the local folder via a custom tool (I will publish one soon) or using the <a href="https://docs.microsoft.com/en-us/sql/reporting-services/developer/rest-api?view=sql-server-ver15" target="_blank" rel="noopener">Report Server REST API</a>. But this API doesn&#8217;t expose metadata contained inside the Power BI report file (*.pbix). And opposite there is nothing directly inside the Power BI Desktop tool to export metadata in some human-readable or further processing suitable format. A little bit more (means not a full metadata-export solution) can be realized with the <a href="https://docs.microsoft.com/en-us/rest/api/power-bi/" target="_blank" rel="noopener">Power BI Cloud Service API</a> but this isn&#8217;t an option for on-premises running Power BI Report Server.</p>



<p>Let&#8217;s concentrate on the *.pbix file itself and keep the API option to another post.</p>



<p>If I&#8217;m talking about Power BI &#8220;metadata&#8221; I mean everything that is hidden inside the report: data sources, tables, columns, measures, relations, visuals used, etc. &#8220;External&#8221; metadata like where the report is sitting on the Report Server, how often it is used, and who can access it that&#8217;s easy to collect directly from the Report Server. But users, especially data analysts, DWH developers, and metadata solution specialists are more interested to see what is referenced from the DWH inside the Power BI report, how the whole data lineage looks like, how measures are calculated and relations used.</p>



<p>There basically two ways how to get this metadata:</p>



<ul class="wp-block-list">
<li>via opening the *.pbix file in Power BI and connecting to the underlying SSAS service hosting an instance of the Power BI model</li>
<li>extracting the *.pbix file content and processing various files (*.json) from it.</li>
</ul>



<p>I don&#8217;t want to describe the SSAS option there because we have realized this will require a significant amount of time to automate it somehow for hundreds of reports. It may also need dedicated hardware to process report changes in time. But still, it&#8217;s a valid solution and you can view more on it there:</p>



<ul class="wp-block-list">
<li><a href="https://www.biinsight.com/connect-to-power-bi-desktop-model-from-excel-and-ssms/" target="_blank" rel="noopener">Connect to Power BI Desktop Model from Excel and SSMS</a></li>
<li><a href="https://www.youtube.com/watch?v=rYlIp1PrBcA" target="_blank" rel="noopener">Document your Power BI model with DAX Studio</a></li>
</ul>



<h3 class="wp-block-heading">Power BI files (*.pbix, *.pbit)</h3>



<p>The *.pbix file is the main file of the Power BI report. It contains all metadata and also all data imported inside the model using the Import option for source queries. *.pbit is the Power BI Template file. It has in general the same content regarding metadata but it doesn&#8217;t contain any data imported from data sources like the *.pbix file. Both files are in fact *.zip files with other files packed inside. So rename them with *.zip extension and review the content.</p>



<figure class="wp-block-image"><img fetchpriority="high" decoding="async" class="wp-image-4820" src="https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_01.png" alt="" width="697" height="190" srcset="https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_01.png 1476w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_01-300x82.png 300w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_01-1024x279.png 1024w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_01-150x41.png 150w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_01-768x209.png 768w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_01-360x98.png 360w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_01-160x44.png 160w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_01-320x87.png 320w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_01-520x142.png 520w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_01-720x196.png 720w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_01-980x267.png 980w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_01-1320x360.png 1320w" sizes="(max-width: 697px) 100vw, 697px" /></figure>



<p>It looks like that both files have the same content. But if you will review it twice there is a significant difference in how the DataModel is stored. Inside the *.pbix file is the model stored using Xpress9 compression to make the file much smaller because it contains data too. Inside the *.pbit template file it is an extracted DataModelShema in JSON format instead of it.</p>



<figure class="wp-block-image"><img decoding="async" class="wp-image-4822" src="https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_03.png" alt="" width="647" height="280" srcset="https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_03.png 1318w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_03-300x130.png 300w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_03-1024x443.png 1024w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_03-150x65.png 150w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_03-768x332.png 768w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_03-360x156.png 360w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_03-160x69.png 160w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_03-320x138.png 320w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_03-520x225.png 520w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_03-720x311.png 720w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_03-980x424.png 980w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_03-1156x500.png 1156w" sizes="(max-width: 647px) 100vw, 647px" /></figure>



<p>The Xpress9 compression is my point of view the main issue of why it&#8217;s so complicated to get the metadata from the Power BI. I did several attempts to extract the file playing with a lot of stuff from C++ libraries thru Python scripts, 7z, ending inside UWP Windows. Compression namespace but without success. All these tools can work with the original Express only compression algorithm which is a part of the Windows encryption API for a long time. But I really didn&#8217;t found anything to extract the new Xpress9 algorithm.</p>



<p>What does it mean? Simple answer: Without the ability to decompress the Xpress9 DataModel file only two options are in-game on how to get the Power BI metadata from the file:</p>



<ul class="wp-block-list">
<li>via connection to running Power BI SSAS instance (as described above)</li>
<li>or via the option to save Power BI Template in the Power BI Desktop application and processing the *.pbit file.</li>
</ul>



<p>Saving Power BI files as a template looks to be a simple solution at first look. But let&#8217;s go back to the initial requirement: process metadata for more than five hundred Power BI reports deployed to Report Server or even tens of files stored somewhere locally. There is no option to call Power BI from the command line to do this conversion in the background or something like that. It really means that every single Power bI report must be opened in Power BI Desktop and manually resaved as a Power BI Template file.</p>



<p>There is one solution in this <a href="https://www.youtube.com/watch?v=s3ivC07XKPc" target="_blank" rel="noopener">video</a>. We can use Power Automate Desktop to capture the manual conversion from *.pbix to *.pbit and then replay it automatically for other *.pbix file in the folder. This solution may be suitable for the initial conversion of multiple *.pbix files to templates but it may be hard to implement it on regular basis to the customer&#8217;s infrastructure. It&#8217;s still a workaround solution only.</p>



<h2 class="wp-block-heading">The *.pbit file content</h2>



<p>What is inside the Power BI Report file is pretty well described in this <a href="https://www.fourmoo.com/2017/05/02/what-makes-up-a-power-bi-desktop-pbix-file/" target="_blank" rel="noreferrer noopener">blog post</a>.</p>



<p>The DataMashup file, containing Query Editor metadata, may be extracted with 7z:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">7z x DataMashup -o".\DataMashupDir\" -aoa</pre>



<p><img decoding="async" class="alignnone  wp-image-4829" src="https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_04.png" alt="" width="359" height="315" srcset="https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_04.png 886w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_04-300x263.png 300w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_04-114x100.png 114w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_04-768x674.png 768w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_04-360x316.png 360w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_04-160x140.png 160w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_04-320x281.png 320w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_04-279x245.png 279w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_04-387x340.png 387w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_04-512x450.png 512w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_04-569x500.png 569w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_04-520x457.png 520w" sizes="(max-width: 359px) 100vw, 359px" /></p>



<p>It&#8217;s reporting some warnings but looks like all files are extracted properly:</p>
<p><img loading="lazy" decoding="async" class="alignnone  wp-image-4830" src="https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_05.png" alt="" width="270" height="79" srcset="https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_05.png 457w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_05-300x88.png 300w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_05-150x44.png 150w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_05-360x106.png 360w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_05-160x47.png 160w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_05-320x94.png 320w" sizes="auto, (max-width: 270px) 100vw, 270px" /></p>
<p>For working with the DataModelSchema JSON file inside the *.pbit file there is one great tool available: <a href="https://tabulareditor.com">https://tabulareditor.com</a>. You can use it to open the *.pbit file directly and review its metadata:</p>
<p><img loading="lazy" decoding="async" class="alignnone  wp-image-4831" src="https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_Tabular_Editor_06.png" alt="" width="514" height="448" srcset="https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_Tabular_Editor_06.png 1331w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_Tabular_Editor_06-300x262.png 300w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_Tabular_Editor_06-1024x893.png 1024w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_Tabular_Editor_06-115x100.png 115w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_Tabular_Editor_06-768x670.png 768w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_Tabular_Editor_06-360x314.png 360w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_Tabular_Editor_06-160x140.png 160w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_Tabular_Editor_06-320x279.png 320w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_Tabular_Editor_06-281x245.png 281w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_Tabular_Editor_06-390x340.png 390w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_Tabular_Editor_06-516x450.png 516w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_Tabular_Editor_06-573x500.png 573w, https://sqlpowered.com/wp-content/uploads/2020/12/Extract_Power_BI_Report_Metadata_Tabular_Editor_06-520x454.png 520w" sizes="auto, (max-width: 514px) 100vw, 514px" /></p>
<p>It&#8217;s doing a great job in parsing the DataModelSchema JSON and it is open source, so you can get inspired in the source a lot on what is inside the JSON.</p>
<p>For the live connection to the running Power BI model, <a href="https://daxstudio.org" target="_blank" rel="noopener">DAX Studio</a> is the ultimate solution.</p>
<h3>Conclusion</h3>
<p>Without the Xpress9 issue, it will be easy to have some simple solution to download *.pbix files from <em>dbo.Catalog</em> table in Report Server, convert it to ZIP, extract DataModel JSON schema, parse it, and upload it to metadata catalog. Conversion to *.pbit makes it cumbersome and workarounds are complicated.</p>



<p><strong>Further reading:</strong></p>



<ul class="wp-block-list">
<li><a href="https://cran.r-project.org/web/packages/pbixr/vignettes/explore.html" target="_blank" rel="noreferrer noopener">R library </a>to get Power BI metadata (using the SSAS connection solution but with interesting info about DataModel file)</li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://sqlpowered.com/extracting-metadata-from-the-power-bi-report-file/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>Reporting Services samples for AdventureWorks2017</title>
		<link>https://sqlpowered.com/reporting-services-samples-for-adventureworks2017/</link>
					<comments>https://sqlpowered.com/reporting-services-samples-for-adventureworks2017/#respond</comments>
		
		<dc:creator><![CDATA[Jan Dvořák]]></dc:creator>
		<pubDate>Wed, 26 Aug 2020 07:17:31 +0000</pubDate>
				<category><![CDATA[BI]]></category>
		<guid isPermaLink="false">https://sqlpowered.com/?p=4615</guid>

					<description><![CDATA[AdventureWorks is the sample database for SQL Server. It is updated with every new release of SQL Server major version and you can download it from its official location. Samples for SQL Server Reporting Services were built against this database a long time ago and the most recent version can...]]></description>
										<content:encoded><![CDATA[<p>AdventureWorks is the sample database for SQL Server. It is updated with every new release of SQL Server major version and you can download it from its <a href="https://docs.microsoft.com/en-us/sql/samples/adventureworks-install-configure?view=sql-server-ver15&amp;tabs=ssms" target="_blank" rel="noopener noreferrer">official location</a>. Samples for SQL Server Reporting Services were built against this database a long time ago and the most recent version can be found on <a href="https://archive.codeplex.com/?p=msftrsprodsamples" target="_blank" rel="noopener noreferrer">Codeplex archive</a>. If you will check the data sources it&#8217;s called AventureWorks2008 &#8211; yes, it&#8217;s that old. Look like there is nothing newer regarding SSRS samples. That&#8217;s the reason why I have updated this old solution to work with the AdventureWorks2017 database and you can download it later in this post.</p>
<p>The original solution was modified this way:</p>
<ul>
<li>upgraded to VS 2019</li>
<li>changed Data Source to AdventureWorks2017 and added a new one for AdventureWorksDW2017</li>
<li>renamed reports to remove &#8220;2008&#8221; from the name</li>
<li>updated default values for parameters (dates) to match AdventureWorks2017 sample data</li>
<li>created new report Customer Internet Sales to have also one sample report for AdventureWorksDW2017 database</li>
</ul>
<p>Download: <a href="https://sqlpowered.com/wp-content/uploads/2020/08/AdventureWorks2017_SSRS_Samples.zip">AdventureWorks2017_SSRS_Samples.zip</a></p>
<p>Solution:<br />
<img loading="lazy" decoding="async" class="alignnone wp-image-4618" src="https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_1.png" alt="" width="295" height="243" srcset="https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_1.png 653w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_1-300x247.png 300w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_1-122x100.png 122w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_1-110x90.png 110w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_1-360x296.png 360w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_1-160x132.png 160w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_1-320x263.png 320w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_1-298x245.png 298w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_1-413x340.png 413w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_1-547x450.png 547w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_1-608x500.png 608w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_1-520x428.png 520w" sizes="auto, (max-width: 295px) 100vw, 295px" /></p>
<p>The report in the VS designer:<br />
:<img loading="lazy" decoding="async" class="alignnone wp-image-4619" src="https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_2.png" alt="" width="696" height="396" srcset="https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_2.png 1980w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_2-300x171.png 300w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_2-1024x583.png 1024w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_2-150x85.png 150w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_2-768x437.png 768w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_2-1536x874.png 1536w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_2-360x205.png 360w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_2-160x91.png 160w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_2-320x182.png 320w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_2-430x245.png 430w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_2-597x340.png 597w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_2-791x450.png 791w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_2-878x500.png 878w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_2-520x296.png 520w" sizes="auto, (max-width: 696px) 100vw, 696px" /></p>
<p>Samples uploaded to Reports browser:<br />
<img loading="lazy" decoding="async" class="alignnone wp-image-4620" src="https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_3.png" alt="" width="538" height="342" srcset="https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_3.png 1330w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_3-300x191.png 300w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_3-1024x651.png 1024w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_3-150x95.png 150w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_3-768x489.png 768w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_3-360x229.png 360w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_3-160x102.png 160w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_3-320x204.png 320w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_3-385x245.png 385w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_3-535x340.png 535w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_3-707x450.png 707w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_3-786x500.png 786w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_3-520x331.png 520w" sizes="auto, (max-width: 538px) 100vw, 538px" /></p>
<p>Sample report detail:<br />
<img loading="lazy" decoding="async" class="alignnone wp-image-4621" src="https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_4.png" alt="" width="532" height="381" srcset="https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_4.png 1407w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_4-300x214.png 300w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_4-1024x732.png 1024w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_4-140x100.png 140w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_4-768x549.png 768w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_4-360x257.png 360w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_4-160x114.png 160w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_4-320x229.png 320w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_4-343x245.png 343w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_4-476x340.png 476w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_4-629x450.png 629w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_4-699x500.png 699w, https://sqlpowered.com/wp-content/uploads/2020/08/SSRS-Sample-Reports-AdventureWorks2017_4-520x372.png 520w" sizes="auto, (max-width: 532px) 100vw, 532px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sqlpowered.com/reporting-services-samples-for-adventureworks2017/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Add Reporting, Analysis and Integration Services Project Types to Visual Studio 2019</title>
		<link>https://sqlpowered.com/add-reporting-analysis-and-integration-services-project-types-to-visual-studio-2019/</link>
					<comments>https://sqlpowered.com/add-reporting-analysis-and-integration-services-project-types-to-visual-studio-2019/#respond</comments>
		
		<dc:creator><![CDATA[Jan Dvořák]]></dc:creator>
		<pubDate>Tue, 20 Aug 2019 07:24:42 +0000</pubDate>
				<category><![CDATA[BI]]></category>
		<category><![CDATA[tools]]></category>
		<guid isPermaLink="false">https://sqlpowered.com/?p=3332</guid>

					<description><![CDATA[If you have installed Visual Studio 2019 you are probably missing project type for Microsoft BI stack like Reporting Services Project Type, Analysis and Integration Services project type. You are surprised because during the installation you have setup also SQL Server Data Tools (SSDT) to be installed. Then you have...]]></description>
										<content:encoded><![CDATA[<p>If you have installed Visual Studio 2019 you are probably missing project type for Microsoft BI stack like Reporting Services Project Type, Analysis and Integration Services project type. You are surprised because during the installation you have setup also SQL Server Data Tools (SSDT) to be installed. Then you have searched for SSDT in google discovering that latest version was published only for Visual Studio 2017.</p>
<p>There was a major change in delivering BI projects to Visual Studio 2019 and later. These projects are delivered as standalone Visual Studio extension and the SSDT installation from Visual Studio installer contains only SQL Server project type and some related tools.</p>
<p>It is still correct to install Visual Studion2019 with SSTD selected like in this picture:</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-3334" src="https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_01.png" alt="" width="1093" height="475" srcset="https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_01.png 1144w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_01-150x65.png 150w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_01-300x130.png 300w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_01-768x334.png 768w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_01-1024x445.png 1024w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_01-160x70.png 160w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_01-320x139.png 320w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_01-520x226.png 520w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_01-720x313.png 720w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_01-980x426.png 980w" sizes="auto, (max-width: 1093px) 100vw, 1093px" /></p>
<p>But after that is done you should also complete installation of BI stack project types:</p>
<p><a href="https://marketplace.visualstudio.com/items?itemName=ProBITools.MicrosoftReportProjectsforVisualStudio">Download Reporting Services project type</a></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3335" src="https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_02.png" alt="" width="595" height="208" srcset="https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_02.png 595w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_02-150x52.png 150w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_02-300x105.png 300w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_02-160x56.png 160w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_02-320x112.png 320w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_02-520x182.png 520w" sizes="auto, (max-width: 595px) 100vw, 595px" /></p>
<p><a href="https://marketplace.visualstudio.com/items?itemName=ProBITools.MicrosoftAnalysisServicesModelingProjects">Download Analysis Services project type</a></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3337" src="https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_04.png" alt="" width="601" height="202" srcset="https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_04.png 601w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_04-150x50.png 150w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_04-300x101.png 300w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_04-160x54.png 160w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_04-320x108.png 320w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_04-520x175.png 520w" sizes="auto, (max-width: 601px) 100vw, 601px" /></p>
<p><a href="https://marketplace.visualstudio.com/items?itemName=SSIS.SqlServerIntegrationServicesProjects">Download Integration Services project type</a></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3336" src="https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_03.png" alt="" width="776" height="200" srcset="https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_03.png 776w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_03-150x39.png 150w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_03-300x77.png 300w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_03-768x198.png 768w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_03-160x41.png 160w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_03-320x82.png 320w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_03-520x134.png 520w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_03-720x186.png 720w" sizes="auto, (max-width: 776px) 100vw, 776px" /></p>
<p>After installation will finish you can start Visual Studio 2019 and see that all your missing project types are there like in VS 2017:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3338" src="https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_05.png" alt="" width="527" height="791" srcset="https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_05.png 527w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_05-67x100.png 67w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_05-200x300.png 200w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_05-107x160.png 107w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_05-213x320.png 213w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_05-163x245.png 163w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_05-227x340.png 227w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_05-300x450.png 300w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_05-333x500.png 333w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_05-520x780.png 520w" sizes="auto, (max-width: 527px) 100vw, 527px" /></p>
<p>Another important thing to remember is that with this different kind of installation is coming different update process: No more searching for SSDT updates on the web. You will receive notifications about updates for MS BI projects directly in Visual Studio:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3340" src="https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_06.png" alt="" width="890" height="443" srcset="https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_06.png 890w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_06-150x75.png 150w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_06-300x149.png 300w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_06-768x382.png 768w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_06-160x80.png 160w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_06-320x159.png 320w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_06-492x245.png 492w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_06-683x340.png 683w, https://sqlpowered.com/wp-content/uploads/2019/10/Visual_Studio_2019_Add_Missing_Analysis_Reporting_Integration_Services_Projects_06-520x259.png 520w" sizes="auto, (max-width: 890px) 100vw, 890px" /></p>
<p>This can cause a few issues when using source control like Azure DevOps across the team. If one the team members has enabled automatic updates installation in Visual Studio it can easily happen, that he will upgrade extensions which means that BI projects version will also be upgraded. After he will commit and other team members without updates to be installed will get the latest their project will be marked as Invalid (unsupported) and they must do an update to fix that issue. In a really large team it&#8217;s better to switch automatic updates off and manage this process centrally.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sqlpowered.com/add-reporting-analysis-and-integration-services-project-types-to-visual-studio-2019/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Power BI Report Server release schedule</title>
		<link>https://sqlpowered.com/power-bi-report-server-release-schedule/</link>
					<comments>https://sqlpowered.com/power-bi-report-server-release-schedule/#respond</comments>
		
		<dc:creator><![CDATA[Jan Dvořák]]></dc:creator>
		<pubDate>Wed, 20 Feb 2019 21:59:09 +0000</pubDate>
				<category><![CDATA[BI]]></category>
		<category><![CDATA[Power BI]]></category>
		<guid isPermaLink="false">https://sqlpowered.com/?p=3306</guid>

					<description><![CDATA[Who is using Power BI Report Server in regular production with many users creating and publishing reports in Power BI Desktop is facing one crucial issue: there is regular monthly release for Power BI desktop but releases for Report Server for Power BI are coming unexpectedly even Microsoft has announced...]]></description>
										<content:encoded><![CDATA[<p>Who is using Power BI Report Server in regular production with many users creating and publishing reports in Power BI Desktop is facing one crucial issue: there is regular monthly release for Power BI desktop but releases for Report Server for Power BI are coming unexpectedly even Microsoft has announced it should be every 4 months. So it&#8217;s then really hard to align users with that and answer their question when exactly they can use this new cool Power BI Desktop feature also in their Power BI Desktop for Report Server version.</p>
<p>Starting 2019 is should be much easier to answer the question because Microsoft has announced <a href="https://powerbi.microsoft.com/cs-cz/blog/power-bi-report-server-release-timing-update/">regular release scheduling for Power BI Report Server</a>: <em>Starting in 2019, we will be shipping a new release of Power BI Report Server in January, May and September each year.</em></p>
<p>This should help us properly to plan for that, inform our users in advance and schedule updates for Power BI Desktop for Report Server to be updated on time.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sqlpowered.com/power-bi-report-server-release-schedule/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Power BI Helper</title>
		<link>https://sqlpowered.com/power-bi-helper/</link>
					<comments>https://sqlpowered.com/power-bi-helper/#respond</comments>
		
		<dc:creator><![CDATA[Jan Dvořák]]></dc:creator>
		<pubDate>Sun, 06 Jan 2019 18:44:12 +0000</pubDate>
				<category><![CDATA[BI]]></category>
		<category><![CDATA[Power BI]]></category>
		<guid isPermaLink="false">https://sqlpowered.com/?p=2866</guid>

					<description><![CDATA[Power BI Helper is a smart tool that allows us to analyze Power BI Desktop files or connect to the model running inside the Power BI Desktop instance and check various performance-related statistics or metadata. In the latest major update released in December 2019, it brings a huge list of...]]></description>
										<content:encoded><![CDATA[<p><a href="http://radacad.com/power-bi-helper" target="_blank" rel="noopener noreferrer">Power BI Helper</a> is a smart tool that allows us to analyze Power BI Desktop files or connect to the model running inside the Power BI Desktop instance and check various performance-related statistics or metadata.</p>
<p>In the latest major update released in <a href="https://radacad.com/power-bi-helper-december-2019-feature-summary" target="_blank" rel="noopener noreferrer">December 2019</a>, it brings a huge list of new features like pages, visuals and bookmarks metadata available, visual comparer, visualization tree, the reverse dependency tree, DMV execution page, and dependant calculations for tables and columns with many more features.</p>
<p>The most liked feature I&#8217;m using is the option to perform an in-depth review of how data are spread in Power BI *.pbix file before I will distribute them to the end-user. Usually, there is a lot of ballast from the development process consuming the memory and affecting performance. Using Power bI Helper I can easily identify such cases and remove obsolete data from the file and compact it for delivery and performance. The file compaction ratio can be significant. Check out more on <a href="http://radacad.com/find-the-most-expensive-columns-for-performance-tuning-bookmarks-and-more-with-power-bi-helper-version-november-2018" target="_blank" rel="noopener noreferrer">radacad.com</a> blog.</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-4483" src="https://sqlpowered.com/wp-content/uploads/2019/01/Power-BI-Helper-Analyze-File-Size.png" alt="" width="465" height="546" srcset="https://sqlpowered.com/wp-content/uploads/2019/01/Power-BI-Helper-Analyze-File-Size.png 1132w, https://sqlpowered.com/wp-content/uploads/2019/01/Power-BI-Helper-Analyze-File-Size-256x300.png 256w, https://sqlpowered.com/wp-content/uploads/2019/01/Power-BI-Helper-Analyze-File-Size-873x1024.png 873w, https://sqlpowered.com/wp-content/uploads/2019/01/Power-BI-Helper-Analyze-File-Size-85x100.png 85w, https://sqlpowered.com/wp-content/uploads/2019/01/Power-BI-Helper-Analyze-File-Size-768x901.png 768w, https://sqlpowered.com/wp-content/uploads/2019/01/Power-BI-Helper-Analyze-File-Size-360x422.png 360w, https://sqlpowered.com/wp-content/uploads/2019/01/Power-BI-Helper-Analyze-File-Size-136x160.png 136w, https://sqlpowered.com/wp-content/uploads/2019/01/Power-BI-Helper-Analyze-File-Size-273x320.png 273w, https://sqlpowered.com/wp-content/uploads/2019/01/Power-BI-Helper-Analyze-File-Size-209x245.png 209w, https://sqlpowered.com/wp-content/uploads/2019/01/Power-BI-Helper-Analyze-File-Size-290x340.png 290w, https://sqlpowered.com/wp-content/uploads/2019/01/Power-BI-Helper-Analyze-File-Size-384x450.png 384w, https://sqlpowered.com/wp-content/uploads/2019/01/Power-BI-Helper-Analyze-File-Size-426x500.png 426w, https://sqlpowered.com/wp-content/uploads/2019/01/Power-BI-Helper-Analyze-File-Size-520x610.png 520w" sizes="auto, (max-width: 465px) 100vw, 465px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sqlpowered.com/power-bi-helper/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Jak zakázat přihlašovací dialog při spuštění Power BI Desktop?</title>
		<link>https://sqlpowered.com/power-bi-desktop-disable-sign-up-form/</link>
					<comments>https://sqlpowered.com/power-bi-desktop-disable-sign-up-form/#respond</comments>
		
		<dc:creator><![CDATA[Jan Dvořák]]></dc:creator>
		<pubDate>Sun, 06 Jan 2019 12:07:19 +0000</pubDate>
				<category><![CDATA[BI]]></category>
		<category><![CDATA[Power BI]]></category>
		<guid isPermaLink="false">https://sqlpowered.com/?p=2855</guid>

					<description><![CDATA[Při spuštění Power BI Desktop nám stále vyskakuje přihlašovací formulář, který nás vybízí k registraci do powerbi.com nebo k přihlášení k již existujícímu účtu. Dialogy sice můžeme odklikat tím, že na prvním z nich zvolíme přihlášení k existujícímu účtu a následně přihlašovací formulář stornujeme, což ovšem není určitě ideální scénář,...]]></description>
										<content:encoded><![CDATA[<p>Při spuštění Power BI Desktop nám stále vyskakuje přihlašovací formulář, který nás vybízí k registraci do powerbi.com nebo k přihlášení k již existujícímu účtu. Dialogy sice můžeme odklikat tím, že na prvním z nich zvolíme přihlášení k existujícímu účtu a následně přihlašovací formulář stornujeme, což ovšem není určitě ideální scénář, kdy Power BI Desktop distribuujete většímu množství uživatelům v podnikovém prostředí, které nevyužívá powerbi.com.</p>
<p><span id="more-2855"></span></p>
<p>Pomocí <a href="https://docs.microsoft.com/en-us/power-bi/desktop-admin-sign-in-form" target="_blank" rel="noopener noreferrer">zde</a> popsaného postupu je možné zakázat zobrazování Sign-up formuláře při spuštění Power BI Desktop na úrovni registru, tedy rámci podnikového prostředí hromadně pomocí distribuce příslušné Policy.</p>
<p>Při instalaci Power BI Desktop na WINDOWS 10 uvedený klíč v registru zcela chybí, proto je přikládám zde:</p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Power BI Desktop] &#8220;ShowLeadGenDialog&#8221;=dword:00000000</p>
<p>Stačí jej vložit do souboru s příponou *.reg a spustit.</p>
<p>Po aplikaci se Power BI Desktop spustí rovnou takto:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-2858" src="https://sqlpowered.com/wp-content/uploads/2019/01/Power_BI_Desktop_Without_Sign_Up_Form.png" alt="" width="1919" height="1042" srcset="https://sqlpowered.com/wp-content/uploads/2019/01/Power_BI_Desktop_Without_Sign_Up_Form.png 1919w, https://sqlpowered.com/wp-content/uploads/2019/01/Power_BI_Desktop_Without_Sign_Up_Form-150x81.png 150w, https://sqlpowered.com/wp-content/uploads/2019/01/Power_BI_Desktop_Without_Sign_Up_Form-300x163.png 300w, https://sqlpowered.com/wp-content/uploads/2019/01/Power_BI_Desktop_Without_Sign_Up_Form-768x417.png 768w, https://sqlpowered.com/wp-content/uploads/2019/01/Power_BI_Desktop_Without_Sign_Up_Form-1024x556.png 1024w, https://sqlpowered.com/wp-content/uploads/2019/01/Power_BI_Desktop_Without_Sign_Up_Form-160x87.png 160w, https://sqlpowered.com/wp-content/uploads/2019/01/Power_BI_Desktop_Without_Sign_Up_Form-320x174.png 320w, https://sqlpowered.com/wp-content/uploads/2019/01/Power_BI_Desktop_Without_Sign_Up_Form-451x245.png 451w, https://sqlpowered.com/wp-content/uploads/2019/01/Power_BI_Desktop_Without_Sign_Up_Form-626x340.png 626w, https://sqlpowered.com/wp-content/uploads/2019/01/Power_BI_Desktop_Without_Sign_Up_Form-829x450.png 829w, https://sqlpowered.com/wp-content/uploads/2019/01/Power_BI_Desktop_Without_Sign_Up_Form-921x500.png 921w, https://sqlpowered.com/wp-content/uploads/2019/01/Power_BI_Desktop_Without_Sign_Up_Form-520x282.png 520w" sizes="auto, (max-width: 1919px) 100vw, 1919px" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sqlpowered.com/power-bi-desktop-disable-sign-up-form/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Stručný přehled Power BI služeb a nástrojů</title>
		<link>https://sqlpowered.com/strucny-prehled-power-bi-sluzeb-a-nastroju/</link>
					<comments>https://sqlpowered.com/strucny-prehled-power-bi-sluzeb-a-nastroju/#respond</comments>
		
		<dc:creator><![CDATA[Jan Dvořák]]></dc:creator>
		<pubDate>Fri, 20 May 2016 20:47:58 +0000</pubDate>
				<category><![CDATA[BI]]></category>
		<category><![CDATA[Power BI]]></category>
		<guid isPermaLink="false">https://sqlpowered.com/?p=1887</guid>

					<description><![CDATA[Power BI neboli Power Business Inteligence je sada nástrojů a služeb z dílny Microsoftu určená k rychlé a efektivní analýze dat z různých zdrojů a graficky působivé prezentaci získaných výsledků. Důležitým konceptem, který stojí na pozadí, je &#8220;Self-service BI&#8221;, velmi volně přeloženo &#8220;udělej si sám&#8221;, což v praxi znamená, že...]]></description>
										<content:encoded><![CDATA[<p>Power BI neboli Power Business Inteligence je sada nástrojů a služeb z dílny Microsoftu určená k rychlé a efektivní analýze dat z různých zdrojů a graficky působivé prezentaci získaných výsledků. Důležitým konceptem, který stojí na pozadí, je &#8220;Self-service BI&#8221;, velmi volně přeloženo &#8220;udělej si sám&#8221;, což v praxi znamená, že nástroje Power BI by nám měly umožnit stát se plnohodnotnými datovými analytiky a učinit nás co nejvíce nezávislými na vývojářích, firemním IT nebo externím dodavateli, což byly ještě několik let zpět v podstatě jediné možnosti, jak pracovat se složitějšími nebo objemnějšími daty, kde již Excel nebyl to úplně ideální řešení. Samozřejmě to neznamená, že by odzvonilo olapovým kostkám nebo Reporting Services. Právě naopak: Power BI nástroje umožňují uživatelům přistupovat ke kostkám a podobným datovým zdrojů a vytvářet jednoduše atraktivní reporty a vývojáři se mohou více soustředit na tvorbu datových zdrojů a řešit komplexní problémy, zatímco uživatelé si dokáží mnohá data načíst sami a provést efektivní analýzu a vizualizace bez další asistence. V článku se seznámíme se základními nástroji a službami z rodiny Power BI včetně jejich cloudové verze.<span id="more-1887"></span></p>
<p>PowerBI služby a nástroje můžeme rozdělit do tří velkých skupin:</p>
<ul>
<li><strong>www.powerbi.com</strong> &#8211; cloudová služba, umožňující jak datovou analýzu, tak publikování reportů z desktopových a mobilních aplikací, sdílení dat a spoustu dalších funkcionality, které se typicky ke cloudovým službám vážou.</li>
<li><strong>Power BI Desktop</strong> &#8211; plnohodnotná desktopová aplikace pro snadné vytváření a publikování graficky pokročilých reportů. Obsahuje následující moduly:
<ul>
<li><em>Power Query</em>
<ul>
<li>Pokročilý nástroj k extrakci dat z velkého množství podporovaných datových zdrojů a jejich transformaci pomocí jazyka M</li>
</ul>
</li>
<li><em>Power Pivot</em>
<ul>
<li>In-memory nástroj pro datové modelování, práci s relacemi, agregacemi a výrazy.</li>
</ul>
</li>
<li><em>Power View</em>
<ul>
<li>Interaktivní nástroj pro vizualizaci dat se širokou podporou různých vizuálních prvků a jejich vzájemnou interakci.</li>
</ul>
</li>
</ul>
</li>
<li><strong>Power BI doplňky pro Excel</strong>
<ul>
<li>Excel je stále primárním nástrojem pro datovou analýzu a doplňky, které je možné v něm aktivovat nebo jsou jeho nativní součástí od verze 2016, jej vybavují velmi podobnou funkcionalitou, jakou nabízí Power BI Dektop, a přinášejí i některé pokročilé funkce, které pro změnu v Power BI Desktop dostupné nejsou.</li>
<li><em>Power Pivot</em>
<ul>
<li>Umožňuje přímo v Excelu vytvářet komplexní datové modely s relacemi, hierarchiemi, pokročilými agregacemi a výrazy.</li>
<li>Data v modelu jsou zpracovávána přímo v paměti (xVelocity, Vertipaq engine) a můžeme dotazovat řádově větší objemy dat mnohem efektivněji, než jsou-li data uložena v listech</li>
</ul>
</li>
<li><em>Power Query</em>
<ul>
<li>Samostatný plugin pro vytváření pokročilých dotazů z nejrůznějších datových zdrojů &#8211; orientován na ETL proces.</li>
<li>Od verze Excel 2016 již není nutné instalovat plugin samostatně a Power Query je přímo součástí záložky Data.</li>
<li>Podporuje široké množství datových zdrojů od SQL Serveru, Analytických služeb, Sharepoint, XML až po Facebook nebo Google Analytics.</li>
</ul>
</li>
<li><em>Power View</em>
<ul>
<li>Nástroj pro vytváření graficky působivých a především interaktivních reportů nad různými datovými zdroji.</li>
</ul>
</li>
<li><em>Power Map</em>
<ul>
<li>Nástroj pro rychlé a jednoduché zobrazování dat v mapách a mapových grafech podle geografických údajů z datového zdroje.</li>
<li>V Office 2016 přejmenováno na 3D Maps (ale stále dostupné jako COM doplněk PowerMap)</li>
</ul>
</li>
</ul>
</li>
<li><strong>Power BI Report Server</strong>
<ul>
<li>Speciální edice Microsoft Reporting Services, která umožňuje zobrazovat soubory vytvořené pomocí Power BI Desktop v on-premise prostředí stejně jako klasických reporty SSRS (paginated reports).</li>
<li>Pro tvorbu reportů vyžaduje speciální edici Power BI Desktop for Report Server.</li>
</ul>
</li>
<li><strong>Power BI Mobile Apps</strong>
<ul>
<li>Mobilní aplikace pro zobrazování Power BI sestav na platformách Android, Apple či Windows Mobile</li>
</ul>
</li>
</ul>
<p>V praxi se můžeme setkat ještě s produktem pod označením &#8220;Power BI for Office 365&#8221;, jehož podpora ale byla od 31.12.2015 omezena a od 31.3.2016 byl definitivně označen za zastaralý. Aktivním předplatitelům byla nabídnuta možnost přejít na Power BI Pro službu a podrobnosti najdeme v článku <a href="https://powerbi.microsoft.com/en-us/documentation/powerbi-admin-migrating-to-the-new-power-bi-experience/">Migrating to the new Power BI experience</a>.</p>
<p><strong>Cena</strong></p>
<p>Pokud se bavíme o ceně za Power BI, máme na mysli především její cloudovou verzi a řešení pro on-premise(Power BI Report Server) . Power BI Desktop je zdarma, své lokální reporty tedy můžete vytvářet bez omezení.</p>
<p>Cloudová služba Power BI existuje ve Free a placené Pro nebo Premium verzi.  Ve free verzi si vyzkoušíte vše podstatné, především prohlížení datových sestav na webu. Hlavními důvody, které by nás mohly vést k pořízení placené verze, jsou především pokročilé moduly pro import dat z interních datových zdrojů (On Premise prostředí &#8211; Personal Data Gateway), emailové subscribce nebo sdílení sestav s ostatními uživateli.</p>
<p>Power BI Premium je určeno především pro podnikové prostřední a integraci s on-premise řešeními.</p>
<p>Detalní srovnání Free, Pro a Premium najdete <a href="https://stoneridgesoftware.com/what-are-the-differences-between-power-bi-free-power-bi-pro-and-power-bi-premium/" target="_blank" rel="noopener noreferrer">zde</a>.</p>
<p><a href="https://powerbi.microsoft.com/cs-cz/pricing/" target="_blank" rel="noopener noreferrer">Aktuální cena</a> Pro verze je $9.99 za uživatele a měsíc, což lze považovat za relativně rozumné nastavení i pro českého uživatele.</p>
<p>Pokud si budete chtít Power BI vyzkoušet, je třeba pamatovat na jednu podstatnou skutečnost: pro registraci není možné využít emailové adresy z volně dostupných poštovních služeb (*.hotmail, *.gmail, atd. a bohužel ani řadu českých freemailových služeb), ale je nutné použít pracovní emailovou adresu.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sqlpowered.com/strucny-prehled-power-bi-sluzeb-a-nastroju/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Enable Remote Errors in Reporting Services</title>
		<link>https://sqlpowered.com/enable-remote-errors-in-reporting-services/</link>
					<comments>https://sqlpowered.com/enable-remote-errors-in-reporting-services/#respond</comments>
		
		<dc:creator><![CDATA[Jan Dvořák]]></dc:creator>
		<pubDate>Sun, 17 Apr 2016 11:39:12 +0000</pubDate>
				<category><![CDATA[BI]]></category>
		<category><![CDATA[SSRS]]></category>
		<guid isPermaLink="false">https://sqlpowered.com/?p=1488</guid>

					<description><![CDATA[If there is an error during report data retrieval or rendering then a message is displayed saying an error has occurred and for more details we should navigate to report server or enable remote errors on it. This is not a very useful message but it is meaningful from the...]]></description>
										<content:encoded><![CDATA[<p>If there is an error during report data retrieval or rendering then a message is displayed saying an error has occurred and for more details we should navigate to report server or enable remote errors on it. This is not a very useful message but it is meaningful from the security point of view because the internal error message can contain sensitive information which should stay hidden from the end user. However, in the development or staging environment it can be time consuming to connect for every error with a remote desktop to report server machine and running report locally there. Moreover, observing report server logs is also uncomfortable. In this article we will see how to use SSMS to change report server configuration and enable remote errors to be forwarded to the client.<br />
<span id="more-1488"></span>In this picture we can see exactly how the error message looks like:</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-1492" src="https://sqlpowered.com/wp-content/uploads/2016/04/SSRS-Enable-Remote-Errors-1.png" alt="SSRS-Enable-Remote-Errors-1" width="760" height="41" /></p>
<p>Steps to change remote errors setting on Report Server using SQL Server management studio are as follows:</p>
<h4>1. Connect to Report Server from SSMS</h4>
<p>In SSMS click on the Connect button and select Reporting Services:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1491" src="https://sqlpowered.com/wp-content/uploads/2016/04/SSRS-Enable-Remote-Errors-2.png" alt="SSRS-Enable-Remote-Errors-2" width="218" height="159" /></p>
<p>A dialog with connection properties will appear as like if we are connecting to relational instance, but this time, fill in the name of the computer where our Report Server is installed.</p>
<h4>2. Change Report Server configuration</h4>
<p>Once you are connected to Report Server, go to the server node in Object Explorer and by right clicking open the menu and click on Properties:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1490" src="https://sqlpowered.com/wp-content/uploads/2016/04/SSRS-Enable-Remote-Errors-3.png" alt="SSRS-Enable-Remote-Errors-3" width="302" height="186" /></p>
<p>On the Server Properties screen search for a setting called &#8220;EnableRemoteErrors&#8221; and change the value from &#8220;False&#8221; (default) to &#8220;True&#8221; and press OK:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1489" src="https://sqlpowered.com/wp-content/uploads/2016/04/SSRS-Enable-Remote-Errors-4.png" alt="SSRS-Enable-Remote-Errors-4" width="707" height="634" /></p>
<p>This change is propagated to the Report Server immediately and if you go back to your report with error message and try again, a detailed error message is displayed instead of the generic one.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sqlpowered.com/enable-remote-errors-in-reporting-services/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Připojení ke kostce analytických služeb</title>
		<link>https://sqlpowered.com/pripojeni-ke-kostce-analytickych-sluzeb/</link>
					<comments>https://sqlpowered.com/pripojeni-ke-kostce-analytickych-sluzeb/#respond</comments>
		
		<dc:creator><![CDATA[Jan Dvořák]]></dc:creator>
		<pubDate>Thu, 09 Jul 2015 19:09:20 +0000</pubDate>
				<category><![CDATA[BI]]></category>
		<category><![CDATA[Excel]]></category>
		<guid isPermaLink="false">https://sqlpowered.com/?p=1033</guid>

					<description><![CDATA[Excel je v současné době v rámci strategie Microsoftu a jeho konceptu Self BI prosazován jako hlavní nástroj pro analýzu dat, ať již relačních či multidimensionálních. S každou další verzí Office je rozšiřován seznam datových zdrojů, k nimž se lze připojit, a pro podporované datové zdroje se objevuje řada dalších...]]></description>
										<content:encoded><![CDATA[<p>Excel je v současné době v rámci strategie Microsoftu a jeho konceptu S<em>elf BI</em> prosazován jako hlavní nástroj pro analýzu dat, ať již relačních či multidimensionálních. S každou další verzí Office je rozšiřován seznam datových zdrojů, k nimž se lze připojit, a pro podporované datové zdroje se objevuje řada dalších možností nastavení.</p>
<p>V tomto článku si ukážeme, jak se jednoduše připojit z Excelu k datovým kostkám Analysis services. Pokud nemáte k dispozici žádnou kostku, můžete si nainstalovat testovací kostku AdwentureWorks2014 pomocí návodu v článku <a href="https://sqlpowered.com/instalace-multidimensionalni-databaze-adwentureworks-2014/">Instalace multidimensionální databáze AdwentureWorks 2014</a>. V ukázce budeme používat Excel 2013 Professional.<span id="more-1033"></span></p>
<p>1. Otevřeme si nový prázdný list a přejdeme to nabídky <em>Data -&gt; Z jiných zdrojů</em> a zvolíme možnost <em>Ze služby Analysis Services.</em></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1036" src="https://sqlpowered.com/wp-content/uploads/2015/07/Screenshot-9.-7.-2015-21_12_27.png" alt="Screenshot - 9. 7. 2015 , 21_12_27" width="913" height="533" /></p>
<p>2. Zadáme název instance Analysis Services, v našem případě jde o instanci pojmenovanou a zadáváme ji ve formátu NAZEV_POCITACE\INSTANCE. Pokud je instance nepojmenovaná, pak zadáme pouze název počítače.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1039" src="https://sqlpowered.com/wp-content/uploads/2015/07/Screenshot-9.-7.-2015-21_16_49.png" alt="Screenshot - 9. 7. 2015 , 21_16_49" width="527" height="371" /></p>
<p>3. Pokud se jsme zadali správně jméno instance a oprávnění, vidíme dialog, ve kterém můžeme vybírat analytickou databázi a připojit se k některé z kostek nebo perspektiv v ní obsažených. Jedna databáze Analysis Services může obsahovat více kostek a kostky mohou obsahovat perspektivy, které si můžeme představit jako zobrazení pouze některých objektů kostky pro snadnější orientaci. Za se jedná o kostku nebo perspektivu poznáme podle označení ve sloupci Typ. Vybereme kostku <em>Adwenture Works</em> a tlačítkem <em>Další</em> pokračujeme dále.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1040" src="https://sqlpowered.com/wp-content/uploads/2015/07/Excel-Connection-To-SSAS-Cube-Database-Selector.png" alt="Excel-Connection-To-SSAS-Cube-Database-Selector" width="541" height="377" /></p>
<p>4. Po výběru kostky vidíme dialog, ve kterém si právě vytvořené připojení můžeme uložit pro pozdější použití, případně ještě modifikovat některé pokročilé vlastnosti týkající se ověření. Zadáme název souboru a tlačítkem dokončit uložíme nastavení.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1043" src="https://sqlpowered.com/wp-content/uploads/2015/07/Excel-Connection-To-SSAS-Cube-Save-Connection.png" alt="Excel-Connection-To-SSAS-Cube-Save-Connection" width="527" height="443" /></p>
<p>5. Ve výchozím nastavení zobrazuje Excel data z multidimensionálních kostech jako Pivot tabulku, která poskytuje komfortní možnosti práce s dimenzemi a fakty. Ponecháme tedy předvybranou možnost <em>Sestava kontingenční tabulky. </em> Pokud potřebujeme, můžeme změnit buňku v listu, ve které má kontingenční tabulka být umístěna, případně ji můžeme nechat umístit do nového listu.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1044" src="https://sqlpowered.com/wp-content/uploads/2015/07/Excel-Connection-To-SSAS-Cube-Insert-Pivot-Table.png" alt="Excel-Connection-To-SSAS-Cube-Insert-Pivot-Table" width="496" height="527" /></p>
<p>6. Nyní vidíme, že v listu byla vytvořena nová kontingenční tabulka a pravé části se nám zobrazuje seznam dostupných dimenzí a faktů, se kterými můžeme začít ihned pracovat tím, že je budeme myší přesouvat do příslušných polí. V menu je vidět, že se nacházíme v sekci <em>Analýza</em>, kde můžeme najít nejčastěji používané funkce pro analýzu dat jako je například vytvoření kontingenční grafu nebo pokročilá úprava MDX dotazu, kterým Excel načítá data z kostky.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1047" src="https://sqlpowered.com/wp-content/uploads/2015/07/Excel-Connection-To-SSAS-Cube-Pivot-Table.png" alt="Excel-Connection-To-SSAS-Cube-Pivot-Table" width="758" height="644" /></p>
<p>A zde je příklad praktického použití kontingenční tabulky, kdy nás zajímal počet běžných a internetových objednávek pro láhve na kolo:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1050" src="https://sqlpowered.com/wp-content/uploads/2015/07/Excel-Connection-To-SSAS-Cube-Pivot-Table-Select.png" alt="Excel-Connection-To-SSAS-Cube-Pivot-Table-Select" width="872" height="789" /></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sqlpowered.com/pripojeni-ke-kostce-analytickych-sluzeb/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Instalace multidimensionální databáze AdwentureWorks 2014</title>
		<link>https://sqlpowered.com/instalace-multidimensionalni-databaze-adwentureworks-2014/</link>
					<comments>https://sqlpowered.com/instalace-multidimensionalni-databaze-adwentureworks-2014/#respond</comments>
		
		<dc:creator><![CDATA[Jan Dvořák]]></dc:creator>
		<pubDate>Wed, 08 Jul 2015 19:14:48 +0000</pubDate>
				<category><![CDATA[BI]]></category>
		<category><![CDATA[databases]]></category>
		<guid isPermaLink="false">https://sqlpowered.com/?p=927</guid>

					<description><![CDATA[Microsoft poskytuje pro testování a výuku svých produktů testovací databáze, které obsahují data společnosti AdwentureWorks, fiktivního prodejce kol a cyklistických doplňků. Databáze jsou publikovány na Codeplexu pro různé verze SQL Serveru. V následujícím tutoriálu si ukážeme, jak stáhnout a nainstalovat relační databázi a nad ní postavený multidimensionální model pro SQL...]]></description>
										<content:encoded><![CDATA[<p>Microsoft poskytuje pro testování a výuku svých produktů testovací databáze, které obsahují data společnosti AdwentureWorks, fiktivního prodejce kol a cyklistických doplňků. Databáze jsou publikovány na <a href="https://msftdbprodsamples.codeplex.com/" target="_blank" rel="noopener noreferrer">Codeplexu</a> pro různé verze SQL Serveru. V následujícím tutoriálu si ukážeme, jak stáhnout a nainstalovat relační databázi a nad ní postavený multidimensionální model pro SQL 2014, provést deploy projektu na instanci analytických služeb a otestovat připojení k datovým kostkám.<span id="more-927"></span></p>
<h2>Výchozí předpoklady</h2>
<p>Minimálním požadavkem je mít nainstalovaný SQL Server 2014 ve Standard nebo Enterprise edici. Je možné si stáhnout <a href="https://www.microsoft.com/en-us/evalcenter/evaluate-sql-server-2014" target="_blank" rel="noopener noreferrer">zkušební verzi</a>, zpravidla na 180 dnů, nebo uvažovat o zakoupení Developer edice, která obsahuje všechny funkce Enterprise edice, ale je určna pouze pro vývoj a testování, nikoliv pro produkční nasazení.  Cena Developer edice se pohybuje kolem 1.500.- Kč a j e možné ji koupit i v českém <a href="http://www.microsoftstore.com/store/mseea/cs_CZ/pdp/SQL-Server-2014-Developer-Edition/productID.304683400" target="_blank" rel="noopener noreferrer">Microsoft store</a>. Verze Standard nebude stačit pro práci s Tabulárním enginem a express verze vůbec neobsahuje analytické komponenty.</p>
<h2><strong>1. Stažení databází a multidimensionálního projektu</strong></h2>
<p>Ze stránek <a href="https://msftdbprodsamples.codeplex.com/releases/view/125550" target="_blank" rel="noopener noreferrer">msftdbprodsamples.codeplex.com</a> stáhneme následující soubory:</p>
<ul>
<li><a href="https://msftdbprodsamples.codeplex.com/downloads/get/880664" target="_blank" rel="noopener noreferrer">Adventure Works DW 2014 Full Database Backup.zip</a>
<ul>
<li>Plná záloha relační databáze AdwentureWorksDW2014, která obsahuje dimenze a fakta, a je použita jako datový zdroj pro multidimensionální kostky.</li>
</ul>
</li>
<li><a href="https://msftdbprodsamples.codeplex.com/downloads/get/882336" target="_blank" rel="noopener noreferrer">AW Multidimensional Models SQL Server 2014.zip</a>
<ul>
<li>Projekt pro SSDT 2014, obsahující definici dimenzí a kostek.</li>
</ul>
</li>
</ul>
<p>Soubory rozbalíme do adresářů na disku.</p>
<h2>2. Obnovení relační datáze AdventureWorksDW 2014 ze zálohy</h2>
<p>Obnovení databáze lze udělat pomocí grafického rozhraní v Management Studiu, případně pomocí následujícího skriptu, ve kterém je třeba upravit cesty podle kokrétní instalace SQL Serveru:</p>
<pre class="lang:tsql decode:true">USE [master]
GO

RESTORE DATABASE [AdventureWorksDW2014] 
	FROM  DISK = N'E:\SQLDOT\AdventureWorksDW2014.bak' WITH FILE = 1,  
	MOVE N'AdventureWorksDW2014_Data' TO 
		N'C:\Program Files\Microsoft SQL Server\MSSQL12.SQLDOT_2014\MSSQL\DATA\AdventureWorksDW2014_Data.mdf',
	MOVE N'AdventureWorksDW2014_Log' TO 
		N'C:\Program Files\Microsoft SQL Server\MSSQL12.SQLDOT_2014\MSSQL\DATA\AdventureWorksDW2014_Log.ldf',
NOUNLOAD,  STATS = 5
GO</pre>
<p>Výsledek by měl vypadat takto:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-938" src="https://sqlpowered.com/wp-content/uploads/2015/06/RestoringAdwentureWorks2014Multidimensional1.png" alt="RestoringAdwentureWorks2014Multidimensional1" width="295" height="299" /></p>
<h2><strong>3. Nastavení potřebných oprávnění pro účet služby Analysis Services</strong></h2>
<p>Abychom v následujícím kroku mohli provést nasazení projektu a přepočet kostek, musí mít účet, pod kterým běží analytické služby, přístup k relační databázi AdwentureWorksDW2014, obnovené v předchozím kroku.Pro nastavení impersonace lze sice využít i jiné možnosti (účet uživatele či specifický účet), ale využití účtu analytických služeb může považovat za doporučený postup z pohledu bezpečnosti.</p>
<p>Pod jakým systémovým účtem běží analytické služby lze jednoduše zjistit pomoci nástroje SQL Server 2014 Configuration Manager, který lze spustit pomocí odpovídající ikony ve složce SQL Serveru 2014 v nainstalovaných programech nebo z příkazového řádku (Windows + R) zadáním příkazu <em>SQLServerManager12.msc:</em></p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-943" src="https://sqlpowered.com/wp-content/uploads/2015/06/RestoringAdwentureWorks2014Multidimensional2.png" alt="RestoringAdwentureWorks2014Multidimensional2" width="1007" height="309" /></p>
<p>V seznamu služeb SQL Serveru vyhledáme odpovídající instanci <em>SQL Server Analysis Services. </em>V případě, že máme na počítači nainstalováno více různě pojmenovaných instancí, poznáme správnou instanci podle textu v závorkách, v našem případě <em>SQLDOT_2014</em>. Služba běží pod systémovým účtem NT Service\MSOLAP$SQLDOT_2014. To je účet, který hledáme a kterému musíme přidat příslušná oprávnění pro přístup ke zdrojové databázi AdwentureWorksDW2014.</p>
<p>Přidání oprávnění můžeme provést pomocí Management Studia:</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-945 size-full" src="https://sqlpowered.com/wp-content/uploads/2015/06/CrateNewLoginForSSAS.png" alt="CrateNewLoginForSSAS" width="296" height="363" /></p>
<p>Vyplníme název loginu:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-952" src="https://sqlpowered.com/wp-content/uploads/2015/06/FillLoginDetailForSSAS1.png" alt="FillLoginDetailForSSAS" width="704" height="632" /></p>
<p>Pro login vytvoříme v databázi AdwentureWorkDW2014 uživatele, kterému přiřadíme roli db_owner:</p>
<p><a href="https://sqlpowered.com/wp-content/uploads/2015/06/CreateUserForSSASLogin.png"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-953" src="https://sqlpowered.com/wp-content/uploads/2015/06/CreateUserForSSASLogin1.png" alt="CreateUserForSSASLogin" width="704" height="632" /></a></p>
<p>Po uložení bychom měli vidět v Management studiu, že v databázi AdwentureWorksDW2014 by vytvořen nový uživatel NT Service\MSOLAP$SQLDOT_2014, který je mapován na login stejného jména:</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-955 size-full" src="https://sqlpowered.com/wp-content/uploads/2015/06/Screenshot-28.-6.-2015-21_25_13.png" alt="Screenshot - 28. 6. 2015 , 21_25_13" width="407" height="666" /></p>
<p>Nyní je dokončená konfigurace na straně relační databáze a můžeme pokračovat v analytickému projektu a jeho nasazení.</p>
<h2>4. Nasazení analytického projektu</h2>
<p>Na disku vyhledáme rozbalený soubor <em>AW Multidimensional Models SQL Server 2014.zip</em>, který jsme stáhli v bodě 1 s spustíme soubor <em>AWDW2014Multidimensional-EE.sln</em>, který mám otevře analytický projekt v SQL Server Data Tools. Pokud je naše testovací instance verze Enterprise nebo Developer, otevřeme soubor z adresáře Enterprise, v případě Standard edice ze stejnojmenného adresáře.</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-957 size-full" src="https://sqlpowered.com/wp-content/uploads/2015/06/AWDW2014MultidimensionalSolution1.png" alt="AWDW2014MultidimensionalSolution1" width="544" height="121" /></p>
<p>Projekt:</p>
<p><img loading="lazy" decoding="async" class="alignnone wp-image-959 size-full" src="https://sqlpowered.com/wp-content/uploads/2015/06/AWDW2014MultidimensionalProject.png" alt="AWDW2014MultidimensionalProject" width="272" height="242" /></p>
<p>V otevřeném projektu budeme muset provést změnu dvou nastavení z výchozích hodnot: připojovací řetězec k relační databázi AdwentureWorks2014 a zadání cílové instance analytických služeb, na kterou má být projekt nasazen.</p>
<p>Pro změnu připojovacího řetězce k relační databázi v Solution Exploreru dvakrát poklepeme na datový zdroj AdwentureWorkdDW2014.ds:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-991" src="https://sqlpowered.com/wp-content/uploads/2015/06/ChangingDataSourceConnectionString.png" alt="ChangingDataSourceConnectionString" width="272" height="260" /></p>
<p>Objeví se nám možnosti nastavení datového zdroje:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-993" src="https://sqlpowered.com/wp-content/uploads/2015/06/EditConnectionStringProperties.png" alt="EditConnectionStringProperties" width="666" height="717" /></p>
<p>Klikneme na tlačítko edit a zobrazí se dialog, kde můžeme vyplnit konkrétního název instance SQL Serveru, jméno databáze i případné nastavení zabezpečení:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-996" src="https://sqlpowered.com/wp-content/uploads/2015/06/ChangingConnectionStringProperties.png" alt="ChangingConnectionStringProperties" width="600" height="599" /></p>
<ol>
<li>Do pole <em>Server name</em> zadáme jméno instance, které je stejné jako výše, kdy jsme prováděli obnovu relační databáze AdwentureWorksDW2014.</li>
<li>Zkontrolujeme, že jméno zdrojové databáze je uvedeno správně.</li>
<li>Tlačítkem <em>Test Connection</em> ověříme, že lze s nastavenými parametry provést úspěšné připojení.</li>
</ol>
<p>V nastavení zabezpečení není třeba nic měnit, pokud jsme na našem testovacím počítačí lokální administrátoři. V opačném případě je třeba zadat jiný uživatelský účet nebo SQL Login a heslo.</p>
<p>Po změně nastavení datového zdroje nastavíme na úrovni projektu náš cílový analytický server, na který budeme v závěru provádět nasazení projektu:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-998" src="https://sqlpowered.com/wp-content/uploads/2015/06/EditMultidimensionalProjectProperties.png" alt="EditMultidimensionalProjectProperties" width="269" height="255" /></p>
<p>Na vyznačenou položku klikneme pravým tlačítkem a vybereme možnost <em>Properties</em> úplně dole.</p>
<p>Ve zobrazeném dialogu přejdeme na záložku Deployment a v sekci <em>Target</em> nastavíme do řádku <em>Server</em> jméno instance analytických služeb, které je shodné s názvem relační instance. Jméno databáze ponecháme přednastavené, případně můžeme změnit, ale je toho třeba dbát v navazujících krocích.</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-999" src="https://sqlpowered.com/wp-content/uploads/2015/06/DeploymentProperties.png" alt="DeploymentProperties" width="702" height="427" /></p>
<p>Po uložení dialogu klikneme pravým tlačítkem na složku solution a zvolíme možnost Deploy:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1001" src="https://sqlpowered.com/wp-content/uploads/2015/06/DeployMultidimensionalProject.png" alt="DeployMultidimensionalProject" width="565" height="429" /></p>
<p>Pokud jsme vše správně nastavili, dojde nyní k nasazení projektu na analytický server s jeho zprocesování, tedy nahrání relačních dat ze zdrojové databáze do dimenzí a analytických kostek. Celý proces může trvat několik minut a pokud vše proběhlo správně, měli bychom vidět následující dialog:</p>
<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-1002" src="https://sqlpowered.com/wp-content/uploads/2015/06/SuccessfullDeployementScreen.png" alt="SuccessfullDeployementScreen" width="517" height="509" /></p>
<p>Tím jsme úspěšně dokončili nasazení modelového multidimensionálního projektu a v dalším kroku si ukážeme, jak ověřit funkčnost připojením přes Management Studio a z Excelu.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sqlpowered.com/instalace-multidimensionalni-databaze-adwentureworks-2014/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
