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 / empty space in vertica...
Power Apps
Answered

empty space in vertical gallery image

(0) ShareShare
ReportReport
Posted on by 22

I have a canvas app with vertical gallery connected to a data source that has image column that store images on some but not all rows.

When the vertical gallery populates its fields from the data source, it shows big blank white space if no image in the source data row.

I want to get rid of the empty white space or hide it when no image.

 

without image: 

chuck3138_0-1681735307989.png

 

 

with image. 

chuck3138_1-1681735350418.png

 

 

 

 

Categories:
I have the same question (0)
  • WiZey Profile Picture
    3,023 Moderator on at

    Hello @chuck3138 ,

     

    Basically, you want rows with pictures to show and rows without pictures to stay hidden?

     

    Have you tried to "Filter()" them out?

     

    Filter(
     datasource,
     IsBlankOrempty(Image)
    )

     

    Hope this was helpful to you.

  • chuck3138 Profile Picture
    22 on at

    is it possible to use IsBlankOrEmpty(Image)

    to set the image Height= zero if true?

    chuck3138_0-1681736394696.png

     

     

  • WiZey Profile Picture
    3,023 Moderator on at

    You can, however it will change the image's height and not the rows' height.

     

    If you want to change the rows' height, you should use a flexible gallery. 

  • chuck3138 Profile Picture
    22 on at

    I have a scope error when I tried: If(IsBlankOrEmpty(ThisItem.image)

    see 

    chuck3138_0-1681737181750.png

     

  • WiZey Profile Picture
    3,023 Moderator on at

    That's not an error, Power Apps is simply telling you it cannot evaluates the formula because it's using a variable value instead of constants. You too wouldn't be able to evaluate a formula if you don't know all of its variables value.

  • Verified answer
    chuck3138 Profile Picture
    22 on at

    turns out another user here had the same issue and solved it. Solved: Hide Datacard when field is empty - Power Platform Community (microsoft.com)

    it worked for me with this following code which sets gallery image height to zero if image data is empty:

    Height=If(!IsBlank(ThisItem.image), someHeightValue,0)

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard