cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Jacy Regular Visitor
Regular Visitor

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?

2 REPLIES 2
v-yulgu-msft Super Contributor
Super Contributor

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.
v-yulgu-msft Super Contributor
Super Contributor

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.

Helpful resources

Announcements
Community Highlights

Community Highlights

Find out what's new in the Power BI Community!

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 367 members 3,817 guests
Please welcome our newest community members: