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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
enj
New Member

[DataFormat.Error] セル値 '#N/A' が無効です。

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'

    が無効です。。'。

 

1 ACCEPTED 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.

View solution in original post

6 REPLIES 6
rajendraongole1
Super User
Super User

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.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hi @rajendraongole1 , Thanks for your reply. 

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.





Did I answer your question? Mark my post as a solution!

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?

danextian_0-1725947114474.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

I used Replace Errors, but the problem doesn't solve.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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