Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Combining text data from 3 different databases

Hi all,   I am stuck with combining the data of three datasets. I've been looking around for similar cases, but haven't found what I'm looking for yet. I'm afraid I can't share the file due to the ...
  • v-lid-msft's avatar
    6 years ago

    Hi Anonymous ,

     

    We can create a calculated colmun using following formula to meet your requirement:

     

    Column = 
    VAR n = [Article number]
    VAR t1 =
        FILTER (
            'Article description',
            'Article description'[Article number] = n
                && 'Article description'[Language] = "English"
        )
    VAR t2 =
        FILTER ( 'Article database', 'Transaction data'[Article number] = n )
    VAR articlename =
        IF (
            COUNTROWS ( t1 ) > 0,
            MAXX ( t1, [Article name] ),
            MAXX ( t2, [Article name] )
        )
    RETURN
        n & " " & articlename

     


    BTW, pbix as attached.

     

    Best regards,

    Community Support Team _ Dong Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.