Skip to main content
Community site session details

Community site session details

Session Id : h1UGWGP26DMjMM9HYKI1kE
Power Apps - Building Power Apps
Answered

Issue on the visualization of the gallery

Like (0) ShareShare
ReportReport
Posted on 24 Feb 2022 14:27:01 by 12

Hello everybody,

 

I have a gallery linked to an excel on one drive. This gallery has a conditional that sort and filter the values shown in the gallery and one of this filters logic test is linked to a text entry control but when I execute the app, it does not show any values until I change the value of the text entry control. This text entry control has a default value set but it does not activate the gallery until I change it.

 

This is the conditional for the gallery items being "filtro_dias1" the text entry control value.

 

 

 

If(!IsBlank(varRanking1);
 Sort(
 Filter(Base_Python_temp;
 Value(filtro_dias1) >= Value(DiasDifIP);
 IsBlank(filtro_pozo1) || filtro_pozo1 = pozo_mayusc;
 IsBlank(filtro_distrito1) || filtro_distrito1 = distrito_desc;
 IsBlank(filtro_proyecto1) || filtro_proyecto1 = proyecto_secundaria;
 IsBlank(filtro_equipo1) || filtro_equipo1 = equipo_produccion;
 IsBlank(filtro_bateria1) || filtro_bateria1 = bateria;
 IsBlank(filtro_sistema1) || filtro_sistema1 = sistema_x0020_de_x0020_extracciĂłn);
 Value(ranking;"en-US");
 If(
 varRanking1 = true;
 Ascending;
 Descending
 )
 );
 Filter(Base_Python_temp;
 Value(filtro_dias1) >= Value(DiasDifIP);
 IsBlank(filtro_pozo1) || filtro_pozo1 = pozo_mayusc;
 IsBlank(filtro_distrito1) || filtro_distrito1 = distrito_desc;
 IsBlank(filtro_proyecto1) || filtro_proyecto1 = proyecto_secundaria;
 IsBlank(filtro_equipo1) || filtro_equipo1 = equipo_produccion;
 IsBlank(filtro_bateria1) || filtro_bateria1 = bateria;
 IsBlank(filtro_sistema1) || filtro_sistema1 = sistema_x0020_de_x0020_extracciĂłn)

 

 

 

Categories:
  • gastonfoselli Profile Picture
    12 on 24 Feb 2022 at 15:20:06
    Re: Issue on the visualization of the gallery

    Thank you for your help, it worked really well.

  • Verified answer
    CU-18081211-6 Profile Picture
    9,266 Moderator on 24 Feb 2022 at 15:02:21
    Re: Issue on the visualization of the gallery

    @gastonfoselli ,

    From your description it seems that filtro_dias1 is a variable and most probably you set it's value onChange property of the text input control. Refer inside items property of the gallery directly to the value of TextInputControl.Text.

    Here is my proposal.

    With(
     {filterResults:
     Filter(Base_Python_temp;
     Value(TextInputControl.Text) >= Value(DiasDifIP);
     IsBlank(filtro_pozo1) || filtro_pozo1 = pozo_mayusc;
     IsBlank(filtro_distrito1) || filtro_distrito1 = distrito_desc;
     IsBlank(filtro_proyecto1) || filtro_proyecto1 = proyecto_secundaria;
     IsBlank(filtro_equipo1) || filtro_equipo1 = equipo_produccion;
     IsBlank(filtro_bateria1) || filtro_bateria1 = bateria;
     IsBlank(filtro_sistema1) || filtro_sistema1 = sistema_x0020_de_x0020_extracciĂłn)};
     If(!IsBlank(varRanking1);
     Sort(
     filterResults;
     Value(ranking;"en-US");
     If(
     varRanking1 = true;
     Ascending;
     Descending
     )
     );
     filterResults
     )
    )

    Hope it helps !

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473