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
PaulMac
Helper IV
Helper IV

Can I Remove Duplicates When Using CONCATENATEX

Hi

I am using CONCATENATEX to concatenate customer numbers from 1 column but using USERELATIONSHIP to point to another date column to ensure all the required customer numbers are being puled through.

However the DAX measure will return duplicate values and I would appreciate some assistance to be able to show only distinct values in this list.
Thanks for taking the time to stop by and read my query.

Here is the DAX measure I am using:

Customer.Nos = 
CONCATENATEX(
    TblIDRP,TblIDRP[Customer Number],
    ", ",
    TblIDRP[Customer Number],
    ASC
) & ", " &
CALCULATE(
CONCATENATEX(
    TblIDRP,TblIDRP[Customer Number],
    ", ",
    TblIDRP[Customer Number],
    ASC
), 
USERELATIONSHIP( TblIDRP[Date Trustee Decision Sent], DimDate[Date]))

 

As always, any assistance is greatly appreciated.

Paul

2 REPLIES 2
amitchandak
Super User
Super User

@PaulMac , Why are you using the customer name 4 times,

 

it should like

calculate(
CONCATENATEX(Summarize(TblIDRP,TblIDRP[Customer Number]) ,TblIDRP[Customer Number],",", ASC),
USERELATIONSHIP( TblIDRP[Date Trustee Decision Sent], DimDate[Date]))

I am sorry to say that your sugestion didn't work @amitchandak 
See error message below.

Annotation 2022-11-14 130117.jpg

Paul

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.