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 / Concate values that ar...
Power Automate
Unanswered

Concate values that are not blank

(0) ShareShare
ReportReport
Posted on by

I have at Flow that gets Planner tasks, and where I need to get the label values as well. I have made a variable to each label colour, and that parts works just fine. When I get the label, I replace the True value with a department name, and that part also works fine. The question I have is when I try to concat the labels. I want to avoid blank values when I concat the values. Is this possible?

This is a part of my flow

PlannerTasks.jpg

 And this is how i have build up my concat

PlannerTasks1.jpg

So I want to avoid concatting blank values in my "ComposeAll". Can this be done?

 

/Frank

Denmark 

Categories:
I have the same question (0)
  • ccc333ab Profile Picture
    1,144 on at

    Confused a bit on your question, so I may answer incorrectly. 

     

    I am assuming some rows of your excel file may produce blanks in either of those two fields. And with whatever happens after the ComposeAll steps, you don't want blanks to be continuing on. If that is the case, can you just add in a Condition to check for blank, and not do anything if it is blank...something like: 

    ccc333ab_0-1624289260385.png

     

     

     

  • Community Power Platform Member Profile Picture
    on at

    HI @ccc333ab and thx for your reply. I might have been to bad to explain my needs. I have 16 departments that each have their own label in Planner. I am translating the colour value to a department name. Each value is concatenaited in a single field, so we can track wich department is involved in a task. If I concatenate several depatrments I am afraid it will look awfull if blank values are a part of the string. Then it will look like "DepA,DepB, ,DepD, ,DepF" and so on. So it is a question, if it it possible to remove the blank values in the string.

     

    /Frank

  • ccc333ab Profile Picture
    1,144 on at

    Many different ways you can achieve this, but with your current flow, the easiest would be just to continue using Replace expression, but instead replace the ', ,' with ', '. So for example: 

    replace(variables('strDepartments'),', ,', ', ')

     Note: In your screenshot, you would replace variables('strDepartments')  with your final OUTPUT from the ComposeAll action. 

     

  • Community Power Platform Member Profile Picture
    on at

    Hi again @ccc333ab that looks as an solution I can use. I will test it one of the following dayes and report back 😊

     

    /Frank

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard