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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
hello,
I have som issues with constructing a measure that does everything I want it to do.
Essentially, I want a measure that computes the share of units sold per customer and product. This share will later be used to allocate indirect costs from defective production per salesorder.
The data (I only specified the relevant data, there is a lot more):
table1: "salesdata" with the columns: Invoice_number,Customer,Product,Units_sold
Table2: "defective_production_cost" with the columns: production_ID, Products, defective_costs
Table3: Consists only of all unique customers. Table 1 and 2 are connected to table 3 with a one to many relationship. ( both directions in the case of table1 )
Importan features:
- When, e.g., 2 customers have bought the same product, and only one of them is selected, the share should stay the same as when both where selected.
- The total share (equivalent to the column total in a table), should allocate all the defective costs, so that it can be used to make a card or similar.
This measure will give me the correct share per sale across all filters, but the total equals the total share of all sales (everything);
Hi @mjohnsen ,
Can you share with me some screenshots of your data after hiding sensitive information?
Thanks for your efforts & time in advance.
Best regards,
Yadong Fang
User | Count |
---|---|
9 | |
8 | |
5 | |
4 | |
3 |