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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
e175429
Helper I
Helper I

Turn % into a Whole Number

Hello All,

 

I am trying to show a NPS score. When I enter the inital calculations, it gives me a %. How do I turn this into a whole number to just say -27?

e175429_0-1681403252677.png

When I change "Percentage" to "Whole Number" I get:

 

e175429_1-1681403306139.png

Which confuses me even more

1 ACCEPTED SOLUTION
DOLEARY85
Super User
Super User

Hi,

 

transforming a percentage to a number will always show 0 unless it's 100% then it will be 1. If you add some decimal places to the number you should see that 27% is 0.0027 

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @e175429 

Just muliply by 100 and change the data type to integer 

DOLEARY85
Super User
Super User

Hi,

 

transforming a percentage to a number will always show 0 unless it's 100% then it will be 1. If you add some decimal places to the number you should see that 27% is 0.0027 

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

Top Solution Authors