Forum Discussion
fahadarshad
Helper I
9 years agoFinding amount based on latest date in 2nd table
Hello everyone, I am new to Power BI and this is my first post on this community. Here is my Q. I have two tables Table1 Table 2 ID Result ID Amount Date ...
- 9 years ago
Phil_Seamark
Microsoft Employee
9 years agoHi fahadarshad
This worked for me on your test data. I created the following calculation, which takes advantage of the relationship between Table1 and Table2
My Amount = CALCULATE(
MAX('Table2'[Amount]),
LASTDATE('Table2'[Date])
)
- fahadarshad9 years ago
Helper I
Hi Phil
I am getting an error saying "a date column containing duplicate dates was specified in the call to the function."
- Phil_Seamark9 years ago
Microsoft Employee
Are you loading the measure on your sample dataset, or on a larger dataset?
- fahadarshad9 years ago
Helper I
Hi Phil
It is on a larger dataset.