Forum Discussion
RAVICHANDRA
3 years agoFrequent 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" (Excel table attached just for reference onl...
- 3 years ago
create a calculated column like this:
andhiii079845
Solution Sage
3 years agoHi, 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