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
Krunalbpatel
Helper III
Helper III

Adding custom date filter in power bi custom visuals

Hi,

 

I am developing Custom Visuals for Power BI report. I want to add custom date filter from the report UI. I want that it will filter the report data based on date selection on the report section. Power BI provide the default date filter but I want to add custom textbox and user will enter the date and based on that date report will be filter.

 

How can I add this in my custom visuals?

 

Can you please suggest me how to do this.

5 REPLIES 5
v-chuncz-msft
Community Support
Community Support

@Krunalbpatel,

 

This could be a challenge for custom visual. You may check if a slicer works, it is an alternate way of filtering.

Capture.PNG

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

Hi @v-chuncz-msft,

 

Yes, I know the slicer filter and that is I have already used in my report. But I want that I have a custom date picker control to select 2 dates. So is it possible or not. I know that it is a chanllenge. But Can It be possible to develop this kind of visual?

 

Regards,

Krunal Patel

@Krunalbpatel

Hi krunal did you developed Date Range Picker Custom visualization , If so i have some doubt in my code can you please help me??

 

Thanks

 

Its Very much helpful for me if you reply please

v-viig
Community Champion
Community Champion

I suppose that you should use Advanced Filter API to implement filtering in your own custom visual (example, usage doc).

 

Please let me know if that meets your requirements.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

@Krunalbpatel

In Sam's case, you can enter two dates instead of picking them on the calendar, so it should be possible. 

 

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.