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 / Hide empty cells (colu...
Power Apps
Unanswered

Hide empty cells (columns)

(0) ShareShare
ReportReport
Posted on by 15

Hello, I have data in google excel sheet.. Each item (row) has filled different columns and I would to show only filled columns for each item.

If cell in column is filled everythink is OK. But if some cells are empty, I would to hide this row in app.

Vissible in attached picture - OK data in green circle, data to hide in red circle if there is empty cell in column. 

hide.jpg

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @mavako,

    Based on the issue that you mentioned,do you want to hide the data card if there is some empty field in a record?

    Could you please share a bit more about the scenario, is this a Display Form in your app?

    If so, I think you should set the Visible property of each data card.

    Firstly, you should check if the current field in the record is empty, if it is, then the data card will be invisible.

    Not sure the column type of you each field, I just list an example as below.

    Assume that you have a Text field, please set the Visible property of the data card as below

    If(!IsBlank(ThisItem.TextField),true,false)

    If you have other column types like Choice or Person, Date and time, you should modify the formula as below:

    If(!IsBlank(ThisItem.ChoiceField),true,false) // For Choice type
    If(!IsBlank(ThisItem.PersonField),true,false) //For Person type
    If(!IsBlank(ThisItem.DateField),true,false) //For Date and time type
    
    

    Hope it could help you.

    Regards,

    Qi

  • mavako Profile Picture
    15 on at

    Hello, I made example to explain in more detail 😉

     

    Input data - in column D (ADDITIONAL) are some cells empty

    data.jpg

     

    App BrowseScreen: 

    browser screen.jpg

    App DetailScreen with all cells filled is OK as I want:

    detail OK.jpg

    App DetailScreen with empty cell - DataCardValue (empty cell in column D) is hidden, but I would to hide DataCardKey (text ADDITIONAL) as well. I means to hide complete ADDITIONAL_Data_Card:

    detail NOK.jpgdatacard.jpg

     

    Regards

    Martin

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @mavako,

    Have you ever tried the solution I provided?

    I thought that you want to hide the whole data card in the Display Form. The solution I provided does hide the DataCardKey as well because I set the Visible property of the Data card rather than the control within it.

    Please check the screenshot as below, you could see that the whole data card is invisible.

    v-qiaqi-msft_1-1619597128431.png

    Therefore, on your side, please select the ADDITIONAL data card and set the Visible property as:

    If(!IsBlank(ThisItem.ADDITIONAL), true , false )

    Check if it could solve your probelm.

    Regards,

    Qi

  • mavako Profile Picture
    15 on at

    Great, It works now. I did something wrong previously.

    Thank you very much

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard