Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Multiply a time count

Hi All,    I am new to PBI and I need some support, I am trying to multiply the values sitting on top of the bar graphs by the time values at the bottom of the graph.  The values is a count ...
  • v-yingjl's avatar
    v-yingjl
    4 years ago

    Hi Anonymous ,

    You can try this measure to get the result but actually text value could not be used in the bar chart singlly.

    Total Time =
    CONVERT (
        CONVERT (
            CONVERT ( CONVERT ( SELECTEDVALUE ( 'Table'[Time] ), DATETIME ), DOUBLE )
                * COUNT ( 'Table'[ID] ),
            DATETIME
        ),
        STRING
    )
    

    Best Regards,
    Community Support Team _ Yingjie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.