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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
erhan_79
Post Prodigy
Post Prodigy

Calculated Column

Hi there ;

 

İ need your help about below issue   ; 

 

on the below chart i have two  order number and have 3 lines with details .I want to create a column whic one's name is "OTIF ORDER" and colour is yellow 

 

Formula rule will be :

  •  if even one cell is " Not OTIF " under " OTIF ITEM" column , then write to all  OTIF ORDER " column for an order      "  Not OTIF "
  • if an order's all lines is  "OTIF"  under "OTIF ITEM"  column then write to to all  " OTIF ORDER " column for an order " OTIF " 

 

Capture-1.JPG 

 

Thanks in 

1 ACCEPTED SOLUTION
speedramps
Super User
Super User

Please consider this measure.
 
Indicator =
CALCULATE(
SELECTEDVALUE('Table'[OTIF ITEM],"No OTIF"),
ALLEXCEPT('Table','Table'[Order No])
)
 
Let's explain how this works ....
 

The default row context is  Order no, item No and OTIF ITEM

 

CALCULATE overrides the default row context with ALLEXCEPT Order no.
This drops the Item No and OTIF ITEM default row filters and will process all the rows for the Order no.

 

The SELECTEDVALUE will return OTIF ITEM value is there is just one value for the  Order no.,
otherwise it will return “No OTIF”.

 

Hope you understand my explanation.

 

Remember we are BI community volunteers so please click the thumbs-up for me taking the trouble to help you and then accept the solution if it works.  Thank you !

View solution in original post

2 REPLIES 2
erhan_79
Post Prodigy
Post Prodigy

it is ok @speedramps  , thanks

speedramps
Super User
Super User

Please consider this measure.
 
Indicator =
CALCULATE(
SELECTEDVALUE('Table'[OTIF ITEM],"No OTIF"),
ALLEXCEPT('Table','Table'[Order No])
)
 
Let's explain how this works ....
 

The default row context is  Order no, item No and OTIF ITEM

 

CALCULATE overrides the default row context with ALLEXCEPT Order no.
This drops the Item No and OTIF ITEM default row filters and will process all the rows for the Order no.

 

The SELECTEDVALUE will return OTIF ITEM value is there is just one value for the  Order no.,
otherwise it will return “No OTIF”.

 

Hope you understand my explanation.

 

Remember we are BI community volunteers so please click the thumbs-up for me taking the trouble to help you and then accept the solution if it works.  Thank you !

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.