Skip to main content
Community site session details

Community site session details

Session Id : KxZlBFZp6s2Ad7MtAS6AOv
Power Apps - Building Power Apps
Answered

Icons Not Appearing on Mobile device

Like (0) ShareShare
ReportReport
Posted on 9 Feb 2022 01:02:34 by

In my gallery I have circle icon which changes colour depending on another field in my gallery (Membership_End) for whatever reason this icon works perfectly fine on my PC, but when I switch to the mobile device which I hope to run the app on (Samsung

Galaxy tab A 2018), the icon just isn't there. Any help would be greatly appreciated, thanks.

 

Additional info: My datasource is a Cosmos Database that gets saved to a collection which is then used to populate the gallery.

 

Formula in icon (probably not the best but it works)

 

If(
 Value(ThisItem.Membership_End) = 0,
 RGBA(
 0,0,0,0
 ),
 DateValue(ThisItem.Membership_End) < Today(),
 Color.Red,
 DateDiff(
 Today(),
 ThisItem.Membership_End
 ) >= 1 && DateDiff(
 Today(),
 ThisItem.Membership_End
 ) <= 14,
 Color.Orange,
 RGBA(
 0,0,0,0
 )
)

 

 

Icons on PCIcons on PCMobile ViewMobile View

  • Verified answer
    MathewM Profile Picture
    on 14 Feb 2022 at 19:39:34
    Re: Icons Not Appearing on Mobile device

    I believe the problem was because of the way my tablet interpreted the date. The formula below appears to work on both browser and mobile app. Yet again, this probably isn't the most efficient solution, but it works. 

     

    If(
     Value(
     DateValue(
     ThisItem.Membership_End,
     "fr"
     )
     ) < Value(Today()),
     Red,
     DateDiff(
     Value(Today()),
     Value(
     DateValue(
     ThisItem.Membership_End,
     "fr"
     )
     )
     ) >= 1 && DateDiff(
     Value(Today()),
     Value(
     DateValue(
     ThisItem.Membership_End,
     "fr"
     )
     )
     ) <= 14,
     Orange,
     RGBA(0,0,0,0
     )
    )

     

  • MathewM Profile Picture
    on 09 Feb 2022 at 01:46:49
    Re: Icons Not Appearing on Mobile device

    @PowerRanger Thanks for the help, that hasn't fully solved the problem but it's definitely pointed me in the right direction.

  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on 09 Feb 2022 at 01:33:34
    Re: Icons Not Appearing on Mobile device

    @MathewM could be

     

    DateValue, TimeValue, and DateTimeValue functions in Power Apps - Power Apps | Microsoft Docs

     

    Try with applying a "fixed" Language to DateValue function. e.g."de"

  • MathewM Profile Picture
    on 09 Feb 2022 at 01:24:02
    Re: Icons Not Appearing on Mobile device

    @PowerRanger No, I have definitely published the app. Maybe it has something to do with the way the tablet interprets the date which breaks the formula?

  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on 09 Feb 2022 at 01:21:41
    Re: Icons Not Appearing on Mobile device

    @MathewM Have you just recently added the icons and did not publish the app?

  • MathewM Profile Picture
    on 09 Feb 2022 at 01:17:51
    Re: Icons Not Appearing on Mobile device

    @PowerRanger Just tested and it doesn't show the icon either.

  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on 09 Feb 2022 at 01:12:17
    Re: Icons Not Appearing on Mobile device

    @MathewM Have you tried to run the app in the browser on the mobile device?

  • MathewM Profile Picture
    on 09 Feb 2022 at 01:08:43
    Re: Icons Not Appearing on Mobile device

    @PowerRanger Brower on PC, and App on Mobile 

  • PowerRanger Profile Picture
    3,458 Super User 2024 Season 1 on 09 Feb 2022 at 01:07:52
    Re: Icons Not Appearing on Mobile device

    @MathewM Do you run the app using PowerApps App or within the Browser?

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473