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
M_SBS_6
Helper V
Helper V

Return value using MAX date

Hi, 

I'm trying to create a new column based on the following logic, but not quite sure what I am doing wrong as its populating the same value for every row. 

 

VAR _Maxdate =

Calculate (

MAX (apps.date_in),

FILTER (apps, not (apps.name) in {"test",""}))

 

RETURN

LOOKUPVALUE(

apps.name,

apps.date_in, _maxdate, "")

 

Any ideas please? 

2 REPLIES 2
amitchandak
Super User
Super User

@M_SBS_6 , a new column

if( isblank([App.Name]) || [App.Name] ="test" , "no", max([Date]) &"" )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks for your suggestion but doesn't quote work. What I hope to see in this example is either "No" or "Test2" as that's the MAX value where its not "" or "test"

 

App.name  apps.date_in 

Test.   24/05/2023 14:20:09

Test1  24/05/2023  11:14:12

Test2 24/05/2023.   12:32:46

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors
Top Kudoed Authors