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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Luzadriana255
Helper II
Helper II

Updating the Status of different Steps for a particular request based on a particular value

Hello

 

I have a 5 step process for different requests (A, B and C in the table). If one step for a request have the value "Cancelled" (e.g. Step 2 for request A and Step 3 for request C), then all the status for all the steps of that particular request need to be updated to "Cancelled" in a new column (Updated status). If no step for a request have the status cancelled (e.g. Request B) then the status will remain the same for all the steps of that request in the Status column. Could you please help me to find a DAX Formula that can be apply for the "Updated status" column? Thank you!

 

Request

Step

Status

Updated Status

A

1

Finished

Cancelled

A

2

Cancelled

Cancelled

A

3

Finished

Cancelled

A

4

Pending

Cancelled

A

5

Finished

Cancelled

B

1

Finished

Finished

B

2

Pending

Pending

B

3

Finished

Finished

B

4

Pending

Pending

B

5

Pending

Pending

C

1

Finished

Cancelled

C

2

Finished

Cancelled

C

3

Cancelled

Cancelled

C

4

Pending

Cancelled

C

5

Pending

Cancelled

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Luzadriana255 ,

 

Here are the steps you can follow:

1. Create calculated column.

Updated Status1 =
var _select=SELECTCOLUMNS(FILTER(ALL('Table'),'Table'[Request]=EARLIER('Table'[Request])),"1",[Status])
return
IF(
    "Cancelled" in _select,"Cancelled",[Status])

2. Result:

vyangliumsft_0-1671758013521.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
Luzadriana255
Helper II
Helper II

Thank you!

Anonymous
Not applicable

Hi  @Luzadriana255 ,

 

Here are the steps you can follow:

1. Create calculated column.

Updated Status1 =
var _select=SELECTCOLUMNS(FILTER(ALL('Table'),'Table'[Request]=EARLIER('Table'[Request])),"1",[Status])
return
IF(
    "Cancelled" in _select,"Cancelled",[Status])

2. Result:

vyangliumsft_0-1671758013521.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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