Home Tags Posts tagged with "Data Visualization"

Data Visualization

USING TREE MAP AS LEGEND ON A PAGE in Power BI

I recently worked on two projects where the client wanted to show multiple metrics sliced by the same categorical data. For example, seeing how various metrics are performing over different regions or different product groups. A use case like this can be achieved in many ways; probably the best approach is to use small multiples functionality or to keep it simple, five same visuals with different metrics.

Let’s look into it with energy consumption data. Here, I want to show metrics 1 to 5 on different income levels over the years.

Five different visuals

When you know exactly how many categories you have in the requirement and how you want to display your data, then going for a certain number of visuals is my favourite approach.

UntitledImage

Using Small multiples

When there is no clarity about the number of categories, the small multiples feature is significant. For this use case, I went for two columns. Due to five categories, I get an extra blank space. It doesn’t look that bad, but I would like more control over the placement of visuals on the canvas. 

SmallMUltiples

When I compare Five individual visuals to small multiples, small multiples may have better performance from the number of queries point of view, and it also looks a bit tidier with one legend, one axis.

To have the best of both, we can use TreeMap visual as a legend

Tree Map visual as a legend

For the tree map, I used the income level column as a category and distinct count of the same column as value. I have turned off data labels, header icons and tool tips. I ensured I used the same “Max Axis” value for all visuals, making the comparison seamless. 

This approach is cleaner than showing the same legend for each visual and serves the same purpose as the usual legend: a user can identify what is what based on colour or shape and interact by clicking on the legend. 
https://prathy.com/wp-content/uploads/2022/06/2022-06-25_14-49-20-1-3.gif

The benefits of this approach are that your report stands out, a nice big legend is easy to interact with on touch screen devices and looks sleek rather than repeating the same legend. I hope the blog inspires someone out there.

Until next time,

Prathy 🙂

0 comment
3 FacebookTwitterPinterestEmail

A few weeks ago I got invited to the DataLounge YouTube series. I went on talking about my favorite topic Storytelling. It was a very interesting conversation with Alejandro Leguizamo and cool setup. Check it out :

As Power BI getting more popular and used by many organizations, we are in a state to thinking about Data modeling, visualizations and storytelling. In 2020, I am planning to do more blogs and training on this topic. For now, if you are interested, please check out my Precon at SQLSaturday Slovenia. Slovenia is a great place to escape in winter and SQLSaturday Slovenia is one of the best SQLSaturday – https://www.kompas-xnet.si/izobrazevanja/koledar-tecajev-t/SQL2019%20-%202 

Prathy 😊

 

0 comment
0 FacebookTwitterPinterestEmail

This is a long-overdue blog post. A couple of months ago, I worked with a client in Amsterdam; one of the use cases was to show key metrics, flags that need attention. The user also wanted to click on warning symbol to confirm, where the issues were, however, the user didn’t want a drill through, it has to be a left-click.

As of yet, except for button/action we can not do left clicks in Power BI. As the user didn’t want the report to open in another browser tab etc., so was thinking about other options and at the end decided to go for tooltips and symbols to show flags like below:

Power BI Visual with warnings

#PowerBI Card visual to show banners/warnings:

Card visual is my go-to visual when it comes to Key metrics with numbers. In this use case, the user wanted to see key metrics, warnings and the respective details of warnings.

Two things I considered while designing this:

  1. Highlight only the values that needed attention
  2. Keep the design and clicks simple

When it comes to flags, many times, I see people highlighting all values. In my opinion highlighting should add the benefit; it should not make the report or visual cluttered. So I try to focus on data that needs attention. If we look at the below screenshots, we can see the difference very well.

However, in my use case, I want to highlight only some data, but that may not be in your case, and you may want to highlight all warnings.

Next, fewer clicks or no clicks. In this use case, I needed a dynamic, data-driven display of details. Tooltips are perfect for this use case, and the user doesn’t have to do much other than hovering over the warning sign.

Design:

So first I created a DAX measure to show the symbols I wanted to show, something like this:

Warning2 =

VAR V =IF([% Change]=BLANK(),BLANK(),
IF([% Change]>0.1,"Great",
IF([% Change]>0.03&&[% Change]<0.10,"Good",
IF([% Change]<0.03,"Bad"))))
Return

IF(V=“Good",”★",”")

Once I have my measure ready, I created one Card to show my measure value and the other one to show the warning, like below:

2019 10 21 14 37 34

Then I used conditional formatting to make the colour of the symbol based on my measure

2019 10 21 14 41 03

The user was pretty pleased with the approach since then I used this kind of design at various places so thought to write a blog post to, hoping it will inspire someone out there. Key metrics are very important in the report design, keep an eye on my next blog post where I will be writing my approaches about “Visualising Key Metrics using Power BI”.

You can view the report here.

Prathy

3 comments
1 FacebookTwitterPinterestEmail