Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Totals in Table are incorrect

The values in the table below are accurate but the totals for "LT Amount"(from a related table) and "Variance" are incorrect. How do i fix this LT Amounts total should equal -17952.5 Variance total...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Create a Calculated Column : "RecentCreatedOn" = Calculate(Max(Table[Date]), Filter(Table, Table[Key] = Earlier(Table[Key]))

    then create a measure for the"MostRecentFactAmount" = Sumx(Filter(Table, Table[Date] = Table[RecentCreatedOn]), Table[Amount]).