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

3 REPLIES 3
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

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
Regular 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.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,372)