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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
SupervisionT
Frequent Visitor

Filter for Customized Visual

Hi,

 

Is there is a way to save the original data before applying a filter ?

Evenmore better if there is a way to get back two data setes from the filter, one for the data that passed the filter and one for the data that didn't.

 

Yours,

A.Ali

5 REPLIES 5
v-viig
Community Champion
Community Champion

As far as I understand you, you should take a look at Visualization interactions in a Power BI report.

 

Please let me know if this meets your requirements.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Thank you for your reply.

 

I think I didn't explain my case very well so I'll explain more.

 

I'm developing a new visual in PowerBI/D3. In this visual I'm showing all the data on it (No filters). Then when I setup a filter or slicer I want to keep the original data and highlight the filtered data.
But if I applied filters and save the report, the next time I'll open the report it will not get the non-filtered data, it'll show only filtered data but I need to show both of them.
So my question is how to get the original data even if there is a filtered applied? can this achieved by SQL query? or there is other method ?

 

Yours,
Abdallah

 

Thank you for the clarification.

There's no way to get the original data if any filter is applied. Highlighting is only supported for selection.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Thank you Ignat for your reply,

 

So I need to come up with a workaround.

I appreciate it if you can help with the following questions:

 

1- Can we detect if there is a filter in the report by code ?

2- Can we clear the report filter by code ?

3- Can we reload the report or triger update by code ?

 

Yours,

Abdallah

As far as I know, all of these items are impossible using Power BI Csutom Visuals API.

However, these items might be achieved by using PowerBI-JavaScript (I'm not sure that this library might be integrated into custom visual).

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.