cancel
Showing results for
Did you mean:
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
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.

```\$ 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.
Highlighted
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.

Announcements

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Get your latest community news and announcements.

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Top Kudoed Authors
Users Online
Currently online: 110 members 1,453 guests
Recent signins: