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

Community site session details

Session Id : HSrB8D0ru7SfEJwvuk3qZZ
Power Automate - Building Flows
Answered

How to retrieve multiple values (delimited) from one cel in excel and use the for PowerBI Report Builder parameter

Like (0) ShareShare
ReportReport
Posted on 28 Aug 2023 09:23:15 by 25

I'm trying to build a flow that extracts values from a excel cel that's the bases for a Prompt in a PowerBI paginated report.

In excel the column CustomerNumber holds values like:

Bob1212_0-1693214279749.png

To handle the MULTIPLE value prompt in PowerBI Report Builder
The output should be:

 

 

 

[
 {
 "name": "CustomerNbr",
 "value": "1050"
 },
 {
 "name": "CustomerNbr",
 "value": "1051"
 },
]

 

 


How to achieve this in Power Automate?


 

I have the same question (0)
  • Verified answer
    Bob1212 Profile Picture
    25 on 30 Aug 2023 at 06:50:23
    Re: How to retrieve multiple values (delimited) from one cel in excel and use the for PowerBI Report Builder parameter

    Yes! this did the trick!
    Report is now working and exports an excel ...and also for MULTIPLE prompt values like specified in the printscreen at the start of this topic.

    many many thanks @efialttes I will mark it as 'solution' 

  • Verified answer
    efialttes Profile Picture
    14,756 on 29 Aug 2023 at 17:23:50
    Re: How to retrieve multiple values (delimited) from one cel in excel and use the for PowerBI Report Builder parameter

    @Bob1212 I do not have 'Power BI' license so I cannot use the connector, but from the screenshot you shared I would suggest you the following:

    efialttes_0-1693328387160.png

    Click on the 'square with a T inside' icon on the top right corner, delete whatever value you see filled inside this input and assign 'Select' action block output to it, so it should look like the following:

    efialttes_1-1693329710214.png
    Hope this helps

  • Bob1212 Profile Picture
    25 on 29 Aug 2023 at 14:58:47
    Re: How to retrieve multiple values (delimited) from one cel in excel and use the for PowerBI Report Builder parameter

    Bob1212_0-1693320939478.png

     

    The only Expression in the 'Select action is this Split() - like you suggested -:
    split(item()?['DealerNumberSource'],';')

     

  • efialttes Profile Picture
    14,756 on 29 Aug 2023 at 14:39:40
    Re: How to retrieve multiple values (delimited) from one cel in excel and use the for PowerBI Report Builder parameter

    @Bob1212 On your Flow editor, please expand the Select action block and share a screenshot, please also type any possible WDL expression you are currently using as input
    Thanx!

  • Bob1212 Profile Picture
    25 on 29 Aug 2023 at 14:36:45
    Re: How to retrieve multiple values (delimited) from one cel in excel and use the for PowerBI Report Builder parameter

    The body() function results in an error at the PowerBI Prompt action.

    The reason it's now somehow nested in the default set-up of this activity:
    See the red box... I need the green one

    Bob1212_1-1693319753011.png

     

     

  • efialttes Profile Picture
    14,756 on 29 Aug 2023 at 13:05:56
    Re: How to retrieve multiple values (delimited) from one cel in excel and use the for PowerBI Report Builder parameter

    Hi!
    I believe WDL expression referencing your Select output is:

    body('Select_CustomerNbr_Prompt')

    Please note in every iteration of your loop the output is of type array, with one element of type object, as per the example you provided
    Hope this helps

  • Bob1212 Profile Picture
    25 on 29 Aug 2023 at 12:43:07
    Re: How to retrieve multiple values (delimited) from one cel in excel and use the for PowerBI Report Builder parameter

    Hi @efialttes ,

    That worked! I can now see the flow is giving me back the results of the prompt values like desired.

    But how can I pass them to the next step: Export To File for Paginated Reports?

    Bob1212_0-1693312979627.png

    in that 'Action'  there is a field where the result should be populated... But I can't seem to figure out how to pick the results in our 'Select' action...

  • efialttes Profile Picture
    14,756 on 28 Aug 2023 at 15:53:17
    Re: How to retrieve multiple values (delimited) from one cel in excel and use the for PowerBI Report Builder parameter

    Hi again!
    The first problem is, since you are adding Select inside an 'apply to each', you need to reference the current row processed with WDL expression item(). In your case, you wanna evaluate column CustomerNumber, this means you need to reference it by means of item()?['CustomerNumber']. So your split() based function should be as follows:

     

    split(item()?['CustomerNumber'],';')

     


    Now I have this test table...

    efialttes_0-1693237112871.png

    and I've executed the following flow successfully (3 rows, 3 'Apply to each' iterations). Even if the third row does not have any value assined to column 'customer Number' the test flow does not crash. 

    efialttes_1-1693237970679.png

    If you need such rows to be removed from the execution you can use a Filter Array action block before the 'Apply to each'.
    Hope this helps

  • efialttes Profile Picture
    14,756 on 28 Aug 2023 at 15:34:36
    Re: How to retrieve multiple values (delimited) from one cel in excel and use the for PowerBI Report Builder parameter

    Hi @Bob1212 !
    Replicating your flow and create a sample excel file, I'll be back in some minutes

  • Bob1212 Profile Picture
    25 on 28 Aug 2023 at 14:16:08
    Re: How to retrieve multiple values (delimited) from one cel in excel and use the for PowerBI Report Builder parameter

    Hi  
    Thanks for your quick reply.
    I've added your Select step in my flow:

    Bob1212_4-1693231844631.png

     

    But it immediately errors (see below)

     


    The Split() function syntax: 

    split(outputs('List_rows_present_in_a_table')?['CustomerNumber'],';') 
    is this correct??

    The Item() function is kept blank


    Bob1212_0-1693231477670.png

    @efialttes

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 783 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 515 Moderator

#3
trice602 Profile Picture

trice602 299 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading started
Loading complete