cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jacob_Col
Frequent 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

 

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,338)