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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. 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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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