Forum Discussion

HelenaX's avatar
HelenaX
Icon for Helper I rankHelper I
5 years ago
Solved

Creating a chart with finish time as the value

I have a table which shows the finish time of a program (called CCP in the screen shot) for multiple countries. I would like to create a bar chart to show the different finishing time of each country...
  • v-deddai1-msft's avatar
    v-deddai1-msft
    5 years ago

    Hi HelenaX ,

     

    You also can use the following m query to calculate duration:

     

    Table.AddColumn(Source,"dunration", each Duration.Minutes([end time]-[start time]))

     

    Or use the following measure:

     

    CCP Duration = DATEDIFF(MAX(CCP_STATUS[CCP Start Time]), MAX(CCP_STATUS[CCP Finish Time]), minute)

     

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

     

    Best Regards,

    Dedmon Dai