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
Sony
Frequent Visitor

DAX Measure

Trying to figure out how to create a measure that performs a calculation for each region in the dataset then rolls it together.  For example, table 1 has Region and Sales (i.e. DEN, 1000) and table 2 has Region and Growth (i.e. DEN, 8%).  For each region, multiply sales X growth (1080 in the example) then sum all these together.  Table 1 and Table 2 are not related.  Many thanks...

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Sony 

 

The following measure should work with a relationship:

 

New Measure = 
SUMX(
    'Table 1',        
    'Table 1'[Sales] * RELATED('Table 2'[Growth])
)

________________________

If my answer was helpful, please click Accept it as the solution to help other members find it useful

Click on the Thumbs-Up icon if you like this reply 🙂


Website YouTube  LinkedIn

 

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

5 REPLIES 5
Fowmy
Super User
Super User

@Sony 

 

The following measure should work with a relationship:

 

New Measure = 
SUMX(
    'Table 1',        
    'Table 1'[Sales] * RELATED('Table 2'[Growth])
)

________________________

If my answer was helpful, please click Accept it as the solution to help other members find it useful

Click on the Thumbs-Up icon if you like this reply 🙂


Website YouTube  LinkedIn

 

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Pragati11
Super User
Super User

Hi @Sony ,

 

I think you will first need to have a realtionship between both of your tables, otherwise you can-not use individual columns from 2 tables to do a calculation.

 

Another way is using LOOKUPVALUE dax function, by getting one of the columns like SALES from your Table 1 to Table2 against regions.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Thank you.  Let’s say they are related…then what would the DAX formula look like?  Assuming this below:

 

Table1

Region, Sales

 

Table2

Region, Growth%

Hi @Sony ,

 

Can you provide some sample data for both of your tables along with the expected output?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Annotation 2020-12-07 103353.jpg

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.