Toan Hoang

Tableau QT: Ratings Chart

This is a Quick Tip on how to build a Ratings Chart in Tableau, so less reading and more jumping in. We are going to spend 5 minutes or less building our Ratings chart in Tableau.

Note: As always never choose a data visualisation type and try to fit your data into it, instead, understand your data and choose the best visualization for your data consumers.

Data

Load the following data into Tableau Desktop / Public.

ProductPathRating
ACER XC-885 Intel® Core™ i5 Desktop PC14.5
ACER XC-885 Intel® Core™ i5 Desktop PC54.5
ACER C20-720 19.5″ Intel® Celeron®14
ACER C20-720 19.5″ Intel® Celeron®54
ACER Aspire C24-865 23.8″ Intel® Core™ i514
ACER Aspire C24-865 23.8″ Intel® Core™ i554
ACER Nitro N50-600 Intel® Core™ i5+ GTX 105013.5
ACER Nitro N50-600 Intel® Core™ i5+ GTX 105053.5
ACER TC-885 Intel® Core™ i5+ Desktop PC13.5
ACER TC-885 Intel® Core™ i5+ Desktop PC53.5

This data is from the PC World website, as I am looking for a new desktop, the rating system inspired me.

Calculations

With our data set loaded into Tableau, we are going to create the following Calculated Fields:

Path (bin)

Index

INDEX()

TC_Rating

WINDOW_MAX(MAX([Rating]))

TC_Shape

IF [Index] <= [TC_Rating] THEN
    1
ELSE
    IF [Index]-0.5 >= [TC_Rating] AND [Index] < [TC_Rating]+1 THEN
        0.5
    ELSE
        NULL
    END
END

TC_Size

IIF(ISNULL([TC_Shape]),0,1)

Now that we have the Calculated Fields created, let us start building our dashboard.

Worksheet

To start building our dashboard:

If all has gone well, you should see the following:

Now we can adjust the visualisation by:

And you should hopefully end up with the following:

and boom, you can experiment with a variety of shapes and include quarters as well as half values. However, we are done and you can find my QT Ratings Dashboard on Tableau Public at https://public.tableau.com/profile/toan.hoang#!/vizhome/RatingsChart_0/RatingsChart

Summary

I hope you all enjoyed this article as much as I enjoyed writing it. Do let me know if you experienced any issues recreating this Visualisation, and as always, please leave a comment below or reach out to me on Twitter @Tableau_Magic.

If you like our work, do consider supporting us on Patreon, and for supporting us, we will give you early access to tutorials, exclusive videos, as well as access to current and future courses on Udemy:

Also, do be sure to check out our various courses:

Exit mobile version