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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Connecting values from measures in different tables

Hello,

I have a measure in one table and I am trying to connect the values with a measure from another table. this is a continuation from my previous question https://community.powerbi.com/t5/Desktop/Sum-of-latest-values-of-all-groups/m-p/906426#M434408

The first measure is this (Gross Sales LE): 

Gross Sales LE HELP = 
VAR __myLastAmount = CALCULATE(LASTNONBLANK(Sales[Gross Sales LE (EUR)], ""), FILTER('Sales', Sales[EntryDate] = MAX(Sales[EntryDate])))
VAR __tmpTable = SUMMARIZE('Sales',[CustID], [Year], [ProductType], [Season],"__LastAmount",__myLastAmount)
RETURN SUMX(__tmpTable,[__LastAmount])

 

Gross Sales LE = 
VAR __myLastAmount = CALCULATE(LASTNONBLANK(Sales[Gross Sales LE (EUR)], ""), FILTER('Sales', Sales[EntryDate] = MAX(Sales[EntryDate])))
VAR __tmpTable = SUMMARIZE('Sales',[CustID], [Year], [ProductType], [Season],"__LastAmount",__myLastAmount)
RETURN SUMX(__tmpTable,[Gross Sales LE HELP])

The measure from the second table is similar, just called Net Sales. I would like to connect these measures based on fields CustID, Year, Season, ProductType which are in both tables. Is it somehow possible?

 

Below is some randomize sample data I created as an example (onedrive link):

https://1drv.ms/x/s!Ag_adS5VBxzvhps3bhu0eACgyRL1Tg

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Measures are actually table independant.  So you don't need to connect them at the measure itself.

 

Measures rely on the table relationships you already have, so if you data is already related you can just simply use measures together.

 

Measures can make use of inactive relationships, if you specify them with the DAX statement USERELATIONSHIP.  Generally i use that as part of a CALCULATE statement.

View solution in original post

3 REPLIES 3
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

Yes, it is possible. You could share your sample pbix file to us if you don't have any confidential information. 

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Anonymous
Not applicable

Measures are actually table independant.  So you don't need to connect them at the measure itself.

 

Measures rely on the table relationships you already have, so if you data is already related you can just simply use measures together.

 

Measures can make use of inactive relationships, if you specify them with the DAX statement USERELATIONSHIP.  Generally i use that as part of a CALCULATE statement.

Anonymous
Not applicable

Thank you, properly connecting the tables together actually fixed my issues and then the measures were pretty simple to create.

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors