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
HagenHawke
Frequent Visitor

How to Format Percentage and Whole Numbers in the same table

Hi Community,

 

Could you please help me to  format percentatge and whole numbers in the same matrix? I want  the matrix to show  % as percentage and numbers as whole number.

 

Below is a an example table.

CompanyMetric1H182H19
ACash earnings        1,200          2,208
ANet Interest Income        5,000          6,225
ATotal Operating Expenses-      2,554-        2,518
ANet Interest Margin %-2.0%-3.0%
CCash earnings           121             269
CNet Interest Income           321             520
CTotal Operating Expenses-         621-            369
CNet Interest Margin %-2.9%3.5%
ECash earnings        1,251          2,968
ENet Interest Income        7,215          6,213
ETotal Operating Expenses-      4,215-        4,578
ENet Interest Margin %-5.0%-6.0%

 

Thanks in advance.

 

Regards,

M

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@HagenHawke , You can use format function

 

Switch(Max(Table[Metric]) ,

"Net Interest Margin %", format([1H18], "percent") ,

"Total Operating Expenses", format([1H18], "#,###") ,

//add other

format([1H18], "#,###")

)

 

refer

https://radacad.com/dynamically-change-the-format-of-values-in-power-bi

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@HagenHawke , You can use format function

 

Switch(Max(Table[Metric]) ,

"Net Interest Margin %", format([1H18], "percent") ,

"Total Operating Expenses", format([1H18], "#,###") ,

//add other

format([1H18], "#,###")

)

 

refer

https://radacad.com/dynamically-change-the-format-of-values-in-power-bi

Thank you so much. It works.

 

Kind regards,

M

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.