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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
realme1
Regular Visitor

I need help creating a table which contains columns from different data source

realme1_0-1699349376137.png

I have the column SKU same in all the data sources, and I need add a table where I have SKU, Sell thru units, weeks, sell thru values. The key is SKU which is relating all the different data souces. Need the DAX for that table, do I use SUMX, Summarize or what?  

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @realme1 ,

 

I created some data:

Table1 and Table2

vyangliumsft_0-1699498964726.png

 

 

Here are the steps you can follow:

1. Create calculated table.

Table =
SUMMARIZE(
    'Table1','Table1'[SKU],'Table1'[Sell thru Units],'Table1'[Weeks],"Sell thru",
    MAXX(
        FILTER(ALL(Table2),'Table2'[SKU]=EARLIER('Table1'[SKU])),'Table2'[Sell thru]))

2. Result:

vyangliumsft_1-1699498964727.png

 

 

Best Regards,

Liu Yang

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  @realme1 ,

 

I created some data:

Table1 and Table2

vyangliumsft_0-1699498964726.png

 

 

Here are the steps you can follow:

1. Create calculated table.

Table =
SUMMARIZE(
    'Table1','Table1'[SKU],'Table1'[Sell thru Units],'Table1'[Weeks],"Sell thru",
    MAXX(
        FILTER(ALL(Table2),'Table2'[SKU]=EARLIER('Table1'[SKU])),'Table2'[Sell thru]))

2. Result:

vyangliumsft_1-1699498964727.png

 

 

Best Regards,

Liu Yang

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

realme1
Regular Visitor

Will you be able to do this in DAX because I dont have access to power quesry because source is not mine

yakamoz007
Helper I
Helper I

Hi,

you can do this in the Query Editor. Start-> Merge queries 

After that you can do some calculations on the column, because you have all the data in one table.

 

Bild 1.png

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.