cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
WiggityZwiggity
Helper V
Helper V

Filter Array on Calculated Column

I am trying to filter a get items (SharePoint) array by a calaculated column that is numerical.  The filter array action does not recognize this column as numerical however.  I have tried using a conversion function on the calculated column i.e float(item()?['Calculated_x0020_Column']) in the advance mode of the filter but it still seems to recognize it as a string.

 

Anyone have any idea how to acheive this?

2 REPLIES 2
v-micsh-msft
Community Support
Community Support

Hi @WiggityZwiggity,

 

Please take a try to use Float () function with both the parameter.

For example, if you would like to check if the Calculated column equals a number 10.333, then take a try with the format below:

@equals(float(item()?['Calculated_x0020_Column']), float('10.333'))

Tested from my side and it works:

8.PNG

7.PNG

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

This is really helpful. Thank you!

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,439)