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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
RAVICHANDRA
Frequent Visitor

PowerBi Dax table True False based on multiple rows values

Hello Experts!

Help me to get solution for the below issue, In Power Bi Dax table added calumn with IF condition and getting result like in "F"
RAVICHANDRA_0-1680429058446.png 
(Excel table attached just for reference only)


Currently am able get this!-

If "Stock" is >= "Required" then set to InventoryOk to "True" else set "False";

What I need?

But my requirement is if anywhere in the table with same orderId condition found "False" then all the rows with that OrderId could set "False" (Yellow highlighted should be False for example)

Thankfully -Ravi

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

create a calculated column like this:
Screen Capture #794.png

View solution in original post

2 REPLIES 2
Ahmedx
Super User
Super User

create a calculated column like this:
Screen Capture #794.png

andhiii079845
Solution Sage
Solution Sage

Hi, try this:

Measure = 
VAR _table = SUMMARIZE(ALL('Table'),'Table'[OrderID],'Table'[ItemID],'Table'[Stock],'Table'[Required],"_check",if('Table'[Stock]>='Table'[Required],"ok","not ok"))
VAR _orderID = SELECTEDVALUE('Table'[OrderID])
VAR _filter = IF(COUNTX(FILTER(_table,'Table'[OrderID] = _orderID && [_check] = "not ok"),'Table'[ItemID])>=1,"no ok","ok"
RETURN _filter

 

andhiii079845_0-1680433082838.png

 





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

Proud to be a Super User!




Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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 Kudoed Authors