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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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