Forum Discussion
MP-iCONN
3 years agoResolver I
Matrix Table Filter issue
My scenario is I have a matrix table that consists of a the following rows: Work Order ID | Parent Item ID | Component Item ID | Required Date Then some other Values but the most import va...
- 3 years ago
Try this calculated column, which can be used as a matrix filter:
Work Order Status = VAR vWorkOrderID = Table1[Work Order ID] VAR vNegativeRows = FILTER ( Table1, Table1[Work Order ID] = vWorkOrderID && Table1[Available Comp] < 0 ) VAR vResult = IF ( ISEMPTY ( vNegativeRows ), "OK", "SHORT" ) RETURN vResult - Anonymous3 years ago
Hi MP-iCONN
You can create a new column:
Column = VAR A=FILTER('Table','Table'[Work Order]=EARLIER('Table'[Work Order])&&'Table'[Available]<0) RETURN IF(COUNTAX(A,[Work Order])>0,"Short","Ok")Best Regards,
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
DataInsights
3 years agoSuper User
Try this calculated column, which can be used as a matrix filter:
Work Order Status =
VAR vWorkOrderID = Table1[Work Order ID]
VAR vNegativeRows =
FILTER (
Table1,
Table1[Work Order ID] = vWorkOrderID
&& Table1[Available Comp] < 0
)
VAR vResult =
IF ( ISEMPTY ( vNegativeRows ), "OK", "SHORT" )
RETURN
vResult
- MP-iCONN3 years agoResolver I
I tested with your DAX code as well DataInsights and it also worked. Thank you very much to both you and Anonymous !