Forum Discussion

Saxon10's avatar
Saxon10
Post Prodigy
5 years ago
Solved

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...
  • amitchandak's avatar
    5 years ago

    Saxon10 , Try new column like

     

    Supplier code = CONCATENATEX(Summarize(FILTER(DATA,DATA[ITEM]=EARLIER(DATA[ITEM])),DATA[Supplier Code]),[Supplier Code],",")

  • PaulDBrown's avatar
    5 years ago

    Saxon10 

    Try:

    Supplier code =
    VAR _table =
        CALCULATETABLE (
            VALUES ( DATA[Supplier Code] ),
            FILTER ( ALL ( DATA ), DATA[ITEM] = EARLIER ( REPORT[ITEM] ) )
        )
    RETURN
        CONCATENATEX ( _table, DATA[Supplier Code], "," )