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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Filtering a visualization in DirectQuery mode

Hi all,

 

I am using DirectQuery and have a created some charts using two source tables.

Now I would like to create a slicer to filter the charts. I know that measures cannot be used in a slicer, so I created a separate table manually using data from the source table in column A and added a category in column B.

 

In the example below, I would like to create a slicer with options "category a" and "category b".

 

Column AColumn B
Source datapoint 1Category a
Source datapoint 2

Category b

Source datapoint 3

Category b

Source datapoint 4

Category a

Source datapoint 5

Category a

 

I have then created a relationship between tables and dragged column B of my new table into a slicer, however the filter doesn't work on the charts.

 

1) I have noticed that the slicer is only working on a table which I have imported using a SQL statement

2) Also, if I use the slicer with a column from one of the source tables, this works fine

3) I have also tried to add the manually created category column to the table and page filters without success

 

Isn't it possible to filter a visualization from a source DB table using a manually created field? Is there another way of doing this?

 

Many thanks!

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

Please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business. Remember to hide sensitive data.

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

parry2k
Super User
Super User

@Anonymous is this new table has a relationship with the tables that are used in visuals?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Hi @parry2k  yes the tables have a linked together through a One to Many relationship.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors