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

Notifications

Announcements

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:
I have the same question (0)
  • 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

    @LaurensM

  • 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard