Forum Discussion
calculate Overlap ratio
- 6 years ago
Hi @nabe ,
With the columns "store name","Date","customer count",you can calculate out the columns:"customer in total","my store in total"&"overlap ratio",for the detais,you need 3 calculated columns as below:
Customer in total = CALCULATE(SUM('Table'[customer count]),ALLEXCEPT('Table','Table'[Store name]))My store in total = CALCULATE(SUM('Table'[customer count]),FILTER('Table','Table'[Store name]="My store"))Overlap ratio = FORMAT(DIVIDE('Table'[Customer in total],'Table'[My store in total]),"percent")And you will see:
For the related .pbix file,pls click here.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
Anonymous , Not clear, are you looking for
https://community.powerbi.com/t5/Desktop/Percentage-of-subtotal/td-p/95390
- Anonymous6 years agoNot applicable
thanks for your reply.
I'm not looking for the % of subtotal.
I want the % of the overlap between "my store" and other stores.
5 visitors to "my store" (100% ), within these 100% (or 5 people) , 1 visitor went to store A (1/5 20%), 2 visitors went to store B (2/5 40%).
*The customer count is calculated using the customer ID, so I know that they are the same customer.
store customer count overlap ratio My store 5 100% A store 1 20% B store 2 40%