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

Multiplying Columns In Different Tables With Relationships - Calculated Column of Measure

Community,

Having not much experience with DAX I am having trouble with the following;

Below are my sample tables, their relationships and the values 

TableOpts2.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I would like to be able to multiply the "Raw Data" in the data table by the "Weightings" in the weightings table.

Should this be a measure or calculated column?

Do I need to create an additional table in modeling to do this?

 

Any help would be much appreciated!!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

I dont think you need any additional table.

 

There is already a relationships between these two tables.

 

You can use either a quick measure , measure or  calculated column for this :

 

1. Quick Measure 

Capture 30.PNG

2. DAX measure 

Measure = Sumx('Data Table','Data Table'[Raw Data]*related(weightings[weightings]))

3. calculated column

Column = 'Data Table'[Raw Data]*RELATED(weightings[weightings])

the answers is going to be the same.

Look at my output.

 

Capture 31.PNG

let me know for any question.

 

Thanks,

Tejaswi

 

 

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

I dont think you need any additional table.

 

There is already a relationships between these two tables.

 

You can use either a quick measure , measure or  calculated column for this :

 

1. Quick Measure 

Capture 30.PNG

2. DAX measure 

Measure = Sumx('Data Table','Data Table'[Raw Data]*related(weightings[weightings]))

3. calculated column

Column = 'Data Table'[Raw Data]*RELATED(weightings[weightings])

the answers is going to be the same.

Look at my output.

 

Capture 31.PNG

let me know for any question.

 

Thanks,

Tejaswi

 

 

 

Anonymous
Not applicable

@Anonymous 

 

This works as I need thanks!

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.