Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Add custom column to Table A from Table D, based on column condition

Hi All,

 

This is how data model looks like: 

(Left to Right)

Revenue Table (* both *, composite key) Item Table (1 to * ) sku table  (1 to *) stock table

Revenue and stock, has a Year / sku_code column, where as Item table and sku table does not have Year column.

 

I would like to add revenue column from Revenue table to stock table at Year/ sku_code granularity. 

I tried RELATED(Revenue[revenue column]) , but it say relationshipo does not exist. 

Thanks a lot

 

 

 

 

  • @mridul, related will copy from one to many addresses only

    Refer to these columns

    1 on many sides

    Nombre de la ciudad: maxx(FILTER(geography,geography[City Id]-Sales[City Id]),geography[City])

    many to 1 side

    Nombre de la ciudad: sumx(FILTER(Sales,geography[City Id]-Sales[City Id]),Sales[Amount])

3 Replies