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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

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
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.