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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
HaiVN
Helper III
Helper III

Format parameters in Feld parameter

Hello, 
I have a Field Parameter in a slicer with 2 selections: (1) percentage children and (2) total children in several zones of a  city. When I format the percentage to 1 decimal, the total is changed with 1 decimal også.  I want to show the percentage children with 1 decimal and total children with null decimal.  How can I do it?  

HaiVN_0-1774955574827.png

 

HaiVN_0-1774954967839.png

HaiVN_2-1774955109821.png

 

Thank you! 

 

2 ACCEPTED SOLUTIONS
donbuser
Resolver I
Resolver I

Good question — this is a common limitation when using field parameters.

What’s happening is that the format setting is being applied at the visual level, so both selections (percentage and total) end up inheriting the same formatting.

To handle this, you’ll want to control the format at the measure level instead of relying on the visual.

One approach that works well is to create a dynamic measure using SWITCH() and apply formatting inside it using FORMAT() based on the selected parameter.

For example, something along the lines of:

If percentage is selected → format with 1 decimal + %
If total is selected → format with no decimals

Just keep in mind that using FORMAT() will convert the result to text, so it’s best used when display is the priority (like in labels), not when you need the values for further calculations.

Alternatively, if you want to keep the values numeric, you could separate the measures and control formatting individually, then use the field parameter just for switching between them.

View solution in original post

MasonMA
Super User
Super User

On top of your Parameters, build a Measure: 

MasonMA_0-1774963579694.png

and Format the Measure with Dynamic: 

MasonMA_1-1774963620839.png

 

MasonMA_2-1774963659238.png    MasonMA_3-1774963676201.png

 

 

 

View solution in original post

4 REPLIES 4
v-ssriganesh
Community Support
Community Support

Hello @HaiVN,

We hope you're doing well. Could you please confirm whether your issue has been resolved or if you're still facing challenges? Your update will be valuable to the community and may assist others with similar concerns.

Thank you.

v-ssriganesh
Community Support
Community Support

Hi @HaiVN,

Thank you for posting your query in the Microsoft Fabric Community Forum, and thanks to @MasonMA & @donbuser for sharing valuable insights.

 

Could you please confirm if your query has been resolved by the provided solutions? This would be helpful for other members who may encounter similar issues.

 

Thank you for being part of the Microsoft Fabric Community.

MasonMA
Super User
Super User

On top of your Parameters, build a Measure: 

MasonMA_0-1774963579694.png

and Format the Measure with Dynamic: 

MasonMA_1-1774963620839.png

 

MasonMA_2-1774963659238.png    MasonMA_3-1774963676201.png

 

 

 

donbuser
Resolver I
Resolver I

Good question — this is a common limitation when using field parameters.

What’s happening is that the format setting is being applied at the visual level, so both selections (percentage and total) end up inheriting the same formatting.

To handle this, you’ll want to control the format at the measure level instead of relying on the visual.

One approach that works well is to create a dynamic measure using SWITCH() and apply formatting inside it using FORMAT() based on the selected parameter.

For example, something along the lines of:

If percentage is selected → format with 1 decimal + %
If total is selected → format with no decimals

Just keep in mind that using FORMAT() will convert the result to text, so it’s best used when display is the priority (like in labels), not when you need the values for further calculations.

Alternatively, if you want to keep the values numeric, you could separate the measures and control formatting individually, then use the field parameter just for switching between them.

Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors