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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
TCordeiro
Frequent Visitor

Formatting based on Parameter

Hello all,

 

I need to format numeric values based on the user choice of Parameter (dot or comma) and format those values:

Example:
If Parameter dot then 325.12
If Parameter comma the 325,12

Thanks in advance

3 REPLIES 3
Nathaniel_C
Community Champion
Community Champion

@TCordeiro ,

 

Try using FORMAT() and IF() If parameter =" ." then FORMAT (325.00) Else FORMAT(325,00).

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hello @Nathaniel_C thanks for the suggestion, but what I'm trying to do is a dynamic way, the 325 was only and example, I want to pass a number type column to DAX and then format it based on the parameter.

Do you have any idea how can that be made?

 

Thanks in advance.

Tiago

Hi @TCordeiro ,

 

Are you doing this in Power Query which uses the M lanquage, or doing this in Power BI using DAX.  Would you be able to give us an example? And of output? Where does the parameter come from?

 

Let us know,

 

Nathaniel

 

Please kindly read this post to get your question answered more quickly:

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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