Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Solved! Go to Solution.
Hi @alexw94 ,
Please try to create a calculated column.
Category 2 = IF('Table'[Category]<>"Other",'Table'[Trip No],"Other")
Result.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Is anyone able to help me with this please? I am a little stuck.
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?
Hi @alexw94 ,
Please try to create a calculated column.
Category 2 = IF('Table'[Category]<>"Other",'Table'[Trip No],"Other")
Result.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
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.
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.
Can you please share the Excel file you are using ?
I am not able to do that unfortunatley.