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
mgtaylor3
Helper I
Helper I

Summarized ColumnTable adding a Column to this table from another Summarised Table.

Good Afternoon,

 

I Have Table 1 which is a summarised version of a larger fact table..  Has Year, Fin Month, Various Columns and a Value.

 

I Have a 2nd Table, which too is a summarised table of a larger fact table.  Also Has Year, Fin Month and 1 Value.

 

I would like to Add Table2's Value Column, to Table 1.

 

First Table
Fin YearFin MonthColumn 1Value
20221Uk200
20221Us300
20221Eur100
20222UK400
20223UK250
Second Table
Fin YearFin MonthValue
2022130000
2022240000
2022350000

 

 

End result required

New Table
Fin YearFin MonthColumn 1Value2nd table Value
20221Uk20030000
20221Us30030000
20221Eur10030000
20222UK40040000
20223UK25050000

 

 

I will be Combining Year and Fin Month to get a singular ID Field  to get a relationship... Just Cannot seem to get the required Output...

 

Any help will be most appreciated.

 

Regards Mike.

 

 

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@mgtaylor3 , You can create a new in a column in power query or dax

 

[Year]*100 +[Month]

 

In both table.

 

Post that you can merge in power query

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

 

InDAX, you can use innerjoin , Crossjoin/filter to create a new table

 

Or simply join the table and use addcolumns to create a new table

 

https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/

 

Or copy column

 

refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@mgtaylor3 , You can create a new in a column in power query or dax

 

[Year]*100 +[Month]

 

In both table.

 

Post that you can merge in power query

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

 

InDAX, you can use innerjoin , Crossjoin/filter to create a new table

 

Or simply join the table and use addcolumns to create a new table

 

https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/

 

Or copy column

 

refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8

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.

Top Solution Authors