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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
tahafanaswala
Regular Visitor

How to find last value based on cutoff date using DAX

I have these two tables (shown below): one is a table of people, and the other is a table of a score assigned to that person on a given date. I have a what-if parameter configured in Power BI. How can I use that parameter as a cut-off date to get the last score for each person (if the cutoff date is before any scores were assigned, the result should be blank). For example, if I have a cut-off date of 3/14/2023, the values persons 0, 1, 2 should be 30, 20, and 45 respectively. Thanks for your help!

tahafanaswala_0-1698390826590.png

tahafanaswala_1-1698390845293.png

 

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

1 REPLY 1
lbendlin
Super User
Super User

lbendlin_0-1698514870114.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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