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 / Issue With PowerApp Fu...
Power Apps
Unanswered

Issue With PowerApp Fuction

(0) ShareShare
ReportReport
Posted on by

Data Source is a Excel Table. When the user select the required information from the combo box and if they click Evaluate, it intended to show the require information from excel. However, its not working. Below is the code that I used.

If(
GHSDropDown.Selected.Value = "Yes",
Set(
ResultPanel.Text,
LookUp(GHSLabel, CountryGHSLabel = CountryDropDown.Selected.Value).ResultGHSLabel
),""
)

 

but it showed 

jasperxx_0-1700630275599.png

 

Categories:
  • EddieE Profile Picture
    4,650 Moderator on at

    @jasperxx 

    I think you have your structure incorrect. I think you maybe trying to do this:

    Set(
     vResultPanel,
     If(
     GHSDropDown.Selected.Value = "Yes", 
     LookUp( GHSLabel, CountryGHSLabel = CountryDropDown.Selected.Value).ResultGHSLabel,
     ""
     )
    )
    
     

     

    The, set you ResultPanel.Text to

    vResultPanel

     

  • jasperxx Profile Picture
    on at

    Still not working

    jasperxx_1-1700633262524.png

    jasperxx_2-1700633360461.png

     

     

     

  • EddieE Profile Picture
    4,650 Moderator on at

    @jasperxx 

    Sorry, I cannot read your images, they are too blurry

  • jasperxx Profile Picture
    on at

    jasperxx_0-1700634269841.png

    jasperxx_1-1700634303186.png

     

     

  • EddieE Profile Picture
    4,650 Moderator on at

    @jasperxx 

    What column type is CountryGHSLabel? IF it's a Choice column then try

    Set(
     vResultPanel,
     If(
     GHSDropDown.Selected.Value = "Yes", 
     LookUp( GHSLabel, CountryGHSLabel.Value = CountryDropDown.Selected.Value).ResultGHSLabel,
     ""
     )
    )

     

    If this doesn't work can you share your Items for GHSDropDown

  • jasperxx Profile Picture
    on at

    It is some simple string in the excel table.

    jasperxx_0-1700635186407.png

     

    As for Dropdown it links to another table.

    jasperxx_1-1700635227559.png

     

     

  • EddieE Profile Picture
    4,650 Moderator on at

    @jasperxx 

    Can you please provide the Default & Items code for the GHSDropDown

  • jasperxx Profile Picture
    on at

    jasperxx_1-1700636218521.png

    jasperxx_2-1700636241075.png

     

     

     

     

  • jasperxx Profile Picture
    on at

    jasperxx_0-1700636369442.png

     

  • EddieE Profile Picture
    4,650 Moderator on at

    @jasperxx 

    Whilst posting images can be helpful what is more helpful is actual code. Using the insert/edit code sample option (</>) is the best way to convey your message.

     

    I'd suggest re-posting your question so that someone else with use in Excel can help you. I simply don't have the time to click through many images, most without the content I need, to try and help you further, sorry.

     

    All the best.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard