cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Duplicate Column Names in Seperate Sharepoint Lists

I am trying to create a Pie Chart. Unfortunately the labels for the chart must be the first column, which would be the Title column for a Sharepoint List. Because I can't change the internal name of the Column "Title" to something else, I have a problem with the formula I use to set the data for the table. Both the workOrderProjects and the userRoles Lists have a Title Column, so I can't seem to call the title column without getting an error. 

Filter(UserRoles, LookUp(workOrderProjects, nameOfWorkerToAssign=Title).fiscalYearCreated=Dropdown1_1.Selected.Value).Title

Does anyone have a way to work around this?

Here is the current error message I am getting. 

2017-09-04_19-15-00.png

 

The chart was working fine earlier when I just had a seperate column that wasn't named Title, but then the labels were listed wrong.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Duplicate Column Names in Seperate Sharepoint Lists

Hi @Alerts_OM_USA,

 

I think the issue here should be caused by the Title used in the lookup function.

Could you please explain the aim of the formula?

Which list the Title (within the lookup function) belongs to?

We could take use of the Renamecolumns () function to rename one of the Title field to Title1.

For example, if the Title within the lookup belongs to UserRoles,

Then we could change the formula as below:

Filter(UserRoles, LookUp(RenameColumns(workOrderProjects, "Title", "Title1" ), nameOfWorkerToAssign=Title).fiscalYearCreated=Dropdown1_1.Selected.Value).Title

Function reference:

AddColumns, DropColumns, RenameColumns, and ShowColumns function in PowerApps

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Duplicate Column Names in Seperate Sharepoint Lists

Hi @Alerts_OM_USA,

 

I think the issue here should be caused by the Title used in the lookup function.

Could you please explain the aim of the formula?

Which list the Title (within the lookup function) belongs to?

We could take use of the Renamecolumns () function to rename one of the Title field to Title1.

For example, if the Title within the lookup belongs to UserRoles,

Then we could change the formula as below:

Filter(UserRoles, LookUp(RenameColumns(workOrderProjects, "Title", "Title1" ), nameOfWorkerToAssign=Title).fiscalYearCreated=Dropdown1_1.Selected.Value).Title

Function reference:

AddColumns, DropColumns, RenameColumns, and ShowColumns function in PowerApps

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,531)