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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
nirrobi
Helper V
Helper V

Check for 2 condition for every line

Hi All,

 

I have to check for every line if:

1- it is the last status date regarding every FILE (column A)

AND

2- if the status id is F (column C)

 

in reality, the answers for the attached table are the green lines --> the last status and the status id is F.

 

thanks in advanced.

 

Nir.

 

 

HELP.GIF

1 ACCEPTED SOLUTION
KGrice
Memorable Member
Memorable Member

Hi @nirrobi. Try this as a calculated column:

 

Column = (TableName[Status Date]=CALCULATE(MAX(TableName[Status Date]), FILTER(ALL(TableName), TableName[File]=EARLIER(TableName[File])))) 
	&& (TableName[Status ID]="F")

 

StatusIsF.PNG

View solution in original post

2 REPLIES 2
v-haibl-msft
Microsoft Employee
Microsoft Employee

@nirrobi

 

If you want to color cell backgrounds, you can use Conditional formatting like below.

Check for 2 condition for every line_1.jpg

 

Best Regards,

Herbert

KGrice
Memorable Member
Memorable Member

Hi @nirrobi. Try this as a calculated column:

 

Column = (TableName[Status Date]=CALCULATE(MAX(TableName[Status Date]), FILTER(ALL(TableName), TableName[File]=EARLIER(TableName[File])))) 
	&& (TableName[Status ID]="F")

 

StatusIsF.PNG

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.