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
admin11
Memorable Member
Memorable Member

How to add one more SOURCE from my existing expression ?

Hi All

 

My below expression working for last 2 year :-

 

Source =
var _1=DISTINCT(UNION(all(SALES[SOURCE]), all(TARGET_[SOURCE])))
return
FILTER(_1,[SOURCE]<>BLANK())

 

To day i have Add new table = DO . So i need to modify the above expression to below :-

 

Source TEMP =
var _1=DISTINCT(UNION(all(SALES[SOURCE]),all(DO[SOURCE]), all(TARGET_[SOURCE])))
return
FILTER(_1,[SOURCE]<>BLANK())
 
I get erroe msg below :-
 
A table of multiple values was supplied where a single value was expected.
 
admin11_0-1652412086851.png

Hope some one can advise me where go wrong ?

 

Paul

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @admin11 

 

FILTER returns a table, and you are trying to create a Measure?  A measure can only return a single value, not a table - hence the error.

 

What is it you are trying to do exactly?  

 

Can you please supply your PBIX file.

 

regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

2 REPLIES 2
PhilipTreacy
Super User
Super User

Hi @admin11 

 

FILTER returns a table, and you are trying to create a Measure?  A measure can only return a single value, not a table - hence the error.

 

What is it you are trying to do exactly?  

 

Can you please supply your PBIX file.

 

regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


@PhilipTreacy 

Thank you very much for your reply to my post. Base on your reply , i will try to figure out how to solve it. in case i still unable can i post a PBI to you by send private msg to you.

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