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 / Add Conditional image ...
Power Apps
Answered

Add Conditional image in a table

(0) ShareShare
ReportReport
Posted on by 69

Hi everyone

I'd like to know if there is a way to add an image in my table depending of a value inside it

For example imagine, I have a table with the value cost which equals to expensive, so in this case, I'd like to add a image(for example sad smiley) in my table where the value expensive is associated to the line

Is there a way to do that?

And have you some advance tutorial for powerapps? Because I followed the tuto on EDX but it's only the basis of powerapps

 

 

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    You can use the Visible attribute of the image like that : ValueExpenssive>X .

  • timl Profile Picture
    37,424 Super User 2026 Season 2 on at

    Hi @freedumz

     

    One way to do this is to first upload two image files via the File > Media menu. The first image would be your sad smiley icon, and the second would be an empty placeholder image. Let's assume that these images are called SadSmiley and BlankImage.

    If you now add a gallery control to your screen, go to the advanced group in the properties pane and set the items property to:

    AddColumns(YourDataSource, 
     "CostImage", 
     If(Cost = "Expensive", SadSmiley, BlankImage)
    )


    Once you do this, you can display the "CostImage" field from within your gallery control.

    Hope that helps.

  • freedumz Profile Picture
    69 on at

    Thanks for your quickanswer

    When I do that, I have the path of my image which appears and not the image 😕

    But it's working I have blank or expensive which appears depending of the case

    So apparently, it's not possible to add image in Data table? so is there a way to increase the number of showing elements in a gallery?

     

  • Verified answer
    timl Profile Picture
    37,424 Super User 2026 Season 2 on at

    Yes, that's correct. The data table control doesn't support images.

    https://docs.microsoft.com/en-gb/powerapps/maker/canvas-apps/controls/control-data-table

    In a gallery control, you can use the insert menu to add additional fields. The way to this is to select the first item in the gallery control from the designer. The first item acts as a template for all the rows that appear in the gallery. From here, you can add an image control and set the Image property to ThisItem.CostImage.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Great solution thank you 

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 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard