Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
PDG_VL
Helper I
Helper I

How to create dumbell chart using only default visuals

Hi,

 

I'd like to create a (line) chart / dumbell chart. I tried to play around with error bars on barcharts but the result is not what I need due to the fact tha I need to use small multiples.

 

I'd like to visualize the lenght of events compared to a baseline, so "what and for how long" happened before a certain point (vertical dotted line on attached screenshot).

I have 2 graph created in PBI and I'd like to find the way to merge those into one - if possible. So, I'd like to show each event separately:

- where only the start and end point of an event are connected,

- separate events are not connected (so end point of previous event to the start point of an event is not connected)

- I'd like to use the same coloring if event types are the same.

 

Here is a little visual aid:

PDG_VL_1-1697464279506.png

On the left: the result if I use the event index as legend (so events with different IDs represent diferent ranges or "dumbells" and are vertically separated). This is what I'd like to have but the colors are off due to the legend.

On th right: the same data but this time I used category as legend. The coloring is ok but events within the same category are connected. I'd like to remove teh connection whenever the dots are not representing the start and the end points of a single event.

 

Here is what I'd like to achieve:

PDG_VL_2-1697464346643.png

 

Sample data:
Main_evet: in my actual data I have multiple main events and I'm going to use this attribute for Small multiples

Sub_Event_ID: I'd like to use this as the colorcode

Sub_Event_Index: I'd like to use this to separate the diferent line pieces

Start_or_end & Value columns: Where and for how long an event should be visualized.

 

Using the below data smaple as example this is how I bulit the charts above:

(x axis: Value;

y axis: Sum of Sub_Event_Index;

Legend:

a) left: Sub_Event_Index

b) right:  Legend: Sub_Event_ID )

 

Main_eventSub_Event_IDSub_Event_IndexStart_or_EndValue
A11End-9970
A11Start-11138
A12Start-9667
A12End-4139
A13End-1015
A13Start-2636
A14Start-1009
A14End222
A25Start-12659
A25End-12648
A26Start-6289
A26End-4139
A37Start-12325
A37End-9970
A38Start-9680
A38End-4139
A39Start-2647
A39End-1015
A310Start-1009
A310End222

 

Does anyone have an idea how to achieve this - if possible? Thanks for the help!
PDG

3 REPLIES 3
lbendlin
Super User
Super User

is this any good?

Hi @lbendlin, thanks for the help.

Unfortunately the version you sent is the same I alerady created and described under the first attached screeshot in my original post:

"On the left: the result if I use the event index as legend (so events with different IDs represent diferent ranges or "dumbells" and are vertically separated). This is what I'd like to have but the colors are off due to the legend."

 

So basically, the format is OK (separate lines for each event), the colouring is not (colorcoding should be based on Sub_Event_ID column.

 

Thanks,

PDG

colorcoding should be based on Sub_Event_ID column

That's a current feature gap.  Line colors are manual at the moment.

 

lbendlin_0-1697745420290.png

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.