web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / type 'Calculated' cann...
Power Apps
Answered

type 'Calculated' cannot be used in the query filter expression. clientRequestId

(1) ShareShare
ReportReport
Posted on by 23

Hi

 

I have a column named 'B' and it is a calculated field NOW() - [Due Date] so I put this in the FILTER QUERY --> B eq 'EXPIRED'

 

However, it failed and the Error Details is

 

The field 'B' of type 'Calculated' cannot be used in the query filter expression. clientRequestId : 7c92d7e20-a148.....

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    v-yamao-msft Profile Picture
    on at

    Hi YEUNG_Gabriel,

     

    I can reproduce this issue on my side. I create a simple flow with the action “SharePoint – Get rows”, then use Filter query to filter the items.


    According to your description, I add a Calculated column named B in the list. I assume that the “EXPIRED” might be a Number column on your side. So I also use a Number column on my side.


    Below is a screenshot for my flow configuration:

    3.PNG

    The flow failed with the same error message you mentioned:

    4.PNG

     

    I have seen a thread which is saying that The Calculated field is also not supported in query filter expression. So when we using the Calculated column in Flow, we will get the error message “Calculated cannot be used in the query filter expression”. Please check the thread at here:
    https://social.msdn.microsoft.com/Forums/SqlServer/en-US/328cbc11-f37c-4489-9bf7-9710c655f7d1/error-occurs-on-sharepoint-online-when-user-filter-data-on-multiple-line-or-calculate-field?forum=appsforsharepoint

     

    You could also consider to create a request at Flow Ideas Forum about this issue, hope PGs will take it into consideration in the future releases:
    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

     

    PS: Please post Microsoft Flow related issues on Microsoft Flow Forums, the reason why I recommend posting appropriately is you will get the most qualified respondents, and other partners who read the forum regularly will share their knowledge or learn from your interaction with us. Thank for your understanding.


    Best regards,
    Mabel Mao

  • YEUNG_Gabriel Profile Picture
    23 on at

    however, any workaround for the time being... Thanks ~~

  • warkem Profile Picture
    32 on at

    Any workaround for this or did it get resolved??

  • PHemingway610 Profile Picture
    129 on at

    I get the same error.  It would be nice to be able to filter against a calculated column.  I have created a "Week Start Day" calc column that figures the first day of the week in which an item was modified.  Then I'm trying to use that in a flow (with it as the filter for "Get Items") to send a weekly email of recently-modified items.

     

  • simon-int Profile Picture
    45 on at

    There is a workaround for this issue described here:-

    https://sharepains.com/2021/04/14/filter-by-calculated-fields/

     

    Basically, you can use the Flow action "Filter array" to do the calculation and comparison instead.

     

    Leaving this comment in case others find this thread later on.

  • Brudont Profile Picture
    13 on at

    Hello, i had it the same problem but with 2 columns created inside a sharepoint and i concatenated this 2 columns, but on the moment i filter with this calculated column i get the same error, i resolved this problem with this formule in Filter Query "Namecolumn" eq '"nameinyoudata" and "Namecolumn" eq '"nameinyoudata"

     

    Remember the apostrophes.

     

    Fix Filter .png

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard