To try this I just created a fact table ; sales id , customer , item , sales, and a dim ; customer , customer id,
and I want to bring the customer id to the sales fact table ; as a calculated column i did this two ways ,
as the id is just number I used maxx but i don't think this is a very good way just the best i could think of.
and second ;
What I've been trying to do is write a measure to do the same, so I have a pivot with the sales id, sales, and I want a measur that would give me the
id from the customer table id.
if it helps i've put the file on onedrive.
Richard
and I want to bring the customer id to the sales fact table ; as a calculated column i did this two ways ,
Excel Formula:
MAXX( RELATEDTABLE(Customer),Customer[Id])
and second ;
Excel Formula:
LOOKUPVALUE( Customer[Id],Customer[Customer],Sales[Customer])
What I've been trying to do is write a measure to do the same, so I have a pivot with the sales id, sales, and I want a measur that would give me the
id from the customer table id.
if it helps i've put the file on onedrive.
MrX.xlsx
1drv.ms
Richard