Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Filter Out Blanks from SP List

(1) ShareShare
ReportReport
Posted on by 4,702 Super User 2025 Season 1
I have SP List1.

I have Power App Gallery1 and Label1

SP List1 has Activity columns and Consumable columns.

Though the Activities and Consumables and related, the user
wants the lines posted separately to the SP List1.

This leaves blanks in each of the Activity and Consumable line
items.

I am displaying the Activities in Gallery1.

I am using Label1 to display total Activities.

Gallery1 is showing the blanks from SP List1, and Label1 is
including the blanks in the tally.

Is there a way to write a formula in the Gallery items (and Label1)
that eliminates the blanks from SP List1 in Gallery1 and Label1?

In the example there are six (6) Activities and thirteen (13)
Consumables. 
 
 
The tally shows nineteen (19) Activities and should only show
six (6).

The first Activity from SP List1.


The seventh Activity from SP List1.
  • Verified answer
    Phineas Profile Picture
    4,702 Super User 2025 Season 1 on at
    Filter Out Blanks from SP List
    MMcCloud, you almost got it.

    The following did the trick.
     
    Filter(Drop_Backup_Collection,Activity <> Blank())
  • ronaldwalcott Profile Picture
    3,497 on at
    Filter Out Blanks from SP List
    What do you mean by this
     
    Though the Activities and Consumables and related, the user
    wants the lines posted separately to the SP List1.
     
    You could use something like 
     
    Filter('SP List1', Not(IsBlank(Activities))) - to filter the list
     
     
    CountRows(Gallery1.AllItems) and this to count the count the gallery (not sure this is what you want)
     
  • Suggested answer
    MMcCloud Profile Picture
    96 on at
    Filter Out Blanks from SP List
    Good Evening, 
     
    In this situation I would personally would use the Filter formula.
     
    For example, 
    Filter(CustomGallerySample,SampleHeading<>"")
     
    Replace CustomGallerySample with your data source and SampleHeading with your column you are looking for an entry in.
     
    This would filter your data source for where it does not equal nothing.
     
    If this answers your question considering choosing my response as the answer and have a nice day! 

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

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

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,991 Most Valuable Professional

Leaderboard