Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago

Divide a column value by another column in Matrix or table layout

Hello brilliant community,

 

I am new to Power BI. Would really appreciate if someone can help me out with this simple division of a column by another column to calculate Overdue percentage column:

 

My data looks like this:

 

Case counts    Overdue cases   %Overdue

  50                  15                     30.00%

  18                  15                     83.33%

 

I have tried this Overdue percent = DIVIDE ('Table'[Overduecases],'Table'[CaseCount], 0)

but it results in numerator..

6 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    If you are doing that as a measure, then I believe that should be:

     

    DIVIDE(SUM('Table'[Overduecases]),SUM('Table'[CaseCount]), 0)

    Then set it to a format of % in the Modeling tab.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks for your reply smoupre, but I need not get the sum of the columns. 

      For exaple in sample data in my post %overdue for the first row is calucalted by diividing 15 by 50 & multiplying with100

      • Anonymous's avatar
        Anonymous
        Not applicable

        You can include a column(%Overdue) and use the formula that you had used earlier but ensure to set the format for 

        %Overdue as Percentage and set the Default Summarization to Don't Summarize