web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Set a variable from an...
Power Apps
Unanswered

Set a variable from an empty cell in a SherePoint list.

(0) ShareShare
ReportReport
Posted on by 8

Hi,

I want to set a variable in the visible fx of a label. If a cell in a SharePoint list is empty the label must become visible.

 

I tried this but it's didn't work.

 

 

 

Set(
 var_tag;
 If(
 LookUp(
 GEN_TEXTE_CREATICK_DATA;
 'Nom du poste' = TextInput2.Text;
 'Tag Nexthink d'exclusion des non-conformités') <> "";
 true
)

 

 

Anyone can help me ? 

Categories:
I have the same question (0)
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Brohormr ,

     

    I just modified my code.

    Please try this:

     

    If(IsBlank(LookUp(GEN_TEXTE_CREATICK_DATA;'Nom du poste' = TextInput2.Text).'Tag Nexthink d'exclusion des non-conformités');Set(var_tag;true);Set(var_tag;false))

     

     

     

    Hope this helps you!

    -----------------------------------------------------------------------------------------------------------------------------------

    If my answer solves your problem, please accept it as a solution to help more people stuck on the same problem find it.

     

    Best regards,

    Rimmon Li

  • Brohormr Profile Picture
    8 on at

    It say missing operator.

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Brohormr ,

     

    Are you trying my modified code?

     

    If(IsBlank(LookUp(GEN_TEXTE_CREATICK_DATA;'Nom du poste' = TextInput2.Text).'Tag Nexthink d'exclusion des non-conformités');Set(var_tag;true);Set(var_tag;false))

     

  • Brohormr Profile Picture
    8 on at

    Yes but it return (translated from french) An operator was intended +, * or & at this step of the formula.

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Brohormr ,

     

    Could you provide a screenshot of the code so I can know where the error is in the code?

     

  • Brohormr Profile Picture
    8 on at

    Capture d'écran 2023-10-11 094946.png

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Brohormr ,

     

    If you want to set the value of 'var_user' to:'Utilisateur CMDB'&"ad"&'var_tag'.

    Please try this:

    If(IsBlank(LookUp(GEN_TEXTE_CREATICK_DATA;'Nom du poste' =InputNomPC.Text).'Tag Nexthink d'exclusion des non-conformités');Set(var_tag;true);Set(var_tag;false));
    Set(var_user;LookUp(GEN_TEXTE_CREATICK_DATA;'Nom du poste' = InputNomPC.Text).'Utilisateur CMDB'&"ad"&var_tag)

     

    Hope this helps you!

    -----------------------------------------------------------------------------------------------------------------------------------

    If my answer solves your problem, please accept it as a solution to help more people stuck on the same problem find it.

     

    Best regards,

    Rimmon Li

  • Brohormr Profile Picture
    8 on at

    No I want to set two different variables from the same on select but they are not linked.

    var_user is a variable which I use other else to define the mail adress of the user (it's ok).

    var_tag is to set visible a label if a cell of a specific column is empty. (not ok)

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Brohormr ,

     

    Well, it seems that the method I provided at the beginning is correct, the code is fine in my test and there is no error in the code in your screenshot, does the error appear when you click the button? By the way, did you try to enter some values into the text input? I hope you can attach some screenshots of the test results about 'var_tag'.

     

    Best regards,

    Rimmon Li

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard