Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
i am trying to return a value based on the maximum date the calculation i am using is...
max date = CALCULATE( SUM(test[MatchedRate]), max(test[Date]))
my error message is "A function MAX has been used in a True/False expression that is used as a table filter expression. this is not allowed".
Solved! Go to Solution.
To get the value on the most recent date use the following.
Latest by Date = CALCULATE ( SUM(test[MatchedRate]), FILTER ( ALL ( test), test[Date] = MAX ( test[Date] ) ) )
If you have multiple items on the last day though it will sum them all. If you just want one line item then you need an chronological Id/Index field.
Latest by Index = CALCULATE ( SUM(test[MatchedRate]), FILTER ( ALL ( test), test[Index] = MAX ( test[Index] ) ) )
To get the value on the most recent date use the following.
Latest by Date = CALCULATE ( SUM(test[MatchedRate]), FILTER ( ALL ( test), test[Date] = MAX ( test[Date] ) ) )
If you have multiple items on the last day though it will sum them all. If you just want one line item then you need an chronological Id/Index field.
Latest by Index = CALCULATE ( SUM(test[MatchedRate]), FILTER ( ALL ( test), test[Index] = MAX ( test[Index] ) ) )
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
93 | |
85 | |
84 | |
73 | |
49 |
User | Count |
---|---|
142 | |
133 | |
110 | |
68 | |
55 |