Forum Discussion
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
- v-yulgu-msftMicrosoft 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.
$ 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 - v-yulgu-msftMicrosoft 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