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

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

0

Power BI Embedded filter not accepting more than 100 values as parameter

Hi,

 

I have a requirement which I need to pass more than 100 values as a parameter to filter the data in PBI Embedd report.

 

As per my understanding It accepts only 100 like this:

 

const filter = {
$schema: "http://powerbi.com/product/schema#basic",
target: {
table: table,
column: column
},
operator: "In",
values: [1,2,3,4,5,6,7,8,9,10,11, ...] // accepts only 100 values
};
var embedConfiguration = {
type: 'report',
accessToken: accessToken,
id: reportId,
embedUrl: 'https://embedded.powerbi.com/appTokenReportEmbed',
settings: {
filterPaneEnabled: false,
navContentPaneEnabled: true
},
filters: [filter]
};
var $reportContainer = $('#content');
var report = powerbi.embed($reportContainer.get(0), embedConfiguration);

report.off("loaded");

// Report.on will add an event handler which prints to Log window.
report.on("loaded", function () {
// Log.logText("Loaded");
});

 

My question is how can we pass more than 100 values as a parameter since the filter array size is only 100.

 

Please help.

Status: Delivered
Comments
v-haibl-msft
Microsoft Employee

@v-shmirg

 

This is a limitation. We suggest to use advanced filter and filter by range as a mitigation for this limitation.

 

Best Regards,
Herbert

v-shmirg
Regular Visitor

@v-haibl-msft

 

Thanks for your response.

 

Could you please share that piece of code? would be very helpful.

v-shmirg
Regular Visitor

@v-haibl-msft

 

We have a requirement which we need to pass more than 100 values as a parameter through javascript or C#

v-haibl-msft
Microsoft Employee

@v-shmirg

 

Please refer to following sample code.

 

 

window.onload = function () { 
  var  Filter = {
   $schema: "http://powerbi.com/product/schema#advanced",
  target: {
    table: "Table",
    column: "value"
  },
  logicalOperator: "And",
  conditions: [
    {
      operator: "GreaterThanOrEqual",
      value: 1
    },
	{
      operator: "LessThanOrEqual",
      value: 100
    }
	
  ]
}

 

Best Regards,
Herbert

v-shmirg
Regular Visitor

@v-haibl-msft

 

Thank you so much for sharing the code.

 

Really Appreciated!!

Vicky_Song
Impactful Individual
Status changed to: Delivered