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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
NewbieJono
Post Partisan
Post Partisan

Last Date

My date table is set to go up to today ()

 

one of my data table has data up to 01/03/2024.

 

i want to bring back the latest score from the data table. when I use last day with the date table it returns a blank

 

Latest - CSLatest = 
CALCULATE (
    [Score - CS,
    LASTDATE ( 'DIM - Date Table'[Date] )
)
1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but please try something like below whether it suits your requirement.

Jihwan_Kim_1-1713726010151.png

 

 

Jihwan_Kim_0-1713725990928.png

 

 

Latest - CSLatest = 
CALCULATE (
    [Score - CS],
    LASTDATE(SUMMARIZE(Data, 'Calendar'[Date]))
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @NewbieJono

 

@Ashish_Mathur @Jihwan_Kim Thank you very much for your prompt reply.

 

@NewbieJono Can you tell me if your problem is solved? If yes, please accept it as solution.

 

If you're still having problems, provide some dummy data and the desired outcome. It is best presented in the form of a table.

 

Regards,

Nono Chen

Ashish_Mathur
Super User
Super User

Hi,

With the setup as proposed by Jihwan, write this measure

Measure = calculate([Score - CS],lastnonblank(Calendar[date],calculate([Score - CS])))

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
NewbieJono
Post Partisan
Post Partisan

this works but its not allowing me to use the same period last year function with it

Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your semantic model looks like, but please try something like below whether it suits your requirement.

Jihwan_Kim_1-1713726010151.png

 

 

Jihwan_Kim_0-1713725990928.png

 

 

Latest - CSLatest = 
CALCULATE (
    [Score - CS],
    LASTDATE(SUMMARIZE(Data, 'Calendar'[Date]))
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Thank you, what does summarise do?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.