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
jpro1001
New Member

Pre-filter power bi javascript embedded report with dynamic criteria

Anyone know how I can pre-filter my data? I'm using the javascript client and embedded the report using the power bi service. Right now, it seems to get all of the data first then filter on the client. For example, I want to filter by the current month date range, but still allow the user to alter the date range and have it then fetch the extra data from sql server. How about directQueries. Would they allow pre-filters at the sql server source?

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

Hi @jpro1001 ,

You can refer the content in the following links to get it:

Embed your Power BI report with predefined filters

How to Embed and Filter a Power BI Report with the new Power BI Embedded JavaScript API

Configure report settings

Best Regards

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

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.