Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
JOLBR
New Member

Identical Excel formula = Different results in PowerQuery

Hi, 

 

I am a bit confused about this. 

 

I have an identical formula in 2 different, but comparable Excel Workbooks. The formula is as follows TEXTJOIN("-";TRUE;C12:L12)

 

Howe,ver when loading the documents to PowerQuery, one behaves as expected, but the second yields an Error, which I cannot find the reasoning for.

Excel formula resultPower Query result
Hyundai Power Transformers USA-United States-Alabama-Montgomery-54 WeeksHyundai Power Transformers USA-United States-Alabama-Montgomery-54 Weeks
Delta Star East -U.S-Virginia -Lynchburg-58-62 weeksDataFormat.Error: Invalid cell value '#NAME?'.

 

- The formula does not in Excel yeild a #N/A result

- Cells containing the formula in both documents are formatted as 'General' 

 

4 REPLIES 4
V-pazhen-msft
Community Support
Community Support

@JOLBR 

Is there any blank cells between C12 to L12 in row 2, try change the data type to only text in power query, blank(text), null, and 0 can miss identified and could bring errors in PQ. 

 

Paul Zheng _ Community Support Team

Hi Paul, 

 

Thanks for the suggestions. 

 

There are blank cells in the range, but there are blank cells for both files. That is why I do not understand why one file works while the other fails in loading that particular cell value. 

 

Tried changing the resulting cell to "text" but that did not help. 

 

However what did help was to, overwrtie the function --> save the file --> open the file again --> copy  the function from below cell (identical) and save the file agian. Then the cell was loaded correctly in PQ

watkinnc
Super User
Super User

You say the Excel workbooks are different, but comparable.  How comparable?  Both .xlsx?  Both formulas in tables?  Any named ranges in one and not the other?  Any missing values that are causing the #NAME error?


I’m usually answering from my phone, which means the results are visualized only in my mind. You’ll need to use my answer to know that it works—but it will work!!

Hi, 

 

Thank you for your interest and response. 

  • Comparabale as completely identical in terms of structure, and formatting, but values of cells in documents may differ
  • Both files are .xlsx
  • Source data is not structured in tables but simply Excel cells
  • No named ranges in either document referring to the affected cells
  • Identical formula across documents resultign in a textstring (TEXTJOIN-formula) in Excel

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors