cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate IV
Advocate IV

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
Highlighted
Community Support
Community Support

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
Highlighted
Community Support
Community Support

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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (6,427)