Reply
Highlighted
Regular Visitor
Posts: 19
Registered: ‎03-13-2017

LASTDATE GENERAL

Good morning, I would like you to share a situation that has arisen in my development. I need to add a value from the last existing date in the base, and put this measure in one table per company. But when I put this measure in the table by company, the measure takes the last date of each company, not the last general date. The calculation I made was as follows:

$ MONEY D = CALCULATE([MONEY];LASTDATE('Date Link'[Date]))

How can I made this work?

Community Support Team
Posts: 5,660
Registered: ‎09-21-2016

Re: LASTDATE GENERAL

Hi @Jacy,

 

According to current description, I am confused about your requirement. Please share some sample data stored in data view. Also, please share the screenshot of current output you have got and the screenshot of desired output.

 

Below is the result in my test based on my assumption.

 

1.PNG

$ MONEY D =
CALCULATE (
    [Money],
    FILTER (
        'Test lastdate',
        'Test lastdate'[Date]
            = CALCULATE (
                LASTDATE ( 'Test lastdate'[Date] ),
                ALLEXCEPT ( 'Test lastdate', 'Test lastdate'[Company] )
            )
    )
)

$ MONEY D 2 =
CALCULATE (
    [Money],
    FILTER (
        'Test lastdate',
        'Test lastdate'[Date]
            = CALCULATE ( LASTDATE ( 'Test lastdate'[Date] ), ALL ( 'Test lastdate' ) )
    )
)

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Community Support Team
Posts: 5,660
Registered: ‎09-21-2016

Re: LASTDATE GENERAL

Hi @Jacy,

 

Was my original reply helpful to your scenario? If so, please kindly mark the corresponding reply as an answer so that it can benefit more people. If you still have any question, please feel free to ask.

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.