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 Apps
Unanswered

conditional image

(0) ShareShare
ReportReport
Posted on by 8

Hello

 

Question from a beginner 🙂

 

I am building a project app (to follow up projects)

On the project Status page I am showing the scheedule "mood"

So I have a datacard showing "on track" or "delayed" od "not started"

instead of showing text I would like to show an image (meteo image 🙂 )

 

I do have in my media ontrack.jpg delayed.jpg notstarted.jpg

 

How to show the image depending on the results of my datacard ? 

 

many thanks

br

Frederic

Categories:
I have the same question (0)
  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    You should be able to add Media > Image control to the status page and in the Image property of the Image control you would add a formula something like this:

     

    Switch(ThisItem.Status.Value, "on track", ontrack, "delayed", ontrack, "not started", notstarted)

     

    This is only an example. You will need to change the "ThisItem.Status.Value" to a formula that returns the project status.

  • Thrasymaque Profile Picture
    8 on at

    Hello and Thank you very much @Jeff_Thorpe 

     

    Nevertheless in my situation it doen't work

    the problem is that I did not explain that the value on track delayed and not started are coming from drill down box in my datasource Sharepoint

     

    so when I use the formula you kindly proposed It does not work on that kind of field

    on my datacard I have this info in Items to retrieve the info:  

     

    Choices([@IT_Portfolio_MonthlyProgress].ScheduleMood)"


    do you have any Idea of how I could proceed ?

    Please accept my apologies for not being clear enough in the 1st description

     

    many thx

    BR

    Frederic

  • Thrasymaque Profile Picture
    8 on at

       

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard