Forum Discussion

PeterRLC's avatar
PeterRLC
Frequent Visitor
6 years ago
Solved

Trial Balance Total Incorrect

  I want the total of my Trial Balance to equal the displayed line values.  The problem is that the displayed line values are sorted to Dr or Cr based on their SUMMARY level sign, positive is ...
  • PeterRLC's avatar
    PeterRLC
    6 years ago

    Solved it! Thanks to Measure-Totals-The-Final-Word Measure total basics.  The correct calculation shows up circled in blue below.  Any problems with this solution?

     

    TB. Dr Var =
    VAR __Table = SUMMARIZE( xFMS_iFAMS_Base_Journal_FY19, [FMS-iFAMS GL], "TB Total", [TB. Dr S1])

    Return
    SWITCH(True(),
        HASONEVALUE( xFMS_iFAMS_Base_Journal_FY19[FMS-iFAMS GL]),[TB. Dr S1],
        sumx(__Table, [TB Total])
    )