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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Kenzaobd99
Regular Visitor

Filtering Power BI Visuals by Tags

I'm trying to filter my Power BI visuals based on specific tags from words table Tags1.pbix

 

Kenzaobd99_0-1715521119322.png

 

 

Here's the SQL query I'm working with:

SELECT title from meta m

left JOIN keywords k on m.id = k.id

left join words w on k.word = w.[index-tag] where tag = N'News'

 

INTERSECT

 

SELECT title from meta m

left JOIN keywords k on m.id = k.id

left join words w on k.word = w.[index-tag] where tag = N'Palestine'

 

I want to replicate this filtering behavior in Power BI visuals. I've tried using filters, but I can't seem to get it to work properly



 

Kenzaobd99_1-1715519419615.jpeg

 

Any suggestions on how to achieve this in Power BI? 

8 REPLIES 8
Ashish_Mathur
Super User
Super User

Hi,

Share some data to work with, explain the question and show the expected result.  Share data in a format that can be pasted in an MS Excel file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

Your tag will always compute to false, as the tag can only be A OR B, not A and B.  You were looking for "contains" maybe ?

unfortunately it's not a "contains", tags are made up of a single word

Then switch to "OR"

She is asking for AND. How to get to those rows that have both A AND B, not A or B. 

That would only work if you use advanced filtering in the filter pane, or many disconnected tables.

even advanced filtering doesn't work, you can try the pbix file. 

What do you mean by disconnected tables, do you have a specific solution to propose?

The PBIX does not have sufficient data for a DAX solution - the tags are not contained in the title.  If you want fuzzy matching you need to use Power Query or external tools.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.