Skip to main content
Community site session details

Community site session details

Session Id : 45sD9De3YSaeBxYQiXpaMp
Power Automate - Using Flows
Answered

Error when running a query against a dataset

Like (0) ShareShare
ReportReport
Posted on 27 Jul 2022 20:15:05 by 23

I am running a query against a power bi dataset and get the following error.

 

InvalidTemplate. Unable to process template language expressions for action 'Condition' at line '0' and column '0': 'The template language function 'greater' expects all of its parameters to be either integer or decimal numbers. Found invalid parameter types: 'Array'.'.

 

My flow consists of the following:

 

mpiconn_0-1658952707758.png

 

mpiconn_1-1658952717126.png

 

This is the value that is returned when it errored out:

 

mpiconn_2-1658952805737.png

 

We are just trying to check at the end of the day if we still have employees clocked into the system and if they are we get alerted to this.  So my querying the dataset just returns a value of how many employee's clocked in still via a measure in power bi.

 

Any advice or help is greatly appreciated.

 

  • mp-iconn Profile Picture
    23 on 29 Jul 2022 at 11:44:25
    Re: Error when running a query against a dataset

    That worked!  Thank you very much!

    mpiconn_0-1659095056188.png

     

  • Verified answer
    v-xiaochen-msft Profile Picture
    on 29 Jul 2022 at 08:42:58
    Re: Error when running a query against a dataset

    Hi @mp-iconn ,

     

    Please try this expression.

    items('Apply_to_each')?['[Value]']

    vxiaochenmsft_0-1659084170025.png

     

    Best Regards,

    Wearsky

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Featured topics

Restore a deleted flow
Loading complete