DAX to count a word in a row

gmazza76

Well-known Member
Joined
Mar 19, 2011
Messages
769
Office Version
  1. 365
Platform
  1. Windows
Good afternoon,

I am trying to count how many times the "MODEL" appears in a string of data in my PowerPivot table.

How would be best to do this as I would expect the count for Model below to be 2, but I am unsure how to formulate this.
Can I add calculate to a search formula or whats the best way to move with this?

Code:
CS:20210412000000514,00001535020000034111,13835049,XXXX,Area,Brand,MODEL,,,,BoughtDate,area,Brand,MODEL,;

thanks in advance
Gavin
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Try this
=LEN(SUBSTITUTE([Data],"MODEL","MODEL0"))-LEN([Data])

where [Data] is the column Name.
 
Upvote 0
Solution

Forum statistics

Threads
1,223,699
Messages
6,173,903
Members
452,536
Latest member
Chiz511

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top