Hello all!
I have two fact tables that have no active relationship. I need to take the sum of the quantity in one of them (transactions) and take it to the other (quote) --> this last have the Close price of different stocks. I need the quantity of the other table to multiply quantity * price.
I was able to get the quantity using ALLRELATIONSHIP and it works fine, but the accumulative measure is not working. I'm using this:
Accumulated Stock Qty =
https://1drv.ms/u/s!AvSFZ2hooRIDgdgFkvrnNGCtXLqlRQ?e=hYwdF1
Hope you can help me with this.
@AndresOHV , First create a measure with userelationship and then use it in the same formula, that should work
example
New Qty = calculate(Sum(Table[Qty]), userelationship(Table[Date], Date[Date]))
Accumulated Stock Qty =
CALCULATE(
[New Qty],
FILTER(
ALL(
'Calendar'),
'Calendar'[Fecha] <= MAX('Calendar'[Fecha]
)))
I forgot to mention, the relationship is between 2 fact tables, not between a fact table and calendar.
Hello @amitchandak
That's exactly what I'm doing, the first measure works fine but when I try to use the accumulated measure it doesn't work. It shows the same number as the new Qty measure.
Sorry I'm answering from a different account right now.