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
SecretChimpanze
Frequent Visitor

Concatenatex to return unique values from a column based on filter

Hi,

 

I have the below formula that returns something like this --> cat-cat-dog-mouse

SecretChimpanze_0-1661930862267.png

 

Prod Tde Mth Concat Lvl1 = CONCATENATEX(FILTER(SUMMARIZE(Events,Events[trd_mth_prty_id_evnt_cd],Events[prod_grp_lvl_3_nm],Events[Trade Date (date)]),Events[trd_mth_prty_id_evnt_cd]=EARLIER(Events[trd_mth_prty_id_evnt_cd])),Events[prod_grp_lvl_3_nm],"-",Events[Trade Date (date)],ASC)

 

What I need is unique values only when it comes to the concatenation. So something like this --> cat-dog-mouse.

 

Hoping there is a way!

 

2 REPLIES 2
SecretChimpanze
Frequent Visitor

The error was due to _tab2 where there was a blank space in between the commas var _tab2 = summarize(_tab, ,Events

I fixed it but unfortunately it didn't work - I am still getting duplicate values

amitchandak
Super User
Super User

@SecretChimpanze , Try

 

Prod Tde Mth Concat Lvl1 =
var _tab = FILTER(SUMMARIZE(Events,Events[trd_mth_prty_id_evnt_cd],Events[prod_grp_lvl_3_nm],Events[Trade Date (date)]),Events[trd_mth_prty_id_evnt_cd]=EARLIER(Events[trd_mth_prty_id_evnt_cd]))
var _tab2 = summarize(_tab, ,Events[prod_grp_lvl_3_nm],Events[Trade Date (date)])
return
CONCATENATEX(_tab2,Events[prod_grp_lvl_3_nm],"-",Events[Trade Date (date)],ASC)

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

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.