Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
I want to calculate the max of a special character appears in a row. The 2 special characters are either "/" or " \" .
I would like to produce similar as below results using DAX.
I have this formula but it only considers one charracter '/', and i'd like to consider both in the max count.
Thank you so much.
@Tim01425 - This help?
Column = 
SWITCH (
    TRUE (),
    FIND ( "\", TableName[Path],, 0 ) > 0, LEN ( TableName[Path] ) - LEN ( SUBSTITUTE ( TableName[Path], "\", "" ) ),
    FIND ( "/", TableName[Path],, 0 ) > 0, LEN ( TableName[Path] ) - LEN ( SUBSTITUTE ( TableName[Path], "/", "" ) ),
    BLANK ()
)
 
Proud to be a Super User!
@Tim01425 - Also as a measure:
Proud to be a Super User!
Thank you so much for your hepl.
Is there a way to have a maximum betweem all rows? in this case it should be 8?
@Tim01425 - DAX Fridays #200: Calculate the MAX of a measure - YouTube
Proud to be a Super User!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.