Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Sum the number of times a string appears in data

Good afternoon everyone,

 

I am trying to figure out a way to accurately show how many times an installer had an installation. The problem that i am running into though is that the column of information that records who the installer was can sometimes contain multiple installers (if there were multiple installers present). I have 2 tables, one with the orders and one with the list of possible installers. So for example my data may look like:

 

Base Data


Order

Installer
1234Joe A
5678Jim B,Joe A
9012Jim B,Joe A,Frank R

 

Technicians


Installer
Joe A
Jim B
Frank R

 

I've tried using a measure that contains the following:

Installer Instances = 
SUMX(
    BaseData, 
    IF(
        CONTAINSSTRING(BaseData[Installer], SELECTEDVALUE(Technicians[Installer])), 1,0
    )
)

 Unfortunately that doesn't seem to find names if there are multiple per cell. Any ideas, i'm kinda stumped?

 

Thanks in advance!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I think i figured out a solution myself.

 

I took a big step back and instead just split the data in that column to create multiple rows. Once i changed the relationship data it seemed to be happy.

 

Not sure why that formula wouldn't work for me, but thank you for the help all the same!

View solution in original post

4 REPLIES 4
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous 

 

What is your expected result in above case?

 

 

Anonymous
Not applicable

My hope is that if i reduce the number of displayed orders, via a slicer based on date, that i can show the correct totals for the number of times installers have been deployed.

 

So, in the data set that i provided my numbers would be

Joe A. - 3

Jim B. - 2

Frank R. - 1

 

I would then display that result via a bar graph.

@Anonymous 

 

I tested your formula and it gives the stated results.

 

Am i missing something?

Anonymous
Not applicable

I think i figured out a solution myself.

 

I took a big step back and instead just split the data in that column to create multiple rows. Once i changed the relationship data it seemed to be happy.

 

Not sure why that formula wouldn't work for me, but thank you for the help all the same!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors