Hi all!
Ich have 2 transactional tables und two dimensional tables
Both transactional tables are linked (Many to One) to both dimensional tables.
Now I would like to add a calculated column into the first table with the number of orders from the second week respectively for the same article and same week.
How would you do that?
Solved! Go to Solution.
NewColumn=VAR _week=RELATED(Calendar[Week]) VAR _article=RELATED(Dimensional1[Article]) RETURN COUNTROWS(FILTER(Transaction2,Transaction2[Week]=_week&&Transaction2[Article]=_article))
NewColumn=VAR _week=RELATED(Calendar[Week]) VAR _article=RELATED(Dimensional1[Article]) RETURN COUNTROWS(FILTER(Transaction2,Transaction2[Week]=_week&&Transaction2[Article]=_article))
Hi there,
what you could try, create a primary key on both tables using concatenate of article and date/week field