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 / Catch changing input
Power Apps
Answered

Catch changing input

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello! 

I'm developing a PowerApp based on PowerBI integration. 

I need to be able to catch whenever the value i'm getting changes. 

So when the input changes from one string to another, i need to automatically change the value of a variable. 

Is there anyone that could give me some advice on how to approach this? 

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    You can for example use the OnChange of a Text input to set the variable:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/properties-core

     

    Set( nameofvariable, valueofvariable )

     

    And set the DisplayMode of the Text input to View if the information is not input of a user, but simply displaying information.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    That was my first thought as well but i couldnt get it to work. 

    I set the Default of the Text input to:

    Last([@PowerBIIntegration].Data).'Dimension'

    Then the onChange to:

    Set( name, value )

    The value clearly changed but the onChange control did not set off and change the variable...
    Any clues?

  • Verified answer
    kvoll Profile Picture
    29 on at

    I know this is an old post, but since it hasn't been solved, I thought I'd share what I was able to do. It may be a bug in PowerApps, as I stumbled over this by accident, but a combo box OnChange() event is triggered by a change in PowerBIIntegration.Data change. I added a hidden one that set a few variables when it was changed and it's all working well now. 

  • ChristopherU Profile Picture
    10 on at

    Is this still working for any of you, or was it in fact a 'bug' that's been changed? I tried to implement it to no avail.

  • kvoll Profile Picture
    29 on at

    The app I built at the time is still working with it, you might have me a bit worried that I don't want to change anything and break it though.

  • ChristopherU Profile Picture
    10 on at

    It’s very possible that I have a mistake on my end

  • BrianSi Profile Picture
    3 on at

    I can confirm that it still works on 25th of April 2023.

     

    The only thing that i had to add was a value to the "DefaultSelectedItems" Property of the Combobox (fe. First(PowerBIIntegration.Data).

     

    It seems to me that "OnChange" Event of the Combobox Element is only triggered then!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard