This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Say I have a chart like so:
| ID | Description |
| 888 | This is BLUE |
| 150 | This is dark BLUE |
| 850 | This is light GREEN |
| 422 | This is RED |
| 397 | This is really BLUE |
| 431 | This tends to be YELLOW |
| 214 | This seems like it's GREEN |
| 272 | This is product RED |
| 532 | This had the color RED |
I need to make a bar chart that will show a count of how many descriptions have the word "BLUE", "GREEN", "RED", "YELLOW". So the count should end up like so: Blue = 3, Green = 2, Red = 3, Yellow = 1
How can I achieve this?
This would be a live feed data so every day it needs to refresh whatever calculation it is making.
Solved! Go to Solution.
Ok well her is one example of the way you can solve it.
1. create a table with all your keywords
2 cross join that table to your table you want to search
3 create an if statement that returns the colour value of the description if it contains a keyword
4 remove all other rows.
see example attached.
Proud to be a Super User!
so must it find any of the words or be an exact match ie you want to know exactly how many are blue or, you want to know how many have any of those colours?
Proud to be a Super User!
Any description that contains that word, whether it used to be or is lightly that color, should come up in the filter. So I guess I should have added an expected count. It should come up as Blue = 3, Green = 2, Red = 3, Yellow = 1
and one last question, is this question reflective of your real data or do you have bigger volumes of what you are searching for, and how big is your data?
Proud to be a Super User!
Real data has about 30 columns and 4k rows
Ok well her is one example of the way you can solve it.
1. create a table with all your keywords
2 cross join that table to your table you want to search
3 create an if statement that returns the colour value of the description if it contains a keyword
4 remove all other rows.
see example attached.
Proud to be a Super User!
Thank you! This worked out great.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 38 | |
| 28 | |
| 27 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 37 | |
| 32 | |
| 26 | |
| 25 |