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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
t-atgeor
Microsoft Employee
Microsoft Employee

Custom Numeric Formats inside tables

Hi,

 

would like to change slightly the formatting of numbers inside tables, similar to the formatting feature in card visuals. For this reason, am using the FORMAT function and converting numbers to text. However, when trying to use K for thousands, M for millions my syntax seems to be incorrect.

 

The correction I am currently using is: "[>=1000]€ #.##0."K";[<=-1000]-€ #.##0." K";0". Could you please advise on any correction I could make inside the tables, to visualize the numbers in a more simple and easy to read way? (e.g $231,121,214.23 as $231.1M)

 

Moreover, is there a way to visualize negative percentage values in brackets and not with the minus sign (e.g (5%) instead of -5%)?

 

Ideally, I would not want to change any numbers into text, probably the FORMAT function is not the only one.

 

Will be very grateful for any advice on it.

 

Thank you and Regards,

 

Atanas

1 ACCEPTED SOLUTION
v-haibl-msft
Microsoft Employee
Microsoft Employee

@t-atgeor

 

To get your desired result, we need to change your number into text with following DAX formula. With number type, we can make it show the result which you mentioned above.

 

Per Col = 
FORMAT ( Table1[Percent], "#,##0.00%;($#,##0.00%)" )
Num Col = 
IF (
    Table1[Number] >= 1000000,
    FORMAT ( Table1[Number], "#,##0,,m" ),
    IF (
        Table1[Number] >= 1000,
        FORMAT ( Table1[Number], "#,##0,k" ),
        FORMAT ( Table1[Number], "General Number" )
    )
)

Custom Numeric Formats inside tables_1.jpg

 

Best Regards,

Herbert

View solution in original post

2 REPLIES 2
v-haibl-msft
Microsoft Employee
Microsoft Employee

@t-atgeor

 

To get your desired result, we need to change your number into text with following DAX formula. With number type, we can make it show the result which you mentioned above.

 

Per Col = 
FORMAT ( Table1[Percent], "#,##0.00%;($#,##0.00%)" )
Num Col = 
IF (
    Table1[Number] >= 1000000,
    FORMAT ( Table1[Number], "#,##0,,m" ),
    IF (
        Table1[Number] >= 1000,
        FORMAT ( Table1[Number], "#,##0,k" ),
        FORMAT ( Table1[Number], "General Number" )
    )
)

Custom Numeric Formats inside tables_1.jpg

 

Best Regards,

Herbert

Hi @v-haibl-msft,

 

thank you for the solution.

 

Regards,

 

Atanas

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.