BLOGS

ByHariharan Rajendran

Explore Power BI Report Server

Microsoft Power BI team releases a Power BI Report as generally available. We can get this report server as part of Power BI premium but still, we can use the trial version for 180 days.

This post explains to you that how we can setup the Power Bi report server. You can download the Power Bi Report Server here.

Components

It contains two components

  1. PBIReportServer.exe
  2. PBIDestopRS (32 & 64 bit)

Installation

It is easy to install Power BI Report server in your system. Just follow the below screenshots and click Next and complete the installation.

Once the installation is completed, we need to configure the Report Server which is nothing but our regular SSRS report server configuration but for Power BI.

Configure as usual and test the web service and web portal URL.

To start developing the reports, need to install the Power BI Desktop RS which is same like regular Power Bi desktop but with few changes.

We can save the report in our on-premises portal with the PBIDesktop RS tool.

Check the general information about Power BI Report Server.

Report Server Power BI Report Server
Instance ID PBIRS
Product Version 14.0.600.286
Service Power BI Report Server
Log on Account NT SERVICE\PowerBIReportServer
ByHariharan Rajendran

Azure data Sync Update

Microsoft Azure recently released clear road map of Azure Data sync. It replaces the SQL data sync service in classic portal.

If any of the customers are using SQL Data Sync then they need to migrate those sync groups to new portal.

Following the announcement, Azure classic portal not allowing us to create sync and even the SQL databases also. Microsoft Azure team trying to migrate all the services to new portal and in one point of time, Microsoft will remove the classic portal.

As like the previous service, this migrated service also still in preview.

ByHariharan Rajendran

R Packages in Power BI

Power BI service supporting many R packages as of now and it will increase in future. There is a misunderstanding that we can use these packages in Power BI Desktop R visual.

We can’t use all the packages in the Power BI site because it includes the packages which can be used for R custom visuals development.

Check the list of packages that Power BI Service supports, here.

Let us take an example,

There is a package called “timevis” which is part of Power BI supported packages.

We can use this package to build a visual to display a time range information. I used this package in R studio and got the below visual.

 

You can use the below R script and try it by yourself. This package requires many dependent packages which you can identify while installing the R scripts. If any dependent packages are missing then you should install those missing packages and finally run the R script.

library(timevis)

input<- data.frame(

           id = 1:4,

      content = c(“Apple”, “Orange”, “Mango”, “Banana”),

        start = c(“2017-01-10”, “2017-01-11”, “2017-01-20”, “2017-02-14 15:00:00”),

          end = c(“2017-02-13”, NA, “2017-02-04”, NA)

                  )

timevis(input)

It is easy to identify which packages are supported in Power BI from the list. Prepare your R script from any of the packages and make sure to check the supported package list and run the script in R studio.

If your package producing a visual and make sure that visual is displayed under plot section of R studio. If you see the visuals in plot section then those packages can be used in Power BI.

In our example, the visual is displayed under viewer section which means it is using HTML viewer which is not yet supported by R visual in Power BI.

ByHariharan Rajendran

Azure SQL Data Sync in Azure New Portal

Azure Data Sync is the feature to synchronise the data between Azure SQL databases or Azure SQL Database to On-premises databases.

Microsoft Azure team released Azure Data Sync option in new portal.

Check the below road map of Azure Data Sync update from Microsoft.

  • Migrate existing sync groups to new portal – Starting from June 1, 2017
  • Data Sync in Azure new portal – June 15, 2017
  • SQL Data Sync retired from classic portal – July 1, 2017
  • SQL Data Sync retired – September 1, 2017

While writing this post, we got data sync option available in the new portal.

Follow the below steps to check the new option in new portal.

  1. Go to new portal, portal.azure.com
  2. Go to your Azure SQL Database
  3. Check for the option “Sync to other databases”

ByHariharan Rajendran

Analyzing Your WordPress Site with Power BI

Power BI is very famous for self-service BI which includes a variety of data sources. As it supports almost all famous data sources, sometimes we are getting a question that Power BI does have any data source for WordPress blog posts?

I could see most of them have this common questions. To answer this question, if I search Power BI desktop or online services, I couldn’t identify the dedicated WordPress data source.

But it is possible to connect WordPress with Power BI.

I take this opportunity to show how to connect your WordPress account with Power BI. We need to follow the below steps to visualise your post count, author, category and tag information in Power BI visualisation.

Pre-Requisites

It requires a plugin which should be installed on your WordPress blog.

  1. Visit your blog
  2. Go to your blog plugins section and click add new.
  3. Type “WP REST API” in the search box and you could see the below plugin.
  4. Activate the plugin

It captures all your blog information in JSON file format and through API we can access the JSON file from Power BI.

Once the above configuration is successfully completed then follow the below steps in Power BI Desktop.

We are going to use Web data source to connect WordPress.

Getting the URL of your blog with plugin extension is a bit tricky part but easy. The format of the URL should be like below.

Blog URL + /wp-json/wp/v2/ +Section

In my case, http://myblog.com/wp-json/wp/v2/ is the URL. Here section is nothing but tables which holds the specific information.

The most common tables,

  1. Posts
  2. Users
  3. Categories
  4. Tags

The framed URL will give you only 10 records as a result. To get all the records from WordPress we need to follow the below strategy.

WordPress stored all the information in pages so we need to play with pages to get all the records.

Modify your URL as like below,

http://myblog.com/wp-json/wp/v2/posts?page=1&per_page=100

In the above URL, I added the page and per page property. We can increase the page count based on the number of posts that we need to access. For example, if you have 200 posts in your blog then you need to extract two times. 100 is the maximum number of posts so we can change only the page to extract all the posts.

Once the above URL is passed in Power BI Web source as like below then you can see 100 records.

You can see an option called “To Table” which converts your list of records into the table. We need to click the “<-||->” symbol to expand.

Again, use the web data source and pass the URL        and do the same procedures to expand the columns in table format.

Once you extracted all the posts, you could see multiple queries created for each 100 records. The next important step, we need to append all the queries into a single query.

Use “Append Queries” and add all the queries.

Finally, you will get a single query with all the records on it. You can use this query for visualisations.

Repeat the same steps for all other tables’ users & category.

http://myblog.com/wp-json/wp/v2/users

http://myblog.com/wp-json/wp/v2/categories

http://myblog.com/wp-json/wp/v2/tags

Once you added all the tables, need to prepare the relationship between the tables. Each table has a common id column with matching with Posts table.

Finally, you can start building the report with the extracted tables.

ByHariharan Rajendran

Power BI Report Server

Microsoft SQL Server Reporting Services is the product which provides solutions to all the business enterprises. While it was in peak, Microsoft released another new BI tool which is nothing but Power BI.

Now Power BI is leading the Business Intelligence Industry. As it is a cloud-based service, business users were not able to use that tool for their business solutions because of security concerns. They were waiting for on-premises based Power BI server.

Now the wait is over. Microsoft released Power BI Report server which can be installed and configured for on-premises business solutions.

Power BI Report server is available for preview, you can download, install and experience the on-premises based Power BI Report.

As it is very new, it supports only analysis services as a source but in future, we can expect the same source connectors as like in Power BI cloud services.

This blog post explains to you that how you can experience the Power BI Report server using the Azure VM template.

Follow the below steps to spindle up Azure VM with Power BI Report Server on it.

Step 1: Login Azure portal and add a new Virtual machine

Step 2: Search for Power BI and it will show the below template

Step 3: Click create

Step 4: Add the VM name and credentials and choose which AS server you want to use from the drop down.

Step 5: By default, it using the below settings. In case, if you get an error message then change the name of the storage.

Step 6: At last, you need to click the purchase button. It will create and deploy the Power BI machine.Once the machine is deployed successfully, connect the machine and you can see the Power BI.

Once the machine is deployed successfully, connect the machine and you can see the Power BI Report Server.It also adds an option to create Power BI Report from the portal itself.

ByHariharan Rajendran

Azure Cloud Shell

This post just to shows that how to configure the Azure Cloud Shell and its options.

Microsoft Azure recently announced this new feature, it helps us to run the Azure CLI commands directly on the portal itself.

It is required to configure the storage for one time.

Once the above configuration is completed successfully, you can see below the window.

In future, it is going to support power shell as well.

Check the Azure CLI commands in Microsoft documentation.

https://docs.microsoft.com/en-us/cli/azure/

ByHariharan Rajendran

Windows could not start the SQL Server – Error & Solution

This post explains you very basic error that you get rarely and solution to that error,

Error: “Windows could not start the SQL Server on Local Computer. For more information, review the System Event log”.

The below error message will appear when your SQL Server evaluation period is expired.

Check the information in Event Viewer.

Solution

Buy the server and use the product key.

You can visit Maintenance in SQL Server installation and can upgrade.