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

merge two tables on Directquery Mode

Hi, 

 

I have two tables in DirectQuery mode: V_demandeStockD and V_tranStockD.

 

achrafkasmi_1-1674205362324.png

I want to merge the two tables , and adding a columns on V_demandeStockD to have the ItemCode and Dscription from V_tranStockD for each expr1.

 

PS: there's a relation between Expr1 on V_demandeStockD and DocNum on V_transStockD.

 

achrafkasmi_3-1674205664186.png

Can you please help me add those columns in the table Tasks?

 

 
2 REPLIES 2
achrafkasmi
Helper I
Helper I

hello, i work on a directquery MODE , i can't add a new table , i want to add the columns on V_demandeStockD to have the ItemCode and Dscription from V_tranStockD for each expr1.

 

btw i tired lookup fonction but it's not working : 

Mesure 21 = LOOKUPVALUE(V_transStockD[ItemCode],V_transStockD[Expr1],V_demandeStockD[DocNum])

 

thanks 

 

Mahesh0016
Super User
Super User

Table =
UNION (
    SELECTCOLUMNS (
        V_demandeStockD,
        "ColumnName", [tablecolumn],
        .,
.,
.,
"ColumnName", [tablecolumn]     ),     SELECTCOLUMNS (         table2,         "ColumnName", [tablecolumn],         
.,
.,
.,
"ColumnName", [tablecolumn]     ) )

@achrafkasmi  i hope this helpyou. 

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
Top Kudoed Authors