Power BI: IPL Analytics- Visualizations and Design Reports -Part 6

In my previous blog, we have completed the deign of first report, let us see what is different in second report. Here we will discuss about the Card visual and how to add Custom visuals. If we refer the above image of second report, we can see many Single numbers which highlight the specific values such as Runs Scored. Overs bowled, Total matches played and so on. These visuals are called as Card type visuals.

We can configure such visuals either by adding the card visual to the report, as we did for rest of visuals till now, or we can even directly add these visuals from QNA feature.

Let us first see how do we add it from the report designer. We need to drop this visual on the report canvas and follow the steps as shown in below snippets.Card1

If we want to highlight the total runs scored in all matches, let us select the Runs_scored field and select aggregate function sum in the  properties as shown in  below snippets. You can see the properties by clicking on the triangle on added field.

card2card6

It will display the card as shown in below snippet.

card3

On similar lines we can add multiple card visuals by selecting various fields we had created during the data modeling and different aggregate functions as shown in below snippets. For example, Average of Economy, Sum of  Overs by Bowler etc.

We can even format the card visual using the Format option like changing the font color, background color, font style etc.

As I mentioned above, we can create these cards by using the (Question and Answer) QNA feature as well. This feature was earlier available only in Power BI service and was later added in the Power BI desktop as well.  Let us try and create similar cards using the QNA  feature of the Power BI. It will be really quick to question the data and get answer in terms of visualization. For example, “how many total matches played?”, “what is the average economy in all matches?” etc. Kindly refer below snippets to see the steps to get this.

Either double click on the report canvas and it will allow to ask question or click on “Ask A Question” from the ribbon as shown in below snippet.QnA1

Referring to below snippet, as we start typing “total runs_s”, it would give us options based on available tables and fields in our dataset.

Qna2

It would automatically give you the response in Card visual as the answer is single number as shown in below snippet. It is similar to the card we have designed manually by selecting the visual and adding the field to it. We might need to do the formatting based on our requirements.Qna3

In case the answer is more than one number, it would respond as different visuals accordingly. We can ask different questions and get answers as shown in below snippets.

Qna6Qna5

QNA is a vast topic in itself. Let us discuss it separately in depth in some other post.

We have seen how to add card visuals in Power BI reports in this blog. In next blog let us see how to embed the custom visual in our report. I hope you are enjoying creating these visuals along with me.

Thank you for reading my blog, if you have any questions please mention in the comments and hit the like button if you like my write up.

Keep Learning !! Happy analyzing and be Powerful 🙂

Continue reading “Power BI: IPL Analytics- Visualizations and Design Reports -Part 6”

Power BI: IPL Analytics- Visualizations and Design Reports -Part 5

In my previous blog, we configured Map visualization, Let us add few more visualizations in the same report.

If we want to show winning percentage of the all teams based on the total matches played, we can use Donut visual. Donut visual is very similar to pie chart, only difference is the center of the chart is blank which helps for better labeling of the data values. One important feature is it always shows the comparison with whole instead of comparing individual parts.

As usual, let us drag and drop it on the report canvas.

Donut chart1

We want to see the winning percentage of the teams, which can be achieved by adding match_winner in the details and match-id in the values property. It automatically shows the count of match_id.

Donut chart2

Here we want to show percentage, hence let us select the percent of  grand total in show values as shown in below snippet.

Donut chart4

On similar lines we can have the Pie chart as well. We can see how both visuals would look like in below snippet.

Donut chart3

Let us add one more visual to see how many matches were played in each season. Let us use the Area chart to show his data. Drag and drop this visual on the report canvas as shown in below snippet.

AreaChart1

We have to set the x axis as season_year and values as match_id as shown in below snippet.

AreaChart2

Configured Area visual would be shown as shown in below snippet.

AreaChart3

Let us add one more visualization in this report. We want to show winning analysis based on the toss decision to do the batting / bowling. Let us use the Bar chart  for the same as shown in below snippets

Barchart1

Let us map match_winner to Axis parameter and Toss_name to show the Legend. Count of match_winner would be the value to be displayed as shown in below snippet.

Barchart2

Here is finally how our chart would look like.

Barchart3

We have learned configuring basic Donut, Pie, Area and Bar visual in Power BI.

To logically end the design of this report and start with another report in my next blog, let us extend this blog a little bit and see how tabular visual works in Power BI. Again very similar process to drop a visual on the report canvas.

Table visual1

Referring to my earlier posts of data modelling, we have created few custom columns in this Match table to see if the match was won by how may wickets or how many runs. Let us add those fields in the Values of the visualizations and those would be displayed in the table as shown in the below snippet.

Table visual2

Our configured visual would look like as shown in below snippet.Table visual3

In next blog let us see the design of second report in which we would learn more about Card type of visuals and how to add custom visual in the report. I hope you are enjoying creating these visuals along with me..

Thank you for reading my blog, if you have any questions please mention in the comments and hit the like button if you like my write up.

Keep Learning !! Happy analyzing and be Powerful 🙂

Continue reading “Power BI: IPL Analytics- Visualizations and Design Reports -Part 5”