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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
FSantana
Regular Visitor

Count Values based on strings in different Table

Hello PBI Community, I'm having some issues with a measure hope anyone can help,

Let's say I have Table 1 and Table 2,

Table 1 looks something like this:

 

1A
2B
3C
4AB
5BC
6

ABC

 

And Table 2 has the list of letters:

 

AShort Text for A
BShort Text for B
CShort Text for C

 

I would like to have a bar chart with the count of rows in table 1 based on the letters it contains of table 2 for example Row 6 (table1) would count towards the 3 letters.

So the end result should be (imagine is a bar chart):

A 3

B 4

C 3

I'm kind of new to Power BI so I don't know if I should use a measure or a calculated column.

Any Suggestions? Any help is highly appreciated.

 

1 ACCEPTED SOLUTION
smpa01
Super User
Super User

@FSantana Please give this a try

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

View solution in original post

3 REPLIES 3
smpa01
Super User
Super User

@FSantana Please give this a try

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Thank you so much @smpa01 it worked!

I had more letters in my original table but it was just a matter of adding them in top of your suggestion.

No Problem !!! Glad to be of help to you 🙂

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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