Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Icons Not Appearing on Mobile device

(0) ShareShare
ReportReport
Posted on 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 at
    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 at
    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 at
    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 at
    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 at
    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 at
    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 at
    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 at
    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 at
    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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard