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
Anonymous
Not applicable

Filter prior to Append

I am attempting to append two queries which share the field, 'Stage'.

I only want to incorporate into the appended query rows with certain stages from query 1 and a second set rows with different stages from query 2.

Is there a way to filter the original queries prior to the append?

 

Would I need to create another 'sub' query for each of the primary queries containing only the stages I want, then append those 2 new/additional queries?

 

2022-01-04_08h30_22.png

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

If you're willing to work in the Advanced Editor a bit, then this isn't too bad.

 

Try defining the filtered tables first and then using them in Table.Combine:

let
    Opps = Table.SelectRows(#"Opportunity Line Details", each [status] = 9),
    Pipes = Table.SelectRows(Pipeline_Snapshots, each List.Contains({1..8}, [status])),
    Source = Table.Combine({Opps, Pipes})
in
    Source

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,


Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with more details about your problem.


Best Regards,
Stephen Tao

AlexisOlson
Super User
Super User

If you're willing to work in the Advanced Editor a bit, then this isn't too bad.

 

Try defining the filtered tables first and then using them in Table.Combine:

let
    Opps = Table.SelectRows(#"Opportunity Line Details", each [status] = 9),
    Pipes = Table.SelectRows(Pipeline_Snapshots, each List.Contains({1..8}, [status])),
    Source = Table.Combine({Opps, Pipes})
in
    Source

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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 Kudoed Authors