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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Merge Query leads to data type error

Hello community,

My organization has two tables that I am using for a financial dashboard (AR and AP), and my team is trying to merge the queries based on two ID's.

One ID is a concatenation of text fields and is working fine. The other is product IDs, which are mostly whole numbers, with a few letters added on occasion (ex: 9015, and G016). Standard practice is to set the product ID to text, which I did prior to the merge.

Once I merge and expand the table, I receive a data type error on my product ID, which reads like this:

"DataFormat.Error. We couldn't convert to Number. Details: G016"

Why is it converting a field I set to text into a number during the merge? And how do I solve this problem? 

Any help would be greatly appreciated.
Thanks!

 

2 REPLIES 2
Anonymous
Not applicable

Check that your parameters have commas in the correct place, as well as your braces. Since joins can take a whole number in the JoinAlgorithm parameter, you may have 4 commas in your Merge function, which would be expecting a 1-6 or a JoinAlgorithm.Whatever value. Check your commas--I bet that's it!

 

--Nate

HotChilli
Community Champion
Community Champion

Can you post the Advanced Editor Code and I'll have a look?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors