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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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