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
qmestu
Helper III
Helper III

Custom formatting of number ommits 0

Hi,

 

I'm formatting a measure with the format function:

 

format([measure)],"#.#%")

 

When this is displayed in a textbox, if the value begins with a 0 (for example 0.6%) what appears is just ".6%". How can i make it so that there is a 0 instead of no value when the number is starts with 0?

Thanks.

1 ACCEPTED SOLUTION
speedramps
Super User
Super User

FORMAT(0.6,"#.#%") will display 60.0%

FORMAT(0.006,"#.#%") will display .6%
FORMAT(0.006,"0.#%")  will display 0.6%
FORMAT(0.006,"Percent") will display 0.60%
 

Thanks for reaching out for help.

I put in a lot of effort to help you, now please quickly help me by giving kudos.

Remeber we are unpaid volunteers and here to coach you with Power BI and DAX skills and techniques, not do the users job for them. So please click the thumbs up and accept as solution button. 

If you give someone a fish then you only give them one meal, but if you teach them how to fish then they can feed themselves and teach others for a lifetime.  I prefer to teach members on this forum techniques rather give full solutions and do their job. You can then adapt the technique for your solution, learn some DAX skills for next time and soon become a Power BI Super User like me. 

 

One question per ticket please. If you need to extend your request then please raise a new ticket.

You will get a quicker response and each volunteer solver will get the kudos they deserve. Thank you ! 

View solution in original post

2 REPLIES 2
speedramps
Super User
Super User

FORMAT(0.6,"#.#%") will display 60.0%

FORMAT(0.006,"#.#%") will display .6%
FORMAT(0.006,"0.#%")  will display 0.6%
FORMAT(0.006,"Percent") will display 0.60%
 

Thanks for reaching out for help.

I put in a lot of effort to help you, now please quickly help me by giving kudos.

Remeber we are unpaid volunteers and here to coach you with Power BI and DAX skills and techniques, not do the users job for them. So please click the thumbs up and accept as solution button. 

If you give someone a fish then you only give them one meal, but if you teach them how to fish then they can feed themselves and teach others for a lifetime.  I prefer to teach members on this forum techniques rather give full solutions and do their job. You can then adapt the technique for your solution, learn some DAX skills for next time and soon become a Power BI Super User like me. 

 

One question per ticket please. If you need to extend your request then please raise a new ticket.

You will get a quicker response and each volunteer solver will get the kudos they deserve. Thank you ! 

Not only does this not answer my question, i really don't see the point of the mission statement in your post.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.