cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SeanTambling
Helper IV
Helper IV

how to remove empty lines in a datacardvalue

I have the code listed below as the TEXT of a datacardvalue. It works great. I was wondering if there is a way to NOT show the red 

middle section if it is empty and let the city,state,zip move up a line? Its not that big of a deal. I just think it could look nicer if when address2 is blank that the datacard box is more condensed.

ThisItem.Address1 & "

" & ThisItem.Address2 & "

" & City & " " & State & " " & Zip

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

Hi @SeanTambling ,

 

Use below formula instead to achieve this:

 

If(!IsBlank(ThisItem.Address2),ThisItem.Address1 & "

" & ThisItem.Address2 & "

" & City & " " & State & " " & Zip,
ThisItem.Address1 & "

" & City & " " & State & " " & Zip)

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-monli-msft
Community Support
Community Support

Hi @SeanTambling ,

 

Use below formula instead to achieve this:

 

If(!IsBlank(ThisItem.Address2),ThisItem.Address1 & "

" & ThisItem.Address2 & "

" & City & " " & State & " " & Zip,
ThisItem.Address1 & "

" & City & " " & State & " " & Zip)

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-monli-msft 

Thank you so much Mona! That worked Perfectly!!!

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,355)