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 / Convert table values t...
Power Apps
Answered

Convert table values to number

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Apologies if this has been answered, but I have searched thoroughly with no apparent success. 

 

I have created a collection, 'Col_bubbledata', with a series of values which are needed as Y co-ordinates for positioning circles on a canvas. The values are entered into the column 'Y co-ordinate'. 

 

Entering the following formula within the circle's 'Y' property (under the 'advanced' tab on the right hand side of the GUI) results in an 'Expected Number value' error:

 

Col_Bubbledata.'Y co-ordinate' 

 

Reviewing the diagnostics tab, I am told "The rule produces table values which are incompatible". 

 

I have tried using the value() and text(value()) functions to convert the table values to number values, with no success.  What's the correct approach here? Is it even possible to do this? 

 

(If it's relevant, I am using @davidni's scatterplot creation method, and this is a workaround to create a best fit line. I do of course appreciate that this is not an ideal situation, but I need to create the scatterplot within powerapps as my company has no powerBI (or any alternative method of) access for this application. I am extremely grateful to David for his contributions here, and for the guidance he has given me previously.) 

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,774 Super User 2026 Season 1 on at

    Hi @Anonymous 

    The Y property of the circle control requires a single numeric value.

    Col_Bubbledata is a collection of records. As an example, let's imagine that Col_Bubbledata contains 3 records. If we were to use the syntax Col_Bubbledata.'Y co-ordinate', which one of these 3 rows are we referring to ? It's this ambiguity that produces the error "The rule produces table values which are incompatible".

    David's scatterplot technique uses a gallery control - a control that binds to multiple records. Within a gallery control, there's an item template. The contents of this item template will repeat for each row in the collection.

    Thefore if you were to add a gallery control, add your circle control inside the item template, and set the Y property so that it refers to ThisItem like so...

    ThisItem.'Y co-ordinate'

    that should hopefully set you on the right track. You'll need to implement some of the other nuances that David describes in his post, but this would at least solve this particular error message.

    https://blogs.msdn.microsoft.com/davidni/2017/05/25/scatter-plots-in-powerapps-using-a-gallery-control/

    Hope that's of some help to you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks. Adding a new gallery overlaid on the original gallery, and setting the second gallery's control to the desired collection solved the issue. Much appreciated!

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard