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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors