We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi guys,
I need to merge two tables on three columns ; date, van code and product
type of each column is date, text and text respectively.
when trying to merge them column date and product matches successfully but van code doesn't although the column in both tables has the same values, data type and name and neither of them has empty rows.
any help please why this happens and what to do
thanks in advance,
Mai
Solved! Go to Solution.
There is something wrong with your data. In Power Query I've never had an issue merging on 3+ columns when the data is the same.
If the van code is text, see if you can TRIM it first, or perhaps CLEAN it. TRIM will remove any trailing spaces. Some text fields in databases will pad it with spaces if the actual value is shorter than the field setting. If that doesn't work, then use CLEAN. It will remove other characters, like the non-printing code 160 which looks like a space (char 32) but isn't.
Short of that, you'll need to post some of our source data so we can help troubleshoot further.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingThere is something wrong with your data. In Power Query I've never had an issue merging on 3+ columns when the data is the same.
If the van code is text, see if you can TRIM it first, or perhaps CLEAN it. TRIM will remove any trailing spaces. Some text fields in databases will pad it with spaces if the actual value is shorter than the field setting. If that doesn't work, then use CLEAN. It will remove other characters, like the non-printing code 160 which looks like a space (char 32) but isn't.
Short of that, you'll need to post some of our source data so we can help troubleshoot further.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingIf you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 9 | |
| 8 | |
| 7 | |
| 7 | |
| 5 |