cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
overhead_press
New Member

How to concatenate data in PowerApps selected in PowerBI

Currently in my PowerApps I have added a gallery with "PowerBIIntegration.Data" in the Items property, then I added a label into that gallery with the Text property as "ThisItem.'My column'".  So now in my PowerBI report the values I select in 'My Column' will appear in the app as shown in the picture attached. 

 

My question is, how can I display my data in the PowerApp like in the screenshot except instead my data will appear side to side separated by a comma? So for example it would be "Plan 1, Plan 1+Inc Covid Adj, Plan 2, (plus additional fields the user select in PowerBI). 

 

I have tried using just the Text Input without the gallery but when I enter "PowerBIIntegration.Data.'My Column' into the Default property I get the error saying that it expects a text value. What other methods can I use to make it work outside of using a gallery? Thanks in advance! 

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Community Support
Community Support

Hi @overhead_press ,

 

Since you could apply "PowerBIIntegration.Data" as the source table of the Gallery, you could try and treat is as a table, then leverage a Concat function or Concatenate function to concatenate a column to text strings:

 

Left(Concat(PowerBIIntegration.Data, 'My column' & ", "),Len(Concat(PowerBIIntegration.Data, 'My column' & ", "))-2)

 

 

Please refer to below doc of Concat and Concatenate functions in Power Apps:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-concatenate

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

3 REPLIES 3
v-jefferni
Community Support
Community Support

Hi @overhead_press ,

 

Since you could apply "PowerBIIntegration.Data" as the source table of the Gallery, you could try and treat is as a table, then leverage a Concat function or Concatenate function to concatenate a column to text strings:

 

Left(Concat(PowerBIIntegration.Data, 'My column' & ", "),Len(Concat(PowerBIIntegration.Data, 'My column' & ", "))-2)

 

 

Please refer to below doc of Concat and Concatenate functions in Power Apps:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-concatenate

 

Hope this helps.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Thanks for the response it works great, one more question is why did you use Left() here? 

Hi @overhead_press ,

 

To trim the space and comma in the end, so minus 2 digits.

 

Best regards,

Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (2,161)