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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,709)