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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Appending specific rows from one table to another using DQ

Hi there,

 

I've run into a bit of an issue. I have two tables, one which lists all physical products in local currency and another which lists all transactions in the transaction currency. What I want is to append the rows containing service products (in bold) which are sold in local currency to the list of all the physical products. Also, I'm working with DirectQuery. (If not possible to do generally, there are only a dozen relevant products so doing it one-by-one by ie ProdID is feasible.) 

 

The relevant part of the tables look something like those under, though there are a number of unique columns to each:

PhysicalProducts

OrderNoProdIDProdNameCustomerRevenueCUR
100259ThingyBob1203NOK
101262WidgetKen9408NOK
101239GadgetKen2317NOK
102284WhatnotsRob423NOK

 

AllTransactions

OrderNoProdIDProdNameCustomerRevenueCUR
100259ThingyBob112USD
101262WidgetKen962EUR
101239GadgetKen255EUR
101230TransportationKen324NOK
102284WhatnotsRob423NOK

 

The outcome I'm after:

PhysicalProducts

OrderNoProdIDProdNameCustomerRevenueCUR
100259ThingyBob1203NOK
101262WidgetKen9408NOK
101239GadgetKen2317NOK
101230TransportationKen324NOK
102284WhatnotsRob423NOK

 

 

2 REPLIES 2
camargos88
Community Champion
Community Champion

Hi @Anonymous ,

 

Can't you use custom SQL with UNION ?



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Anonymous
Not applicable

Sorry for the late reply, been trying (and failing) for a few days to make it work in every way I could imagine.

 

Unfortunately, SQL isn't exactly my speciality, so I'll have to wait for others who are better at it to return from vacation. 

 

Thank you for the suggestion!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors