cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
007James_Bond
Helper I
Helper I

Remove white space of hidden list

Hi Everyone,

 

I am new to PowerApps. I am facing challenge  to hide list view if condition is not matched in gallery .

 

Grouped data in gallery items->GroupBy(ColectionAA,"{Name}","Grouped")

 

within the gallery  in list have condition on visibility visible ->If(IsBlank(If(CountRows(Distinct(ThisItem.Grouped.M2,M2).Result)=Value(Dropdown1_4.Selected.Value),Distinct(ThisItem.Grouped.Name,'name))),false,true)

 

 
 
 

Now in output screen .Data is coming perfectly only problem is that we are getting some hidden list blank space in gallery.

 

I want to remove this blank space ,like in other technology we have  functionality display mode :none like that 

 

image.png

We can see above screen data is disturbed hidden getting hidden list view in between that.

 

Can anyone help me to remove that.

2 ACCEPTED SOLUTIONS

Accepted Solutions

Are you using a flexible-height gallery?

A normal gallery will expand to the height of the largest entry in all of the visible records, so if any record has that item visible then it will have that gap, whereas a flexible height gallery can change its height depending on the contents of the individual rows.

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


View solution in original post

thanks @iAm_ManCat for genuinely help into this.

 

I have achieved by filter data on gallery lebel:

 

Earlier I have given only groupby code on gallery:->GroupBy(ColectionAA,"{Name}","Grouped")

 

But if filter data like this on gallery ->Filter(GroupBy(ColectionAA,"{Name}","ServiceLine","Grouped"),Count(Distinct(Grouped.Month,Month).Result)=Value(Dropdown1_5.Selected.Value))

 

Blank list item automatically removed.

 

View solution in original post

4 REPLIES 4
iAm_ManCat
Super User
Super User

Hi,

 

Did you try setting the height of the non-visible item also depending on the same formula?

If(
   IsBlank(
      If(
         CountRows(
             Distinct(ThisItem.Grouped.M2,M2).Result
         )=Value(Dropdown1_4.Selected.Value)
         ,
         Distinct(ThisItem.Grouped.Name,'name)
      )
   )
   ,0,
   //Insert here the height they currently are:
   80
)

 

Cheers,

Sancho

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


Hi @iAm_ManCat ,

 

Thanks for responding.

 

I have tried same approach first set visibility of List and then height

 

List visible:

If(IsBlank(If(CountRows(Distinct(ThisItem.Grouped.M2,M2).Result)=Value(Dropdown1_4.Selected.Value),Distinct(ThisItem.Grouped.GPN,GPN))),false,true)

 

Then Height of list :

If(ListBox4_5.Visible=false,0,40)

 

but still getting blank space.

Are you using a flexible-height gallery?

A normal gallery will expand to the height of the largest entry in all of the visible records, so if any record has that item visible then it will have that gap, whereas a flexible height gallery can change its height depending on the contents of the individual rows.

@iAm_ManCat


Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


View solution in original post

thanks @iAm_ManCat for genuinely help into this.

 

I have achieved by filter data on gallery lebel:

 

Earlier I have given only groupby code on gallery:->GroupBy(ColectionAA,"{Name}","Grouped")

 

But if filter data like this on gallery ->Filter(GroupBy(ColectionAA,"{Name}","ServiceLine","Grouped"),Count(Distinct(Grouped.Month,Month).Result)=Value(Dropdown1_5.Selected.Value))

 

Blank list item automatically removed.

 

View solution in original post

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (3,398)