Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

How to link SOURCE field from 2 table ?

Hi All

I need some help one link these 2 table by SOURCE field :-

https://www.dropbox.com/s/j31znhkc0szgnng/PB_ISDN_AR%20SI_VER011%20ask%20how%20to%20link%20SOURCEC%20field.pbix?dl=0

Above is my PBI file :-

Paul

 

  • Hi,

    Append Sales and AR Table into a new table and remove all columns other than SOURCE.  Change the case to Upper case of this column and remove Duplicates from this column.  Now build a relationship from the SOURCE columns of both tables to the Source column of the new table you created.

  • As mentioned in my previous message, Append both tables in power query.

3 Replies

  • Hi,

    Append Sales and AR Table into a new table and remove all columns other than SOURCE.  Change the case to Upper case of this column and remove Duplicates from this column.  Now build a relationship from the SOURCE columns of both tables to the Source column of the new table you created.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Ash

      Thank you for your sharing , i have data model with out target table ,  i have link all SOURCE table it work fine :-

       

      In the past i have target table , for this i dont have target table , So i don't know how to  create a SOURCE link table :-

      Source = DISTINCT(UNION(all(SALES[SOURCE]), all(TARGET_[SOURCE])))

      The above script if i change to :-

      Source = DISTINCT(UNION(all(SALES[SOURCE])))

      it does not work.

       

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Icon for Super User rankSuper User

        As mentioned in my previous message, Append both tables in power query.