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
roger_ha
Employee
Employee

Custom Filters for a Power BI data source

All, 

I tried hard to find a solution but I failed. Let me try to explain what I am tryin to do: I am connecting to a Power BI service as a datasource from Power BI desktop. As far as I understand, there is no way I can adjus0/overwritet the underlying data model in my app. So, I need to base on what I am getting. 

 

Now I would like to customize the filter for visuals, which are not connected in the data model but have common fields.

 

E.g. I have a table with areas and one with customers referring to the areaID. When I create a slice with the areas, the customer table does not filter (I would assume the underlying data model does some "detour" there). I would now like to filter the table visual containing the customer data to filter based on the selection in the area slicer. Is there a way to solve that?

 

Thank you

Roger 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @roger_ha,

 

You can't direct filter unrelated table records. In my opinion, I'd like to suggest you write a measure to get selected item from slicer, then compare row contents with selected items.

After these steps, drag it to visual level filters to apply filter on correspond visual.

 

BTW, live connection will disable most of edit feature so you can't do filter on source data or create filtered calculated table.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @roger_ha,

 

You can't direct filter unrelated table records. In my opinion, I'd like to suggest you write a measure to get selected item from slicer, then compare row contents with selected items.

After these steps, drag it to visual level filters to apply filter on correspond visual.

 

BTW, live connection will disable most of edit feature so you can't do filter on source data or create filtered calculated table.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

If we answered your question, please mark the post as solution, this will also help others.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


I would say no.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


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.