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.

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.

View solution in original post

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.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,521)