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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Groupby... Error: We couldnt convert to Number

I have 9 columns. 1 is a Date, 8 are Text

 

I am doing a Groupby.  Groupby 1 Column... Date, and it is a Count Rows

 

i keep getting DataFormatError: We couldnt convert to Number. Details: n/a

 

i feel like it is a bug, but cant figure how to get around it.  any suggestions. (i have tried to Groupby other columns as a test and I get same issue)

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

My guess is that there are records in the aggregated columns that are n/a.

vcgaomsft_0-1689039178596.png

when groupby.

vcgaomsft_1-1689039220194.png

vcgaomsft_2-1689039244450.png

The easiest way to do this is to replace n/a with null before grouping.

vcgaomsft_4-1689039626145.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

My guess is that there are records in the aggregated columns that are n/a.

vcgaomsft_0-1689039178596.png

when groupby.

vcgaomsft_1-1689039220194.png

vcgaomsft_2-1689039244450.png

The easiest way to do this is to replace n/a with null before grouping.

vcgaomsft_4-1689039626145.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

ronrsnfld
Super User
Super User

Please post a copy of your data (can be made up data) that illustrates your problem, along with a copy of the code generated in the "Advanced Editor". Please copy/paste as text so we don't have to manually type in data from a screenshot.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors