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 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 | |
1 | 1 | 5 | Wednesday, January 04, 2017 | ||
2 | 1 | 10 | Thursday, January 05, 2017 | ||
3 | 2 | 15 | Friday, January 06, 2017 | ||
4 | 2 | 5 | Saturday, January 07, 2017 | ||
5 | 3 | 25 | Sunday, January 08, 2017 | ||
4 | 50 | Monday, January 09, 2017 | |||
5 | 60 | Tuesday, January 10, 2017 | |||
5 | 100 | Wednesday, January 11, 2017 | |||
Result into Table1 | |||||
ID | Result | ||||
1 | 10 | ||||
2 | 5 | ||||
3 | 25 | ||||
4 | 50 | ||||
5 | 100 |
Solved! Go to Solution.
Hi @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]) )
Hi Phil
I am getting an error saying "a date column containing duplicate dates was specified in the call to the function."
Are you loading the measure on your sample dataset, or on a larger dataset?
Hi Phil
It is on a larger dataset.
I can share with you the entire dataset. Here you go
https://www.dropbox.com/s/kxhsssa9wp0tpyt/Book1.xlsx?dl=0
This doesnt throw an error.
My Amount = CALCULATE( MAX('Table2'[Amount - Quote]), filter('Table2', 'Table2'[Created On]=MAX('Table2'[Created On]) ) )
Just checking if it is right
it doesn't throw an error, but doesnt throw any values out either.
Thank you!!!!!
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |