cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Hide Data Card when value is blank

I have a bunch of data cards bound to columns in a SharePoint list. Is there a way to hide an entire data card on a DisplayScreen if the value associated with the data card is blank? FYI, the data card value is set to Parent.Default, where Parent is the SharePoint list column bound to the data card.

1 ACCEPTED SOLUTION

Accepted Solutions
Ancherl
Advocate I
Advocate I

Hi,@JML

According to your statement, I design a demo to test it. In my opinion, you should make sure that which data card may be blank and set the Visible property as follows:

If(IsBlank(ThisItem.fieldName),false,true)

Above is my understanding, if my thought is not correspond to your question, please feel free to contact me and clarify your question in more details

View solution in original post

4 REPLIES 4
Ancherl
Advocate I
Advocate I

Hi,@JML

According to your statement, I design a demo to test it. In my opinion, you should make sure that which data card may be blank and set the Visible property as follows:

If(IsBlank(ThisItem.fieldName),false,true)

Above is my understanding, if my thought is not correspond to your question, please feel free to contact me and clarify your question in more details

Hi,

 

I have amended my powerapp as you suggested and strangely enough it worked on the first datacard that I added this function to, but from then it will not work on any other datacard.

 

Any clues why this should be, please

 

Peter

CCiancimino
Frequent Visitor

I'm a little late to the conversation, but just ran into this issue with a view form where I wanted to hide empty fields. The new self function may be pointed to the data card default value. The below can be placed into the  (edit: visible property of the) parent, or applied to every field where you want to hide blank values.

 

Not(IsBlank(Self.Default))

The value returned is a bool, so no need for an if statement.

Bakertc384
Frequent Visitor

Hey, 

I have a table of data and if the value in that row = today date, then it looks up the mobile number for them to call, 

 

im adding this to power apps so that when a specific person is say oncall on a specific day, i  can have a button on power apps to call that label.text etc.

 

so far im using NOT(Isblank(thisitem.mobile)) to hide the data if it is blank but im not getting return for the next cell(row) that is not blank.

 

Table...

DateDayOncall?Mobile
1/01/2022=text(A2,"DDD")(blank)=IF(A2=TODAY(),VLOOKUP(C2,$K$1:$L$12,2,0),"")
02/01/2022 (today)=text(A3,"DDD")MEsame as above etc.(with mobile in etc)
    

 

it will return blank for D2, but wont find D3 value

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,042)