DAX Powerpivot Formula Lastdate
Results 1 to 2 of 2

Thread: DAX Powerpivot Formula Lastdate
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Mar 2019
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default DAX Powerpivot Formula Lastdate

    Hi Guys

    Im looking for some help on a formula in a powerpivot to bring back the latest date for each Customer

    I am currently using

    =Maxx(filter(query,query[Customer]),query[Last_sale_date])

    but doesn't seem to work

    Any advice

    Regards
    Soph

  2. #2
    Board Regular
    Join Date
    Apr 2014
    Location
    Mitten State
    Posts
    222
    Post Thanks / Like
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Default Re: DAX Powerpivot Formula Lastdate

    Is there a reason you can't use the LASTDATE formula? Is this for a column or a measure? If a column you can use the EARLIER command.
    Code:
    New Column =CALCULATE (
        LASTDATE ( query[Last_sale_date] ),
        query[Customer]
            = EARLIER ( query[Customer] )
    )

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •