cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
martinmcmillz Regular Visitor
Regular Visitor

Expression.Error: The name 'Added Custom1' wasn't recognized. Make sure it's spelled correctly

Hi All

 

I'm trying to add a custom column and fill in dates between two dates.

 

I'm trying to add a column to this set of data:

 

Help.PNG

 

= Table.AddColumn(#"Added Custom1", "FillInDate", each List.Dates([Starting_Date],Duration.Days([Duration])+1,#duration(1,0,0,0)))

 

...but I get this error message.

 

Expression.Error: The name 'Added Custom1' wasn't recognized.  Make sure it's spelled correctly

 

Any ideas?

 

Thanks in advance

 

Martin

1 ACCEPTED SOLUTION

Accepted Solutions
deldersveld
Advisor

Re: Expression.Error: The name 'Added Custom1' wasn't recognized. Make sure it's spelled correctly

You are referencing a step that appears after the current #"Filtered Rows5" step. Power BI doesn't know about #"Added Custom 1" yet.

 

Try something similar to the following instead to reference the output of the prior step:

 

= Table.AddColumn(#"Filtered Rows5", "FillInDate", each List.Dates([Starting_Date],Duration.Days([Duration])+1,#duration(1,0,0,0)))

1 REPLY 1
deldersveld
Advisor

Re: Expression.Error: The name 'Added Custom1' wasn't recognized. Make sure it's spelled correctly

You are referencing a step that appears after the current #"Filtered Rows5" step. Power BI doesn't know about #"Added Custom 1" yet.

 

Try something similar to the following instead to reference the output of the prior step:

 

= Table.AddColumn(#"Filtered Rows5", "FillInDate", each List.Dates([Starting_Date],Duration.Days([Duration])+1,#duration(1,0,0,0)))

Helpful resources

Announcements
GregDeckler

How to Get Your Question Answered Quickly

Power BI Super User, Greg Deckler, explains

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Ideas
Users Online
Currently online: 247 members 2,684 guests
Please welcome our newest community members: