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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
2NV_DB
Frequent Visitor

Measure for data over multiple tables with multiple dimensions

Hi All,

I'm not sure how to articulate this correctly, but here goes:
I have the following tables and essentially I would like to build a measure where I am summing all the Sales vales in the sales table and multiplying by the multiplier for the category.

2024-08-23_14h34_02.png

 

So in the above case, for customer 400029, Dress should be equal to (1500*0 + 2000*0 + 100*0)=0

Thank you

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @2NV_DB ,

Based on my testing, please try the following methods:

1.Create the sample table.

vjiewumsft_0-1724661307559.png

2.Create the relationships between three tables.

vjiewumsft_1-1724661328784.png

 

3.Create the new measure to calculate sales values.

Sales with Multiplier = 
SUMX (
    'Sales',
    'Sales'[Sales] *
        LOOKUPVALUE (
            'Multiplier'[Multiplier],
            'Multiplier'[Customer Number], 'Sales'[Customer Number],
            'Multiplier'[Category], LOOKUPVALUE('Categories'[Categories], 'Categories'[Name], 'Sales'[Category Name])
        )
)

4.Drag the measures into the table visual. The result is shown below.

vjiewumsft_2-1724661334772.png

 

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @2NV_DB ,

Based on my testing, please try the following methods:

1.Create the sample table.

vjiewumsft_0-1724661307559.png

2.Create the relationships between three tables.

vjiewumsft_1-1724661328784.png

 

3.Create the new measure to calculate sales values.

Sales with Multiplier = 
SUMX (
    'Sales',
    'Sales'[Sales] *
        LOOKUPVALUE (
            'Multiplier'[Multiplier],
            'Multiplier'[Customer Number], 'Sales'[Customer Number],
            'Multiplier'[Category], LOOKUPVALUE('Categories'[Categories], 'Categories'[Name], 'Sales'[Category Name])
        )
)

4.Drag the measures into the table visual. The result is shown below.

vjiewumsft_2-1724661334772.png

 

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@2NV_DB , best it to merge these tables in Power query to get Multiplier value into the merged table and then you ca create a simple column

Merge Tables (Power Query) : https://youtu.be/zNrmbagO0Oo

 

= [Sales]* [Multipler]

 

Otherwise in dax , first add a column to get Cargories into the sales, then another column to get Multipler

refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

So in this case I would need to merge the Categories into the Sales tablefirst, and then this resulting table into the Multiplier table?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors