Forum Discussion

jwin2424's avatar
jwin2424
Icon for Resolver I rankResolver I
4 years ago
Solved

Grab data from most recent row available

Hello,    I am trying to create a Card visual to show the current balance of my account. In the example below, I would lilke to have the card display the balance from the most recent row in the dat...
  • smpa01's avatar
    smpa01
    4 years ago

    jwin2424  please use the following

     

    _Balance = 
    CALCULATE (
        MAX ( 'Table'[Balance] ),
        FILTER (
            'Table',
            VAR _mxIndex =
                CALCULATE ( MIN ( 'Table'[Index] ), ALL ( 'Table' ) )
            RETURN
                'Table'[Index] = _mxIndex
        )
    )