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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Hugo_Gallardo
Helper I
Helper I

Power BI Embedded: multiple filter selection, what if a user doesn't select a form value

Hello Team:

 

We have the following problem:

 

Whe are using a asp.net core 3 webapp, we are embeddind every visual on the webpage, about 20.

 

Thanks to you we managed to set filters to every visual but we have the following problems:

 

1) what if they select multiple variables on one checkbox selector , how do we send the data in one json selection?

2) What if they don't select one selector? we tried sending ["default"], ["isblank"] and only the selector, selected filtered it but the one not selected should show all values selected like in the powerbi.

3) Click default and return to the default values all visuals.

4) If the user wants to save a filter how can we achieve that?

 

Our code goes as follows:

 

function ReplaceFilters() {
var a = $("#In1").val();
var b = $("#In2").val();
var txt = $("#myselect1").val();
const filterList = [{
$schema: "http://powerbi.com/product/schema#basic",
target: {
table: "tCalendarioNestleN",
column: "SemanaNestle"
},
logicalOperator: "And",
conditions: [{
operator: "GreaterThanOrEqual",
value: a
}, {
operator: "LessThanOrEqual",
value: b
}]
},
{
$schema: "http://powerbi.com/product/schema#basic",
target: {
table: "tProductos",
column: "cveCategoria"
},
operator: "In",
values: ["All"]
}];

1 REPLY 1
Anonymous
Not applicable

Hi @Hugo_Gallardo 

Here I find a offical blog about how to use filters in Power BI embedding.

I hope it could help you solve your problem.

For reference: Control report filters

 

Best Regards,
Rico Zhou

 

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.