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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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]))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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