Forum Discussion
OKgo
Helper IV
8 years agoDAX help with LEN & SUBSTITUTE
I have a formula that works great in Excel, IF([@[Assigned]]="","",(LEN([@[Assigned]])-LEN(SUBSTITUTE([@[Assigned]],"ASSIGNED","")))/8")) Example entry from Table[Assigned]: ASSIGNED_Material I...
- 8 years ago
OKgo,
Try:
Column = IF ( 'Table'[Assigned] = BLANK (), BLANK (), DIVIDE ( LEN ( 'Table'[Assigned] ) - LEN ( SUBSTITUTE ( 'Table'[Assigned], "ASSIGNED", BLANK () ) ), 8 ) )
ChrisMendoza
Resident Rockstar
8 years agoOKgo,
Try:
Column =
IF (
'Table'[Assigned] = BLANK (),
BLANK (),
DIVIDE (
LEN ( 'Table'[Assigned] )
- LEN ( SUBSTITUTE ( 'Table'[Assigned], "ASSIGNED", BLANK () ) ),
8
)
)OKgo
Helper IV
8 years agoIts beautiful! Thank you ChrisMendoza