Forum Discussion
ammartino44
Helper III
9 years agoHelp with relatedtable function
Hello. I'm tryiing to find =SUMX(Filter(RELATEDTABLE('Work Orders1'),'Work Orders1'[WO Type]="Cashout"),'Work Orders1'[WO Type]="Cashout")
- 9 years ago
Hi, ammartino44
From your formula, the data type of column 'Work Orders1'[WO Type] is text, while SUMX function evaluates to numbers or dates and cannot work with values of type String. Beside, the correct syntax of SUMX is:
SUMX(<table>,<expression>)
In your scenario, the formula might be like :
=SUMX(FILTER(RELATEDTABLE('Work Orders1'),'Work Orders1'[WO Type]="Cashout"),ColumnName)Best regards,
Yuliana Gu
v-yulgu-msft
Microsoft Employee
9 years agoHi, ammartino44
From your formula, the data type of column 'Work Orders1'[WO Type] is text, while SUMX function evaluates to numbers or dates and cannot work with values of type String. Beside, the correct syntax of SUMX is:
SUMX(<table>,<expression>)
In your scenario, the formula might be like :
=SUMX(FILTER(RELATEDTABLE('Work Orders1'),'Work Orders1'[WO Type]="Cashout"),ColumnName)
Best regards,
Yuliana Gu