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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Kudoed Authors