Forum Discussion

alexw94's avatar
alexw94
Helper I
3 years ago
Solved

Need help creating a PowerBI graph please.

Hi,

 

I am looking to create the follow graph (right of screenshot) from the data in table (left of the screenshot) in Power BI. 

 

So far I have the below table in my power query editor exactly as you see it. 

 

I have ranked the top 10 trips and want them to be shown in parts in the first column of my proposed graph, but each of the top 10 to be dived into 10 parts in the graph and the size depending on the Length (KM) value. I then want the remain (none top 10) just to be shown as one whole value within the bar named "Other". 

 

Any ideas how I can get this to represent this data, so far I am not having much luck. Note, it is important that the length figures are displayed in each part of the the first bar. The "Other" bar I need all the total values of Length KM where "Other" is in the Category column. 

 

Screenshot is a rough drawing from excel. 

7 Replies

  • It looks exaclty like a stacked column chart with km on Y-axis and TripNo in Legend, Category on Y axis. 

    Unfortunately the stacked column chart doesn't allow you to use the data label (i.e trip name) on the bars, but only the values. 

    • alexw94's avatar
      alexw94
      Helper I

      Thanks for your reply, I am not wanting to put the names of the columns on the bars. I know they can apear appear as you hover over them with the mouse. 

  • Is anyone able to help me with this please? I am a little stuck.

    • AdaKAda's avatar
      AdaKAda
      Helper I

      Hey Alex, did you run into any problems with my suggestion of a stacked column chart with km on Y-axis and TripNo in Legend, Category on Y axis?