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
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
v-stephen-msft
Community Support
Community Support

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
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.