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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
erhan_79
Post Prodigy
Post Prodigy

Statu Column Calculating

Hi there ;

 

I need to create  a column which is calling " statu"  in my below table .Could you pls help to create to me .

Rules will be like that ;

 

System wil check based on order number ; 

 

  • IF for each order ;  all the order line's Result column are TRUE , for each order  all statu lines will be "CLOSE"
  • IF for each order  all the order line's Result column are FALSE , for each order all statu lines will be "OPEN"
  • IF for each order even one of the order line is FALSE , for each order all statu lines will be "OPEN"

For each order to seem that statu is "Close" ,  main rule is all the lines result must be TRUE , if not for each order status mut be "open"

 

you can see below example also 

Capture.JPG

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@erhan_79 , Create a new column

New column =
var _cnt = countx(filter(Table, [order number] =earlier([order number]) && [result] ="FALSE"),[order number])+0
return
if(_cnt >0 , "FALSE", "TRUE")

 

Use binary true false if needed

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@erhan_79 , Create a new column

New column =
var _cnt = countx(filter(Table, [order number] =earlier([order number]) && [result] ="FALSE"),[order number])+0
return
if(_cnt >0 , "FALSE", "TRUE")

 

Use binary true false if needed

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors