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,
I am having trouble deciphering your column headers and their values. Please format as table or provide datafile sample.
OKgo
Helper IV
8 years agoChrisMendoza, Thank you for checking in. Hope this helps
https://www.dropbox.com/s/jtasi1b8cu6mdi6/PBI%20Forum.xlsx?dl=0
- ChrisMendoza8 years ago
Resident Rockstar
OKgo,
Try:
Column = IF ( 'Table'[Assigned] = BLANK (), BLANK (), DIVIDE ( LEN ( 'Table'[Assigned] ) - LEN ( SUBSTITUTE ( 'Table'[Assigned], "ASSIGNED", BLANK () ) ), 8 ) )- OKgo8 years ago
Helper IV
Its beautiful! Thank you ChrisMendoza