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], "," )Saxon10
5 years agoPost Prodigy
Thank you so much for your help. It's working fine.