March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi, can anyone help me here?
I got store name, date, customer count and I calculated customer in total for each place.
How can I get the [customer total] / [my store total) in order to get the overlap ratio?
My store is the basis on which I compare the other store visits, so my store has to be 100%.
Store name | Date | customer count | customer in total | My store total | calculation [customer total] / [my store total] | overlap ratio % |
My store | Jan 2020 | 1 | 2 | 2 | 2/2 | 100% |
A | Jan 2020 | 1 | 1 | 2 | 1/2 | 50% |
B | Jan 2020 | 1 | 1 | 2 | 1/2 | 50% |
My store | Jan 2020 | 1 | 2 | 2 | 2/2 | 100% |
Solved! Go to Solution.
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.
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.
@Anonymous , Not clear, are you looking for
https://community.powerbi.com/t5/Desktop/Percentage-of-subtotal/td-p/95390
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% |
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
73 | |
68 |