web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Formatting color and t...
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. 

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,362 Super User 2025 Season 2 on at

    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

  • Smittymitty95 Profile Picture
    8 on at

    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
    53,362 Super User 2025 Season 2 on at

    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

    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.

  • Smittymitty95 Profile Picture
    8 on at

    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

    Smittymitty95_1-1721106922320.png

     

     

  • Michael E. Gernaey Profile Picture
    53,362 Super User 2025 Season 2 on at
    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.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard