Forum Discussion
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
- amitchandakSuper User
Anonymous , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
divide( countrows(Table), calculate(countrows(Table), allexcept(Table, Table[Name])))
Percent of SubTotal or Total: https://www.youtube.com/watch?v=6jTildcV2ho&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=37
- AnonymousNot applicable
This is what it looks like on Excel
i need this on power bi
- amitchandakSuper 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]))
- AnonymousNot 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
- AnonymousNot 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