Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Jacy
Frequent 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
Employee
Employee

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

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.