Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
PowerBIで、Excelの複数ファイルから同じフォーマットのシートをQueryで結合しようとしていますが、エラーでテーブルに変換できません。エラーの置換は試したのですが、他に試すべきことはありますか。
手順:
1. 空のレポートを作成し、ネットワーク上のフォルダを選択して、[データの統合と変換]をクリック。
2. 統合したいシート名を選択して、OKをクリック。
3. 不要な列を削除し、必要最小限の列だけ残しました。
4. すべての列を選択し、変換タブの[値の変換] - [エラーの置換]から、エラーを0や-(ハイフン)、nullなどに置換しました。
5. [閉じて適用]を実行すると、下記のエラーになります。
読み込み
!カスタムテーブル名
サーバーに対する変更の保存に失敗しました。返されたエラー:
'OLE DB または ODBC エラー: [DataFormat.Error] セル値 '#N/A'
が無効です。。'。
!サンプル ファイルの変換
サーバーに対する変更の保存に失敗しました。返されたエラー:
'OLE DB または ODBC エラー: [DataFormat.Error] セル値 '#N/A'
が無効です。。'。
!サンプル ファイル
サーバーに対する変更の保存に失敗しました。返されたエラー:
'OLE DB または ODBC エラー: [DataFormat.Error] セル値 '#N/A'
が無効です。。'。
!ファイルの変換
サーバーに対する変更の保存に失敗しました。返されたエラー:
'OLE DB または ODBC エラー: [DataFormat.Error] セル値 '#N/A'
が無効です。。'。
!クエリ パラメーター
パラメーター1
サーバーに対する変更の保存に失敗しました。返されたエラー:
'OLE DB または ODBC エラー: [DataFormat.Error] セル値 '#N/A'
が無効です。。'。
Solved! Go to Solution.
Since the files are too complecated and sensitive, I decided to separate data sheet as Query table, and then merge in Power BI.
<NG>
...\Report\
Aunit_report_2024.xlsx [Sales] sheet
Aunit_report_2023.xlsx [Sales] sheet
Aunit_report_2022.xlsx [Sales] sheet
Aunit_report_2024.xlsx [Sales] sheet
Aunit_report_2023.xlsx [Sales] sheet
Bunit_report_2022.xlsx [Sales] sheet
Cunit_report_2024.xlsx [Sales] sheet
・
・
・
↓
Combine files in Power BI Desktop (NG)
<OK>
...\Report\
Aunit_report_2024.xlsx [Sales] spreadsheet
Aunit_report_2023.xlsx [Sales] spreadsheet
Aunit_report_2022.xlsx [Sales] spreadsheet
Aunit_report_2024.xlsx [Sales] spreadsheet
Aunit_report_2023.xlsx [Sales] spreadsheet
Bunit_report_2022.xlsx [Sales] spreadsheet
Cunit_report_2024.xlsx [Sales] spreadsheet
・
・
・
↓ Separate files like this
..\Sales\
Sales_A_2024.xlsx [Sales] Query table
Sales_A_2023.xlsx [Sales] Query table
Sales_A_2022.xlsx [Sales] Query table
Sales_B_2024.xlsx [Sales] Query table
Sales_B_2023.xlsx [Sales] Query table
Sales_B_2022.xlsx [Sales] Query table
Sales_C_2024.xlsx [Sales] Query table
・
・
・
↓
Combine files in Power BI Desktop (OK)
There's no need to Replace Errors.
Hi @enj - I have used language translator to get to know the issue,Next time please post it in English it helps to all.
In Power query editor, you can try below steps:
Right-click the column > Replace Values > In the "Value to Find" field, type #N/A, and in "Replace With", type null (or any other appropriate replacement like 0).
Power Query provides a way to handle and remove errors explicitly. You can add a step to remove rows that contain errors:In Power Query, go to the Home tab > Remove Rows > Remove Errors. This will remove any rows that are causing errors during the transformation.
Resolved Scenerios:
Solved: DataFormat.Error: Invalid cell value '#N/A'. - Microsoft Fabric Community
Solved: Unpivot causing [DataFormat.Error] Invalid cell va... - Microsoft Fabric Community
Hope this helps.
Proud to be a Super User! | |
I already have tried Replace Errors with null or 0 or "-". And I also tried Remove Errors, but the same error occurs.
Are there any other solutions that I should try?
Best regards
Hi @enj - if any possibility , please upload the file by removing sensitive data in drive will check it from our end.
Proud to be a Super User! | |
Since the files are too complecated and sensitive, I decided to separate data sheet as Query table, and then merge in Power BI.
<NG>
...\Report\
Aunit_report_2024.xlsx [Sales] sheet
Aunit_report_2023.xlsx [Sales] sheet
Aunit_report_2022.xlsx [Sales] sheet
Aunit_report_2024.xlsx [Sales] sheet
Aunit_report_2023.xlsx [Sales] sheet
Bunit_report_2022.xlsx [Sales] sheet
Cunit_report_2024.xlsx [Sales] sheet
・
・
・
↓
Combine files in Power BI Desktop (NG)
<OK>
...\Report\
Aunit_report_2024.xlsx [Sales] spreadsheet
Aunit_report_2023.xlsx [Sales] spreadsheet
Aunit_report_2022.xlsx [Sales] spreadsheet
Aunit_report_2024.xlsx [Sales] spreadsheet
Aunit_report_2023.xlsx [Sales] spreadsheet
Bunit_report_2022.xlsx [Sales] spreadsheet
Cunit_report_2024.xlsx [Sales] spreadsheet
・
・
・
↓ Separate files like this
..\Sales\
Sales_A_2024.xlsx [Sales] Query table
Sales_A_2023.xlsx [Sales] Query table
Sales_A_2022.xlsx [Sales] Query table
Sales_B_2024.xlsx [Sales] Query table
Sales_B_2023.xlsx [Sales] Query table
Sales_B_2022.xlsx [Sales] Query table
Sales_C_2024.xlsx [Sales] Query table
・
・
・
↓
Combine files in Power BI Desktop (OK)
There's no need to Replace Errors.
Did you use Replace Errors or Replace Values?
I used Replace Errors, but the problem doesn't solve.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
69 | |
66 | |
51 | |
32 |
User | Count |
---|---|
114 | |
99 | |
75 | |
65 | |
40 |