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 / Filter HTML Table to s...
Power Apps
Unanswered

Filter HTML Table to show NoDataText in Email

(0) ShareShare
ReportReport
Posted on by 5

Hello,

 

I'm using an onclick function in powerapps that sends an email and within the body filters an html table. When I have data it works great, but what I'm looking to achieve if there is no data can I input a simple message to replace header row with a no rows? I've playing around with different way based on forms like isBlank or NoDataText with no luck in the html table. Simple example below. Thx!

 

 

"<table width='500' border='1' cellpadding='1' style=font-size:10px style='border:1px solid black; border-collapse:collapse'>" &
 "<tr style='background-color:#efefef'>
 <th>Item</th> <th> Adjusted Cost </th><th> Remarks </th>
 </tr>
 <tr>" &
 Concat(
 Filter(
 'Cost Report', Item ; 'Remarks') ,
 "<td>" & Item & " </td>
 <td>" & 'Adjusted Cost' & " </td>
 <td>" & 'Remarks' & " </td>","</tr><tr>") & 
"</table>"

 

 

Categories:
  • SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    Hi @PEBKAC 

     

    Try somehting like this:

     

    "<table width='500' border='1' cellpadding='1' style='font-size:10px; border:1px solid black; border-collapse:collapse;'>" &
     "<tr style='background-color:#efefef;'>
     <th>Item</th> <th> Adjusted Cost </th><th> Remarks </th>
     </tr>" &
     If(
     IsEmpty('Cost Report'),
     "<tr><td colspan='3'>No data available</td></tr>",
     Concat(
     Filter(
     'Cost Report', Item ; 'Remarks') ,
     "<tr><td>" & Item & "</td><td>" & 'Adjusted Cost' & "</td><td>" & 'Remarks' & "</td></tr>")
     ) &
    "</table>"
    

     

    SpongYe_0-1707857517897.png

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • PEBKAC Profile Picture
    5 on at

    Hi @SpongYe  I appreciate your help and that's a thought I hadn't tried yet however not seeing any errors in the code something is breaking the send email step with the onclick function. I've tried to move both above and below the concat filter.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard