Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Custom Power BI Visual: Format Panel Numeric Input Contraints



I am building a custom visual and have a property "Number of Decimal Places" that is a user input within the format panel.  With the latest FormattingModel utils API, I am using the "NumUpDown" Formatting Property and Numeric in the Capabilities Value Type.  In the microsoft documentation ( it suggests using the following code to constrain the values of a numeric input: 

this.visualSettings = this.formattingSettingsService.populateFormattingSettingsModel(VisualSettingsModel, options.dataViews); = Math.max(0,; = Math.min(10,;

However, the formatting panel does not seem to immediately update, you have to click into a different card before the value updates to the contrained value. Is there a method to update the format panel immediately after the code shown above to reflect the contraint? Or a different method to contrain the value within the getFormattingModel() method?


Thank you! 


Helpful resources


2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.

Top Kudoed Authors