Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
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
This is what it looks like on Excel
i need this on power bi
@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]))
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
Hi @Anonymous ,
Can you provide the pbix of the sample data? I don't quite understand what the doc type is. The attachment is the pbix file I created by myself, you can refer to it.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi
I've used this calculation however the values are under the wrong headings
CH/OP result is more likely to be the result for HP/FL
How can i switch the two so the results are more accurate
Hi @Anonymous ,
Try
CH/OL = CALCULATE(SUM('Detail'[Amount Financed]),FILTER('Detail','Detail'[doc type]<>"Operating Lease" && 'Detail'[Doc type]<>"Contract Hire"))
If you want to remove other filters, add the ALL/ALLSELECTED function
CH/OL = CALCULATE(SUM('Detail'[Amount Financed]),FILTER(ALL('Detail'),'Detail'[doc type]<>"Operating Lease" && 'Detail'[Doc type]<>"Contract Hire"))
or
CH/OL = CALCULATE(SUM('Detail'[Amount Financed]),FILTER(ALLSELECTED('Detail'),'Detail'[doc type]<>"Operating Lease" && 'Detail'[Doc type]<>"Contract Hire"))
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Just a thought but could it be <> in the formula as I need it to add up amount financed values for all of the CH and OL
almost solved the issue
So I am using the fact table to get the figures but the details for the managers are coming from a connecting table as i need to use two table for a differernt calculation
therefore, if i add the manager details from the same table it works but if i use the connecting table it does not work.
but that means the other calculation i need will not work so either way there is an issue
What can i di to make both work or use the connecting table
This is still not picking up the data correctly
Is there any other explanation for why it may not work?
The calculation method for the rest of the process is correct but its the first calculation which is the issue which means the results for the rest of the process are an issue
Hi @Anonymous ,
Sorry, not very clear, can you provide me with pbix file? Remember to hide private data.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |