Hi @Rashmi Shetty ,
Thank you for posting your query on Microsoft Q&A Platform.
Flatten transformation is useful to flatten array values to rows.
You should consider passing your column name which is array type in to unroll section either manually or using dynamic expression.
Your expression has array() and byName() function. array() function will build array from passed values in it. So if your intention is to build array first by suppling some values to it, then kindly use derived column transformation and build your array column there and then pass that array column in to unroll section either manually or using byName() function dynamically.
Hope this helps. Please let us know how it goes. It would be great if you can share detailed implementation with screenshots to repro issue and help better. Thank you.