cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
tonybrogan
Advocate I
Advocate I

Procurement Dashboard

Hi everyone, I'm struggling to find a solution for this, I'm trying to calculate the total spend per contract type with the option to slice the spend by month, year etc but as we have multiple suppliers across the contract types my first idea to just create a simple relationship between two columns fails miserably...

 

An example of the dataset is below: 

 

tonybrogan_0-1640785720023.png

Any help you can suggest will be greatly appreciated.

 

Thanks, 

Tony B 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@tonybrogan , Join Table 1 and Table 2 on supplier , use many to many bi-directional join

 

and then you can build this visual using table 2's contract type, and table 1 sum of amount

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

In Table 1, write this calculated column formula to bring over Contract Type from Table 2.

Contract Type = lookupvalue('Table 2'[Contract type],'Table 2'[Supplier],'Table 1'[Supplier])

To your visual, drag Contract Type from Table 1.  Write this measure

Spend = sum('Table 1'[Amount])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-shex-msft
Community Support
Community Support

Hi @tonybrogan,

Did amitchandak 's suggestions help with your scenario? if that is the case, you can consider Kudo or accept his suggestions to help others who faced similar requirements.

If that also doesn't help, please share more detailed information to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@tonybrogan , Join Table 1 and Table 2 on supplier , use many to many bi-directional join

 

and then you can build this visual using table 2's contract type, and table 1 sum of amount

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors