web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Need help in powerapps...
Power Apps
Answered

Need help in powerapps formatting

(0) ShareShare
ReportReport
Posted on by 105

Hi All,

I am pulling data from excel into powerapps gallery. I have one decimal colum with values like 0.2 , 0.02 etc

My user wants to see the decimal data in % in the gallery.
I applied below formatting on the label. Only issue is that it is showing 0.0% even when data is blank in excel. How can I fix this?

Text(Value(ThisItem.'colname')*100,"#0.0%")



Categories:
  • LaurensM Profile Picture
    12,516 Moderator on at

    Hi @dims12,

     

    We can check whether the column is blank - if not we display the percentage value:

    If(
     ThisItem.'colname' <> Blank(),
     Text(Value(ThisItem.'colname')*100,"#0.0%")
    )

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • dims12 Profile Picture
    105 on at

    I tested this but it is still returning 0.0% for blank values

  • dims12 Profile Picture
    105 on at
    If(
        ThisItem.'colname' <> Blank(),
        Text(Value(ThisItem.'colname' )*100,"#0.0%"),Blank()
    )

    tried this too still showing 0.0% for blank values in excel.
     
     
  • dims12 Profile Picture
    105 on at
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    @dims12 

     

    Did an additional test and you will have to check for literal empty string values:

     

    If(
     ThisItem.'colname' <> "",
     Text(Value(ThisItem.'colname')*100,"#0.0%")
    )

    Could you give the code above a try?

     

    If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.

    Thanks!

  • dims12 Profile Picture
    105 on at

    Thank you it worked.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard