Forum Discussion

joshua1990's avatar
joshua1990
Icon for Post Prodigy rankPost Prodigy
5 years ago
Solved

Stacked Bar Chart as timeline

Hello everyone! I have a table that contains the durations with the corresponding DateTimes: Start End Duration Type 01.01.2021 00:00:00 01.01.2021 05:00:00 05:00:00 1   Now I woul...
  • v-robertq-msft's avatar
    5 years ago

    Hi, joshua1990 

    According to your description, you want to create a stacked bar chart with the hours on the x-axis and sum up the individual types to see the performance like in a timeline chart, I think you can transform the data type of [Duration] first to put it into the chart first. You can try my steps:

    This is my test data based on your sample data:

    1. Create a calculated column:
    Duration(Hour) =
    
    LEFT([Duration],1)

    Then change the data type to decimal number:

     

    1. Then you can create a stacked bar chart and place it like this:

     

    And I guess this can be what you want.

    You can download my test pbix file here

     

    If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.

    How to Get Your Question Answered Quickly 

     

    Best Regards,

    Community Support Team _Robert Qin

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.