Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Formatting color and title

(1) ShareShare
ReportReport
Posted on by 8

I have a custom app here with a filter that filters items based on a choice column listed as effective. I now want to filter Diesel price and gasoline price to the top of the list and change the color to yellow for the entire row to the right. How do I bring these two up to the front and color the row all the way to right with yellow. I have provided a screenshot and an example of this. 

  • Michael E. Gernaey Profile Picture
    41,385 Super User 2025 Season 1 on at
    Formatting color and title
    Hi
     
    Apologies, I was reading all your other posts and want to circle back in case you still needed help. Its so much harder than it used to be since you cannot tag or get notifications.
  • Smittymitty95 Profile Picture
    8 on at
    Re: Formatting color and title

    Smittymitty95_1-1721106922320.png

     

     

  • Smittymitty95 Profile Picture
    8 on at
    Re: Formatting color and title

    This maybe useful 

    This is the coding for my gallery under the items panel

    Smittymitty95_0-1721106461782.png

     

    Smittymitty95_1-1721106461794.png

     

    Item Properties for my Fuel Location

    Smittymitty95_2-1721106461808.png

     

    Also Effective

    Smittymitty95_3-1721106461820.png

     

    This default feature on my drop down canvas creates the filter for effective items.

  • Smittymitty95 Profile Picture
    8 on at
    Re: Formatting color and title

    This is the list:

    Smittymitty95_0-1721105613686.png

     

    These are the columns in the list

    Smittymitty95_1-1721105613689.png

     

    The items in the list above and in the Power app are filtered by the effective column. The effective column is a yes/no choice column. The items shown are the ones listed as yes meaning currently effective. The rest are hidden in the app and in the list, this is the same for SharePoint. In power apps I used a dropdowncanvas to filter out the effective pieces of data.

     

    Smittymitty95_2-1721105613697.png

     

    Smittymitty95_3-1721105613701.png

     

     

    The list is growing and is dynamically connected to this SharePoint site users – the use of the list is to show the most recent fuel prices and display them. In the order as it appears in the list, I am close. I just need to switch the Division 1-7 to be under Gasoline and Diesel and separated the column by colors. As the list shows. I want it to show yellow across for Gasoline and Diesel and Blue for the Divisions.

  • Michael E. Gernaey Profile Picture
    41,385 Super User 2025 Season 1 on at
    Re: Formatting color and title

    Hi @Smittymitty95 

     

    Can you show me the list? Based on the order you had in the screen,. it didn't seem to match what you said, that's why I wrote it to put them first.

     

    Is this list going to grow? Will records get replaced? etc

     

    If for instance, Gasoline and Diesel are always first in the List and the others are in the order you want, then I would expect it to be like that in the picture.

     


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Smittymitty95 Profile Picture
    8 on at
    Re: Formatting color and title

    Hey Michael thanks for your response this is a blank vertical galley using the modern tools in SharePoint the data comes from a list in SharePoint. My goal is to have the same color scheme as the list and the same order of words as the list. For example, Gasoline and Diesel Grouped by yellow I have a drop-down canvas filter that filters these specific items to show. As you can see, they are all grouped by fuel location. And the divisions are grouped by blue. I just want to pull diesel and gasoline up make the rows yellow and the Divisions rows blue and keep them in order. 

  • Michael E. Gernaey Profile Picture
    41,385 Super User 2025 Season 1 on at
    Re: Formatting color and title

    Hi @Smittymitty95 

     

    Assuming this is a gallery correct? Are they stored in Dataverse of SharePoint? Is this a Collection of Data or the Table???

     

    You have to have a column to sort on or you have to do it a goofy way. Let's pretend you want to Sort and put those 2 first, but you have NO numeric, dates, anything to do it by. Then you have to improvise

     

    // New Collection

    Collect(myOrderedResults, LookUp(DataSource, Title = "Gasoline"));
    Collect(myOrderedResults, LookUp(DataSource, Title = "Diesel"));
    Collect(myOrderedResults, Filter(DataSource, Title <> "Gasoline" And Title <> "Diesel"));
    
    Now myOrderedResults has those 2 first
    
    
    

    As for highlighting

    Again assuming its a Gallery

     

    In the TemplateFill Property

     

    Switch(ThisItem.Title
     "Gasoline",
     Color.Yellow
     ,
     "Diesel",
     Color.Yellow
     ,
     Whatever Default Fill you want
    );


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

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,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard