Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi guys!
It looks pretty sophisticated and I'm struggling for many hours.
So, I have Customers / Customer Categories (A,B,C) /Product Categories (X,Y,Z). My central table has the sales data (Customer No, Product No & Sales Amount) and there is also another table with customer data (Customer No & Customer Category) and another with products' data (Product No & Product Category), which are connected to the central one.
I've calculated the shares of the product categories to every customer category :
Customer Category | Product Categ. x | Product Categ. y | Product Categ. z |
A | 50% | 30% | 20% |
B | 40% | 40% | 20% |
C | 60% | 10% | 30% |
It also works fine with single customers
Customer | Product Categ. x | Product Categ. y | Product Categ. z |
Name1 | 30% | 40% | 30% |
Name2 | 50% | 30% | 20% |
Name3 | 20% | 40% | 30% |
So, let's say that Customer with Name 1 with shares 30/40/30 belongs to Customer Category B with product shares 40/40/20 as above.
The hard to do is to find the variance of every customer's product category shares to the shares of the products for his customer category.
It means that finally, I want to calculate 30-40 / 40-40 / 30-20 which will give -10/0/10.
Is it possible to create this measure and use it at the customer level?
Thanx
Solved! Go to Solution.
Hi, @kostask
Please correct me if I wrongly understood your question.
Please check the below picture and the sample pbix file's link down below, whether it is what you are looking for.
I created the sample and tried to apply your logic to my sample.
All measures are in the sample pbix file, and I hope you can easily follow the steps.
https://www.dropbox.com/s/qvigj4ihu246qcn/kostask.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: https://www.linkedin.com/in/jihwankim1975/
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi, @kostask
Please correct me if I wrongly understood your question.
Please check the below picture and the sample pbix file's link down below, whether it is what you are looking for.
I created the sample and tried to apply your logic to my sample.
All measures are in the sample pbix file, and I hope you can easily follow the steps.
https://www.dropbox.com/s/qvigj4ihu246qcn/kostask.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: https://www.linkedin.com/in/jihwankim1975/
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
@Jihwan_Kim Couldn't be better than your solution. Thanx, a lot Kim for your precise reply and your time. Great work!!!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
42 | |
23 | |
21 | |
15 | |
15 |
User | Count |
---|---|
45 | |
31 | |
30 | |
18 | |
17 |