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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
thedog123
New Member

Latest Test Result

Hi All,

I have been using PBI for a couple months now and have come across a problem that I'm having trouble with.

I have some columns with these headings:

Test Time (Datetime)|Test Result (Bool)|Identifier (Text)|   Latest Test Result (should be a Bool)

 

Each Identifier has several corresponding Test Times  and Test Results. I am trying to find the latest test result for each identifier and put it into the Latest Test Result column for each identifier. An example of the expected output into the Latest Test Result column is given below:

 

Test Time (Datetime)|Test Result (Bool)|Identifier (Text)|   Latest Test Result (should be a Bool)
01-01-01FalseaFalse
01-01-02TrueaFalse
01-01-03FalseaFalse
01-01-01FalsebTrue
01-01-02TruebTrue
01-01-03TruebTrue
01-01-01FalsecFalse
01-01-02FalsedTrue
01-01-03TruedTrue

 

I have managed to get the date of the latest test, and have tried looking up the result using that value, but have had some trouble with function calls. Any help would be really appreciated.

 

Thanks

1 ACCEPTED SOLUTION
vicky_
Super User
Super User

Hey try this formula:

Latest test result = CALCULATE(LASTNONBLANKVALUE('Table'[Test Time], MAX('Table'[Test Result])), ALLEXCEPT('Table', 'Table'[Identifier]))

View solution in original post

2 REPLIES 2
vicky_
Super User
Super User

Hey try this formula:

Latest test result = CALCULATE(LASTNONBLANKVALUE('Table'[Test Time], MAX('Table'[Test Result])), ALLEXCEPT('Table', 'Table'[Identifier]))

Awesome, that worked. Thank you so much!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.