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 Automate / Using the Value from T...
Power Automate
Unanswered

Using the Value from Table row

(0) ShareShare
ReportReport
Posted on by 8

Sorry if this is a basic question.

I am using "Run a query against a Power BI Dataset" function which returns a single table row.

The Query is below:

 

EVALUATE
ROW(
"MaterialNo", 'Material Orders'[MaterialNo]
)

 

and it returns

 

mudbloodz1_0-1667346506241.png

 

I would like to use the number value in the returned row within the flow by setting it as a variable.

Any help is much appreciated.

Thanks.

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

    Hi @mudbloodz1 ,

     

    I made a sample for you.

    vxiaochenmsft_0-1667355376330.png

    vxiaochenmsft_1-1667355394594.png

     

    Best Regards,

    Wearsky

  • mudbloodz1 Profile Picture
    8 on at

    Thanks for the info!

    I replaced the Array wording with the dynamic content from the Query and it gives me an error.

     

    outputs('Run_a_query_against_a_dataset')?[0]?['[MaterialNo]']
     

    ERROR:

    Unable to process template language expressions in action 'Compose' inputs at line '0' and column '0': 'The template language expression 'outputs('Run_a_query_against_a_dataset')?[0]?['[MaterialNo]']' cannot be evaluated because property '0' cannot be selected. Object properties can only be selected by names. Please see

     

    What did I do wrong!

    Thanks,

  • v-xiaochen-msft Profile Picture
    on at

    Hi @mudbloodz1 ,

     

    Do you use 'Apply to each' action in your flow?

    Could you show me the entire flow?

     

    Best Regards,

    Wearsky

  • mudbloodz1 Profile Picture
    8 on at

    The issue I seem to be having is referencing the output table of the Power BI Query. It works if I initialise a variable as you have and save the output of the query to the variable.

     

    mudbloodz1_1-1667359945243.png

     

    That's the dynamic content that produces the same array as your variable.

    mudbloodz1_3-1667360179127.png

     

    This is the dynamic content syntax 

    mudbloodz1_4-1667360203351.png

    I tried to replace your variable with the dynamic content.... Which throws the error.

    mudbloodz1_5-1667360264051.png

     

    Hope that clarifies.

     

     

  • mudbloodz1 Profile Picture
    8 on at

    I Got it to work!

    I needed to remove the @{} frmo the dynamic content.

    This worked

    outputs('Run_a_query_against_a_dataset')?['body/firstTableRows']?[0]?['[MaterialNo]']
    Thanks for your help!

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard