Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
How do i create a new table with multiple calculated columns taken from a different table? Its just like a copy and past from one table to another but I'm unable to do it.
@Tooba_kazmi , Power query merge
Merge : https://radacad.com/append-vs-merge-in-power-bi-and-power-query
Or copy a column from one table to another
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
But I have multiple calculated columns in two different tables that i am trying to join in a new table. Since they are calculated columns there are not being shown in power query.
I've tried to get the columns from one table into a new one using Summarize function but it doesn't give the desired result.
Hi @Tooba_kazmi ,
Based on your description, I have created a simple sample:
Please try:
Table 2 =
ADDCOLUMNS (
'Table',
"V22",
CALCULATE (
SUM ( 'Table (2)'[V22] ),
FILTER ( 'Table (2)', [ID] = EARLIER ( 'Table'[ID] ) )
),
"V3",
CALCULATE (
SUM ( 'Table (3)'[V3] ),
FILTER ( 'Table (3)', [ID] = EARLIER ( 'Table'[ID] ) )
)
)
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |