Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Calucalte weighting totals by supplier, using slicers to split by Supplier groups and divisions.

I have been going around in circles with this for some time now. I read articles regarding using Sumx, calculated columns and measures.

 

I have set of suppliers that work on a number of contracts where the contract maybe split 80/20 between suppliers.

 

I am trying to split the total value per supplier, then further by division using slicers

 

My aim is prodice the following table to display payments split by

  1. Supplier (which is a weighted calculation of Supplier Groups)
  2. Division

I have the following reference tables

  1. Payements (split by division and group name)
  2. Supplier Groups weighting (mapping the Supplier group, to suppliers and the weighting i.e. 80% of contract)
  3. Supplier Groups (naming convention for supplier groups)
  4. Suppliers (naming convention for supplier)

From this i created the following tables, the total is correct at £315,497,417.69 however the supplier or group of suppliers totals arent correct.

 

I have created 2 versions to work through. 

  1. I have created table directly from the payments data above, however as expected it bring up the full totals.
  2. I have used calculated columns


Group Weightings - Tables.jpgGroup Weightings - Visuals.jpg

 

Then i tried using calculated tables as follows:

 

Supplier spend (Group) = 

SUMMARIZE('Supplier Groups Weight 1', 
    'Supplier Groups Weight 1'[Group Name],
    'Suppliers'[Supplier Name], 
    'Supplier Groups Weight 1'[Weight],
    "Payments", SUM('Division Total'[Payments]), 
    "Total", MIN ('Supplier Groups Weight 1'[Weight]) * SUM('Division Total'[Payments])
    )
Division Total = 

SUMMARIZE('Payments',Payments[Division],
    Payments[Group Name],
   "Payments", 
   SUM(Payments[Payment Amount]), 
    "Total", MIN ('Supplier Groups Weight 1'[Weight]) * SUM(Payments[Payment Amount])
    )

Group Weightings 2 - Tables.jpgGroup Weightings 2 - Visuals.jpg

 

 

I have created the following reference table within Excel to use to validate. I am unable to get the slicers to work across divisions, suppliers and supplier groups.

Supplier Group Spend (excel).jpgSupplier Spend (excel).jpg

 

All source files are located here.

2 REPLIES 2
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

I am not sure what desired result would you want, could you please share your desired output screenshots for further analysis? Do mask sensitive data before uploading.

 

Best Regards,

Amy

Anonymous
Not applicable

Hi Amy

 

Thank you for the the response.

 

I will try and summerize / clarify my objective

 

Files:

  1. I have uploaded the anonomised data to OneDrive here

Objective:

Calculate the supplier spend, per division.

This is a calculation of a percentage of a (supplier) Group.

i.e. Supplier 1 = 100% of Group 01 and 80% of Group 16.

 

We would mainly focus on division 1+2, however would need visibility of spend on the other divisions.

These images would be on seperate reports

Objective.jpg

The next step would be to weight the performance of the supplier based on the percentage of spend by division. However this query is contained to only showing the supplier spend per division.

 

Thank you again for the help.

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.