Forum Discussion
Saxon10
5 years agoPost Prodigy
CONCATENATEX without duplication (DAX)
I have a two tables are data and report. Data: In Data table I have two columns are Item and supplier code, The item column and supplier code contain/stored as a number and text, both c...
- 5 years ago
Saxon10 , Try new column like
Supplier code = CONCATENATEX(Summarize(FILTER(DATA,DATA[ITEM]=EARLIER(DATA[ITEM])),DATA[Supplier Code]),[Supplier Code],",")
- 5 years ago
Try:
Supplier code = VAR _table = CALCULATETABLE ( VALUES ( DATA[Supplier Code] ), FILTER ( ALL ( DATA ), DATA[ITEM] = EARLIER ( REPORT[ITEM] ) ) ) RETURN CONCATENATEX ( _table, DATA[Supplier Code], "," )
PaulDBrown
5 years agoCommunity Champion
Try:
Supplier code =
VAR _table =
CALCULATETABLE (
VALUES ( DATA[Supplier Code] ),
FILTER ( ALL ( DATA ), DATA[ITEM] = EARLIER ( REPORT[ITEM] ) )
)
RETURN
CONCATENATEX ( _table, DATA[Supplier Code], "," )- Saxon105 years agoPost Prodigy
Hi,
Thanks for your quick reply. Your solution working well but I would like to get NA for item 1066 and 2000 insted of blanks.
- Saxon105 years agoPost Prodigy
I am trying to copy and paste the tables(Data&Report) here but I am receving the following error can you please advise how can I rectify the problem?
- Saxon105 years agoPost Prodigy
Thank you so much for your help. It's working fine.