Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

divison calculation for the same column

Each dealer has four types of contracts they can sell.

grouped as OL/CH and HP/FL 

 

I need to calc the percentage of all their deals which are OL/CH and HP/FL 

How can this be done? Other columns which may help are amount financed which is the total financed amount for each deal              end result should be 

 

John 30% OL/CH 70% HP/FL

Amy 24% OL/CH 76% HP/FL             

16 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    This is what it looks like on Excel 

    i need this on power bi 

     

    • amitchandak's avatar
      amitchandak
      Super User

      Anonymous , Based on what I see in excel

       

      CH/OL % = divide( sum(Table[CH/OL]), Sum(HP/FL)+sum(Table[CH/OL]))

       

      HP/FL % = divide( sum(Table[CH/OL]), Sum(HP/FL)+sum(Table[CH/OL]))

       

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        That is closer however, the values CH/OL are in the column called doc type in the data set which is why I need a measure which picks up "ch" and "ol" and calculating all of the amount financed for those 

  • Anonymous's avatar
    Anonymous
    Not applicable

    I need the forumla to pick up the dealer and then the columns in the table 

    for each dealer it needs to have the number of contract types it has by the amount financed and then divide the two types of contracts