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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
kenrick
Regular Visitor

Set default visual filter value within a M Connector

Am currently developing an M web Connector and am recieving default value information for a filter from my endpoint. Would like to use this information to set the default value of the filter in Power BI when the filter is added.

For example currently when a filter is added it looks like this:

kenrick_0-1705613041902.png

Where as I want it to look like this:

kenrick_1-1705613075438.png


Would it be possible to do this within the M connector? And if so is there any documentation on how I can achieve this?

Thanks!

3 REPLIES 3
kenrick
Regular Visitor

Hi @v-yangliu-msft ,

Thanks for the prompt response!

We already have a functional connector, what we are currently trying to figure out if we can specify a default value within GetRows() of the Table.View function.


Currently our GetRows() is returning possible column values, and from my understanding this is what populates the filter selections from the image above. What I am wondering if is we can also specific a pre-selected value as well within GetRows() or is there some other way of doing this?

Thanks,
Kenrick

Hi @v-yangliu-msft


Just wondering if there is any update on this investigation.

Thanks,
Kenrick

v-yangliu-msft
Community Support
Community Support

Hi  @kenrick ,

 

This is the related document, you can view this content:

https://skillzcafe.com/blog/microsoft/power-bi/creating-custom-data-connectors-with-power-bi-develop...

Creating your first connector - Hello World - Power Query | Microsoft Learn

Custom connector development FAQ - Power Query | Microsoft Learn

 

Best Regards,

Liu Yang

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

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!