cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Any Instance Boolean Column Add

I am looking to add a column that returns a yes/no if there is any instance of a specific value in another table related to a linked key field. 

 

I have two tables, an Orders table and an OrderItemHistory table. They are linked together on the OrderItemID key field. The status history table has every status that particular item has gone through. What I want is to identify on the Orders table if the item went into a shipped status, "SHP". 

 

Some items get canceled or never ship so i'd like those excluded / tagged with a "No". Could be a 1,0 instead as well.

 

PBIX Sample File 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User I
Super User I

Re: Any Instance Boolean Column Add

ShipStatus = IF( Countrows(FILTER(RELATEDTABLE('Status History');'Status History'[Status]="SHP"))>=1;"Yes";"No")




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
Highlighted
Super User I
Super User I

Re: Any Instance Boolean Column Add

ShipStatus = IF( Countrows(FILTER(RELATEDTABLE('Status History');'Status History'[Status]="SHP"))>=1;"Yes";"No")




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Upcoming Events

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Upcoming Events

Community Summit North America – Join Online!

Join this community-driven Power Platform digital event for unbiased support and problem-solving.

Top Solution Authors