Forum Discussion

moiran's avatar
moiran
Regular Visitor
10 years ago
Solved

Calculating quotient between columns

I'm really new to Power BI, trying to wrap my head around how I'm supposed to go about stuff. 

 

I have a table with two calculated columns: Registered hours and Invoiced hours, both containing decimal numbers.

 

I want to create a Card Visual that shows the quotient between the sums of these columns (Invoiced hours/Registered hours). How can I do that?

  • moiran - In your data model (table looking icon on the left), click "New Measure". Then, use the following formula:

     

    Measure = SUM([Invoiced hours]) / SUM([Registered hours])

    Then, put that measure in your card visual.

     

2 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    moiran - In your data model (table looking icon on the left), click "New Measure". Then, use the following formula:

     

    Measure = SUM([Invoiced hours]) / SUM([Registered hours])

    Then, put that measure in your card visual.

     

    • moiran's avatar
      moiran
      Regular Visitor

      It's so simple once someone explains it to you... Thank you!