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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.