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 / HOW TO NOT SHOW A SPEC...
Power Apps
Answered

HOW TO NOT SHOW A SPECIFIC DATA INSIDE A HTML TEXT WHEN IS BLANK...

(0) ShareShare
ReportReport
Posted on by

Hey guys, I need to not show data when a row is blank inside an HTML text...

 

 

Like this: 

 

IFISBLANKHTML.png

<td style='width: 213px;'>" & "$ " & If(IsBlank("-";'Resumo Transporte Total')) &"</td>

 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Gorilla_8 

     

    Try to change your formula to the following:

    ... "$ " & Coalesce('Resumo Transporte Total'; "-") & "</td>" ...

     

    I hope this is helpful for you.

  • Gorilla_8 Profile Picture
    on at

    @RandyHayes Thanks for the reply! 

     

    But the PowerApps says "The 'Coalesce' function has some invalid arguments"

     

     

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Gorilla_8 

    Which argument is it complaining about?  You can put your pointer over each for more detailed information.

     

  • Gorilla_8 Profile Picture
    on at

    All the function

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Gorilla_8 

    It should give more specifics on the issue, but anyway...

     

    What is 'Resumo Transporte Total'?

    What context is this Html control in?  A gallery, a Screen, a Form?

  • Gorilla_8 Profile Picture
    on at

    A gallery data...

     

    IFISBLANKHTML.png

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Gorilla_8 

    If 'Resumo Transporte Total' is in AllItems of the Gallery and it is a text field, then the formula provided - Coalesce('Resumo Transporte Total', "-")  - should work just fine.

    If you take all the logic out and just put 'Resumo Transporte Total' in your Concat function/Html builder, do you get the results?  (i.e. take out your original If function and my Coalesce function and just put the field name in)

  • Gorilla_8 Profile Picture
    on at

    Yes, I get the item on HTML editor, but I wanna show a "-" if is blank or not show the field.

     

     

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Gorilla_8 

    Yep, Coalesce will do the trick.

    Are we having a comma vs semicolon issue?  I was reviewing your original posting and noticed you are using semicolon separation in your formulas...If that is the case, then my formula to you should have been:

    Coalesce('Resumo Transporte Total'; "-")

  • Gorilla_8 Profile Picture
    on at

    Yes, I use ";", didn't work out...

    IFISBLANKHTML.png

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