cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Select Functio

Hi all,
I am new to Power Automate and thought if someone could give me a pointer. 

I am using the following to create a CSV table but it is returning an additional 24 rows. I figure it is because the Output of Select 2 have 24 elements (or question), so they are replicating the entire table 24 times. 

How do I prevent this? Thanks .

werdnak_0-1594263970621.png

werdnak_1-1594264029833.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User III
Dual Super User III

Re: Select Functio

Hi!

I believe you are mappint your Select values directly from 'Get response details' dynamic content right?

If so, you just need to assign a dummy array as 'Select' input, make sure the array has a single element inside. For example:

Flow_CreateArray.png

There are more elegant ways to achieve this but this should make the trick

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

5 REPLIES 5
Highlighted
Dual Super User III
Dual Super User III

Re: Select Functio

Hi!

Select transforms elements from an array, keeping same nr of elements from the input. So, the 24 rows are due to the array currently assigned as input to your Select action block.

Are all rows duplicates? Do you need just one row?

Can you provide more details from your Flow design by means of a more detailed screenshot?

Thanx!



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Highlighted
Helper I
Helper I

Re: Select Functio

hi @efialttes ,

Thanks for your guidance.

To begin, I have a Microsoft Form with 19 questions. I created an MS Flow as following:

Compose - body('Get_response_details')

Compose 2 - string(outputs('Compose'))

Compose 3 - split(outputs('Compose_2'),',')

Select2 - outputs('Compose_3')

Create CSV Table - body('Select2')

 

werdnak_0-1594277324371.pngwerdnak_1-1594277363172.png

The outputs are as follow in a CSV File: 

werdnak_2-1594277415182.png

 

Highlighted
Helper I
Helper I

Re: Select Functio

@efialttes 

 

I really just want to see one row like this:

 

werdnak_0-1594277756618.png

 

Highlighted
Dual Super User III
Dual Super User III

Re: Select Functio

Hi!

I believe you are mappint your Select values directly from 'Get response details' dynamic content right?

If so, you just need to assign a dummy array as 'Select' input, make sure the array has a single element inside. For example:

Flow_CreateArray.png

There are more elegant ways to achieve this but this should make the trick

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

Highlighted
Helper I
Helper I

Re: Select Functio

Thanks @efialttes - This works. I overcomplicated the formula 🙂

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (4,248)