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
John-Koz
Frequent Visitor

Calculate a Measure between 2 tables

Hi,

 

Trying to create a calculated measure between 2 tables.  One has many SKUs referenced and the other is the master:

 

Capture.PNG

 

New to PowerBI.  Trying to Multiply Qty Per Case 2018 by ACT 2018 JAN (Last Column on the right).  Thanks so much,

1 ACCEPTED SOLUTION

Thanks,

 

This is what I came up with:

 

QtyUsedJan = 'SKU Material List'[Qty per Case 2018] * RELATED('SKU Master Production'[ACT 2018 JAN])

 

It worked

View solution in original post

2 REPLIES 2
ricardocamargos
Continued Contributor
Continued Contributor

Hi @John-Koz,

 

If your model has relationship, you can use the RELATED function:

 

https://msdn.microsoft.com/en-us/library/ee634202.aspx

 

Also you might wanna calculate something before aggregation, u can do it using the SUMX, COUNTX... functions...

 

Ricardo

Thanks,

 

This is what I came up with:

 

QtyUsedJan = 'SKU Material List'[Qty per Case 2018] * RELATED('SKU Master Production'[ACT 2018 JAN])

 

It worked

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.