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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Latest Phase

Hello,

Can someone help me? Please

What measurement could I use to consider the most recent phase per HF - Unidade?

In this example, the Help Flag phase was the most recent

kfreitass_0-1649692480070.png

 

1 ACCEPTED SOLUTION
vojtechsima
Super User
Super User

Hello, @Anonymous 
You can do something like this (New Column in DAX)

Measure = 
var currentHF = table[HF_Unidade]
var max_date = MAXX(FILTER(table, table[HF_Unidade] = currentHF), table[created_at])
return MAXX(FILTER(table, table[created_at] = max_date && table[HF_Unidade] = currentHF ), table[current_phase])

 

View solution in original post

3 REPLIES 3
vojtechsima
Super User
Super User

Hello, @Anonymous 
You can do something like this (New Column in DAX)

Measure = 
var currentHF = table[HF_Unidade]
var max_date = MAXX(FILTER(table, table[HF_Unidade] = currentHF), table[created_at])
return MAXX(FILTER(table, table[created_at] = max_date && table[HF_Unidade] = currentHF ), table[current_phase])

 

Anonymous
Not applicable

@vojtechsima Its worked. Thank you so much

johnt75
Super User
Super User

You could create a measure as

Most recent phase = 
var HF = SELECTEDVALUE( 'Table'[HF - Unidade] )
return SELECTCOLUMNS( CALCULATETABLE( TOPN( 1, 'Table' 'Table'[created_at]), 'Table'[HF - Unidade] = HF ), "@val", 'Table'[current_phase])

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