Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Stacked column chart with four variables/columns

Hi, I have a table with the following configuration in my PBI: I would like to plot a stacked column chart so that column Value will be in the Y-Axis(SUM) and columns StartTime, DeviceN...
  • dm-p's avatar
    6 years ago

    Hi Anonymous,

    If I understand correctly, you're looking for a solution like in this post? If so, there's still not a way to do this using core visuals.

    Given the potential density of your data and variables, this is ultimately going to be difficult to perceive quickly and easily by users.

    This challenge is typically solved using one of the categories as a facet. This is known as a trellis or small multiple and are an excellent visualisation technique. Unfortunately, Power BI does not support this natively.

    There are some custom visuals that will produce small multiples. The following will produce bar/column charts with small multiples:

    If you're confident that one of your variables doesn't need to be dynamic and has low cardinality, then you can make use of the techniques in this blog post by the Power BI team - essentially you create duplicates of the same visual, with a suitable filter on each.

    Your sample data is a small window so I can't confirm how many unique values you'd get, but I'd consider using DeviceName as a candidate for each individual chart.

    I appreciate that this doesn't specifically answer your question but might give you some ideas with how you can proceed.

    Good luck!

    Daniel


    If my post solves your challenge, then please consider accepting as a solution to help other forum members find the answer more quickly 🙂