cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jaleksandrowicz
Frequent Visitor

[Power Automate][Sharepoint] Comparing a column with a number

Hello! How are you doing? I'm trying to build a Power Automate flow without any good results. I need to send an email if a calculated column in Sharepoint is 15 (this column reflects the days to an event). My idea is to use a programmed flow that everyday analice the column. I think that my problem is when I compare the column with 15.

Thank you in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User
Dual Super User

Make sure the calculated column is in the right format.  Also double check what format you set the column to be.  The default is single line of text.  The convert and cast the value to the right type.  I used this formula and it worked for me.

int(items('apply_to_each')?['columnname'])


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

3 REPLIES 3
StalinPonnusamy
Super User
Super User

Hi @jaleksandrowicz 

 

Use equals(1, 2) is equal to true

equals(Columntocompare,15)

Example

StalinPonnusamy_0-1630329912415.png

 

Pstork1
Dual Super User
Dual Super User

Make sure the calculated column is in the right format.  Also double check what format you set the column to be.  The default is single line of text.  The convert and cast the value to the right type.  I used this formula and it worked for me.

int(items('apply_to_each')?['columnname'])


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
jaleksandrowicz
Frequent Visitor

Thank you very much for the help. The flow works perfectly 🙂 

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.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (3,004)