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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Super User
Super User

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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 Kudoed Authors