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

CONCATENATEX - but exclude certain terms

Hello all,
 
I have a list of items that I need to present in a single cell on a table which are currently stored in individual lists, this is not a problem as I can use something like: 
 

Itemlist =
CONCATENATEX (
CALCULATETABLE (
VALUES ( Sheet1[Items] ),
ALLEXCEPT ( Sheet1, Sheet1[id])
),
[Items], ", "
)

 

Which works perfectly, however, I would now also like this function to cross-reference another column on the same sheet [exclusion] - and where the [item] is on the [exclusion] list, then it doesn't get added to the Item list. 

 

Any suggestions greatly appreciated! 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I've alterered the columns that this draws from now (by making a conditional column that does what I wanted the filter to do) so this works with my original code. 

 

Thanks for your suggestion though!

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , You can use

 

CONCATENATEX (
CALCULATETABLE (
VALUES ( Sheet1[Items] ),
ALLEXCEPT ( Sheet1, Sheet1[id]), filter (Sheet1, Sheet1[Col] ="Q")
),
[Items], ", "
)

 

or

 

 

calculate(
CONCATENATEX (
VALUES ( Sheet1[Items] ),
[Items], ", "
) , ALLEXCEPT ( Sheet1, Sheet1[id]), filter (Sheet1, Sheet1[Col] ="Q") )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

I've alterered the columns that this draws from now (by making a conditional column that does what I wanted the filter to do) so this works with my original code. 

 

Thanks for your suggestion though!

Anonymous
Not applicable

Thanks - that raises a circular dependancy issue, I'll look into it. 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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