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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
romilv1
Helper I
Helper I

Rounding off with 2 formats in one column

Hi Folks,

 

I have one issue. There is one column that contains values in decimal places (upto 4 digits in after decimal). We need to column that brings rounding off values as well as % values.

 

See below:

romilv1_0-1712516553854.png

As you can see actuals column the values are all whole number. The values 57 should show as 56.83%.  I have written a formula in Power Query that says if the label contains % then we need to convert the value to 2 decimal places (example 58.63%) else we can round off to 0 decimal places (see below)

 

romilv1_1-1712516743532.png

 

As you can see the Amount.1 column shows correct value as desired for % column (i.e. Gross Profit %)

 

romilv1_2-1712517032059.png

 

As you can see below the Amount.1 column has also converted the value for Non % value to 0.00 (see Amount column as well)

 

romilv1_3-1712517178781.png

 

So the issue is that the Power Query formats/round-off properly for Non-Percentage values but we don't need 2 dp for Non % values

 

Ideal formatting would be:

 

romilv1_6-1712517578838.png

Both the arrow marked should show values as 58.63% whilst rest of values should be as-is. The issue is to bring non % values as whole number (example: 362,709) which is fine but then it also converts % values as whole number.

 

 

 

Thanks

 

 

2 REPLIES 2
danextian
Super User
Super User

Hi @romilv1 ,

 

Use dyamic string formats (applies to explicit measures only ).

danextian_1-1712532419859.png

The second Sum of Value is a measure.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

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


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Thanks but that is not what I am looking out for. The issue is showing 2 decimal for Percent column and 0 decimal places for Number column . You have mulltipled the % value by 100. In your example Sum of Value (second column) 0.95 should be 95.00 and 200.00 should be 200.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors