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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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