cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jacob_Col
Regular Visitor

Using a Excel table value in a conditional statement

I have gotten values from an excel table that I am trying to use in a conditional statement.

 

When it gets to the conditional it gives me an error saying that it is unable to read this as it is a string value compared to a float.

Power Automate Excel Value.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
eric-cheng
Solution Sage
Solution Sage

Hi @Jacob_Col ,

 

You can try using the float() expression

 

float(outputs('Compose'))
 
ericcheng_0-1631682980068.png

 

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

 

View solution in original post

3 REPLIES 3
eric-cheng
Solution Sage
Solution Sage

Hi @Jacob_Col ,

 

You can try using the float() expression

 

float(outputs('Compose'))
 
ericcheng_0-1631682980068.png

 

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

 

View solution in original post

Thank you for the suggestion. 

 

Tried this out and got a different error (Below)

 

I tried adding the "Current item" of the "Apply to each 4". Yet this resulted in the flow being unable to even save. do you have any advice on this?

 

LPA Error - Power Automate.JPG

eric-cheng
Solution Sage
Solution Sage

Hi @Jacob_Col ,

 

Can you post up the entire flow.  Not sure why there are two loops.

 

The condition should be in the same loop as the Compose.

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,871)