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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
admin11
Memorable Member
Memorable Member

How to combine 2 union expression into 1 ?

Hi All

I have below expression at SOURCE table working fine :-

 
Source =
var _1=DISTINCT(UNION(all(SALES[SOURCE]), all(GL[SOURCE])))
return
FILTER(_1,[SOURCE]<>BLANK())
 
Source =
var _1=DISTINCT(UNION(all(SALES[SOURCE]), all(TARGET_[SOURCE])))
return
FILTER(_1,[SOURCE]<>BLANK())
 
May i know how to combine above 2 expression into 1 ?
 
I try below but i get error :-
 
Source =
var _1=DISTINCT(UNION(all(SALES[SOURCE]), all(TARGET_[SOURCE])&(GL[SOURCE])))
return
FILTER(_1,[SOURCE]<>BLANK())
 
Paul
1 ACCEPTED SOLUTION
sevenhills
Super User
Super User

Source =
var _1=DISTINCT(
  UNION(all(SALES[SOURCE]), 
               all(GL[SOURCE]),
               all(TARGET_[SOURCE])
     )
)
return
FILTER(_1,[SOURCE]<>BLANK())
 
 
Check this https://dax.guide/union/ for syntax.

View solution in original post

3 REPLIES 3
sevenhills
Super User
Super User

Source =
var _1=DISTINCT(
  UNION(all(SALES[SOURCE]), 
               all(GL[SOURCE]),
               all(TARGET_[SOURCE])
     )
)
return
FILTER(_1,[SOURCE]<>BLANK())
 
 
Check this https://dax.guide/union/ for syntax.

@sevenhills @Anonymous 

Thank you very much for both your reply , it work fine.

Anonymous
Not applicable

HI @admin11 

try 

UNION(UNION(all(SALES[SOURCE]), all(TARGET_[SOURCE])),(GL[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!

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.