Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
41 | |
21 | |
21 | |
14 | |
14 |
User | Count |
---|---|
42 | |
39 | |
33 | |
19 | |
18 |