This article explains that how can we show your Power BI report to everyone.
We have variety options in app.powerbi.com for the specific report.
The notable options are,
Publish to Web
Embed in SharePoint Online (preview)
Export to PowerPoint (preview)
Let us discuss “Publish to Web” Option
Open your Power BI report and click File option. You can see the options as like below.
Choose “Publish to Web” and click “Create embed Code”
Then click “Publish”, it will create a code for us.
We can share the link to anyone or else can embed the iframe in any web page or in SharePoint.
Check the report,
Sachin Tendulkar’s Cricket Data – Embedded Report
This article explains that how can we improve the performance when we access the SQL Query via network.
Scenario: I have taken SQL Server installed on Virtual Machine with 7GB of RAM and accessing the SQL Server database from local SQL Server management studio.
Step 1: Up and Run VM with SQL Server installed.
Step 2: Enable the DNS name of the Virtual Machine.
Step 3: Enable the TCP port with 1433 in portal.
Step 4: Create TCP port inside virtual Machine. Type WF.msc in command prompt. Right click on Inbound Rules and choose New.
Step 5: Make sure SQL Server services are up and running.
Step 6: Enable the SQL Server as mixed mode authentication.
Step 7: Create a new user login and check.
Step 8: Access the database from local SSMS.
Performance Improvement with NitroAccelerator
Install the “NitroAccelerator” in local machine, http://nitrosphere.com/trial/?ref=83095
Step 2: Run the query in local SSMS without Nitro Accelerator.
Step 3: Start the accelerator and test the query performance.
Recently, I saw a question raised in MSDN forum.
The question was “How to add data into Mobile Report Publisher?”
The answer is very simple, Mobile Report Publisher will use dataset for data.
If there are no datasets deployed to report server then we can’t see anything when using mobile report publisher data tab.
Steps to create dataset and make available for Mobile Report Publisher.
Step 1: Create a shared Dataset
Step 2: Deploy the shared dataset to report server
Step 3: Make sure the deployed shared dataset is deployed successfully and check it in report server as well.
Step 4: Click the Add data in Mobile Report Publisher.
Step 5: Choose the available dataset from report server.
Data will be added and start build the mobile report
I got a below error message when I execute the report. The error message is very straight forward and it highlights the exact issue.
Basically, this error occurred due to different data types. There are many situations where we get this error so I thought to document this scenario.
An error occurred during local report processing.
An error has occurred during report processing.
The processing of FilterExpression for the dataset ‘Dataset1’ cannot be performed. Cannot compare data of types System.Decimal and System.Double. Please check the data type returned by the FilterExpression.
In Dataset1, I used a filter property and filtered “Unit Price” greater than 12. When I choose Unit Price column, it automatically picked the data type as float as it has values like xxx.xx in table.
The Original data type of the Unit Price column in the database is different, it is money data type. There is a mismatch of the data type.
There are two ways to handle this issue.
1. We can filter the value (Unit Price > 12) in script level and directly pass the script in dataset Instead of using dataset filter properties. We also will get good performance. Check my post on …..
2. If we want to use the dataset filter then we need to convert the unit price column into SSRS supported data types, in this case, float.
convert(float,[UnitPrice]) as UnitPrice
Available data types in dataset filter.
This article explains that how to generate SELECT statement with all the table columns.
In the Production environment, most of the tables will have more than 100 columns. If those tables are used in a report with all the columns then it will be difficult to type all the columns.
To ease the process, we can generate the SELECT statement and can use that for any purpose.
Use the below code and pass the table which you want to use in the SELECT statement.
In this example, I used FactInternetSales table.
Declare @Column varchar(500), @tableName varchar(25)
SET @tableName =’FactInternetSales’
SET @Column = ”
select @Column = @Column + Column_Name + ‘, ‘ from [AdventureWorksDW2014].INFORMATION_SCHEMA.COLUMNS
select ‘SELECT ‘ + SUBSTRING(@Column, 0, LEN(@Column)) + ‘ From ‘+@tableName as SELECTScript
Copy and paste the result and execute the script.
In My previous post, I said: “Avoid using Dataset in SSRS”. If you read that article then probably you may have the following question.
What is the purpose of filters in dataset properties?
Yes, I said to avoid but we have some scenarios where we need to use the dataset filter properties.
Consider a scenario, you are a report developer and you need to develop a report for the given requirement. As part of development, you need to use one of the stored procedures and want to display certain rows as a result in the report.
You don’t have enough access to modify the stored procedure to add the filter condition and no other write access.
In this scenario, you can’t filter the data in script level so you need to use report dataset filter to filter the data.
Pass the stored procedure directly into the dataset and filter the respective column with a value.
Performance is important but not all the cases. Still, we can get good performance, use dataset filter when we extract less number of records from database layer.
If you are Microsoft SQL Server Report Developer, then you have a chance to notice the dataset properties as it is the place where we supply the data subsets to the report.
Let us understand the filters in SSRS first and analyse why dataset filters should be avoided.
We have three different main places to filter the data in SSRS
Filter in T-SQL Script
When we understand the business requirements, need to categories what are the filters static and dynamic.
Always use the static filters in T-SQL script. Dynamic filters can be done through parameters but still need to add the filter in T-SQL Script with parameters.
If you want to filter country values as the US on your country table.
SELECT State, City, Country FROM dbo.COUNTRY
Note: In this case, we are restricting data in database server itself.
You can filter in SSRS report dataset.
Go to Dataset -> Filters
Note: In this case, we are taking all the data to report server and filtering the data in the report.
Run-time filter using Parameter
It is a special kind of filter because this will be the requirement from business in most of the cases.
First 2 filters won’t be visible to end users but this filter will be visible and user needs to filter the value while running the report.
This can be achieved by adding the parameter in T-SQL script,
SELECT State, City, Country FROM dbo.COUNTRY
Why should we avoid dataset filters?
The main reason is to improve the performance of the report.
In case 1 (Filter in T-SQL Script), we are filtering the data in database layer itself. It means we are taking only required data to the reporting layer and showing the result. The performance of the report will be good as it is processing only fewer records.
In case 2 (Dataset filter), we are taking all the records from table database and filtering in the report server. It means report server has to make process and filter the data and show the result. We are giving burden to report server so it will affect the performance.
Microsoft Azure Team released one of the expected feature in azure.
It is like a personal assistant that helps us to follow best practices, efficient resource usage and optimize the deployments.
Check below to get the Azure Advisor,
Mostly it will be available in left side of the menu,
If you are not able to identify then enable the favorite,