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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Lookup / Filer Array?
Power Apps
Answered

Lookup / Filer Array?

(0) ShareShare
ReportReport
Posted on by 10

Hello

Hope someone can help here.

 

I have a rate card for rentals which looks a bit like this:

 

Duration of HireNumber of items Fee
32100
33200
62300
123400
124500

 

My customers fill in a MS Forms form using radio buttons where they specify how long they want to hire for and how many items they are hiring.

I want to build a flow that emails them a fee based on those two inputs. I also want to capture that fee and use it elsewhere in the same flow to populate other documents and spreadsheets.

I have my forms set up and my rate card is in a Table in excel. It’s all working fine.

I cannot figure out how to programme the lookup in the Table using two conditions. E.g 6 months, 2 items = 300.

Can anyone suggest a Power Automate function or formula I should use?

Thank you.

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @bonnierobin,

    I did a simple demo for you.

    1\ This is my form.

    vqiaqimsft_0-1626411157457.png

     

    2\ This is my excel table.

    vqiaqimsft_1-1626411157459.png

    3\ This is my flow

    vqiaqimsft_2-1626411157463.png

    vqiaqimsft_3-1626411157469.png

    1.

    item()?['Number of items ']// This is my column name. Your column name may be different from mine.

    2.

    first(body('Filter_array_2')).Fee

    The result is as follows:

    vqiaqimsft_4-1626411157473.png

     

  • bonnierobin Profile Picture
    10 on at

    Hello Qi

    Thank you for your help.

    I'm not getting any outputs and the Initialise Variable is failing.

    Please see the attachments.

    Really appreciate your help.

    B

     

    image003.png
    image005.png
  • bonnierobin Profile Picture
    10 on at

    @v-qiaqi-msft I got it to work. There was an issue with the array. My fault.

    Thank you so much for your help.

    All the best.

  • bonnierobin Profile Picture
    10 on at

    Hello @v-qiaqi-msft - wondering if you can help restore this flow for me?

     

    This was working flawlessly up until a month or so ago when it inexplicably began to fail. When I looked at it and tried to rebuild it, PA wanted to Insert ‘Apply to Each’ into the second filter array, but not the first – which left me confused.

     

    The variable cannot be initiated but I am presuming that it because the second filter array is not producing any outputs.

     

    I’ve tried to recreate it from scratch using Apply to Each in both conditions… but…I’m out of my depth. I don’t understand where these have come from and why everything suddenly fell over.

     

    Can you help? Thank you so much.

     

    First Filter Succeeds

    image001.png

    Second filter fails

    image002.png

    This error: Error:

     

    Unable to process template language expressions in action 'Initialize_variable' inputs at line '1' and column '2328': 'The template language expression 'first(body('Filter_array_2')).Fee' cannot be evaluated because property 'Fee' cannot be selected. Array elements can only be selected using an integer index. Please see https://aka.ms/logicexpressions for usage details.'.

     

     

    Here are the steps:

     

    image004.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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 385

#2
Vish WR Profile Picture

Vish WR 367

#3
timl Profile Picture

timl 340 Super User 2026 Season 1

Last 30 days Overall leaderboard