Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
06-09-2019 03:11 AM
This is the DAX formula
DAX formula = PATHLENGTH ( SUBSTITUTE ( [ColumnName], "Word_to_search", "|" ) ) - 1
This is the M formula
=List.Count(Text.Split([ColumnName], "Word_to_search")) - 1
Below is the illustration of above formulas