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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
santu1021
Helper II
Helper II

Groupe By - Max Year - Error

Dear,

I'm trying toget max year for the same model and when tried to do groupe by, and to take out max year getting this error message. Any Idea how to fix this error?

 

error.PNG

As-Is Requried
A2004 A2007
A2005 B2013
A2006   
A2007   
B2010   
B2011   
B2012   
B2013   

 

 
 
1 ACCEPTED SOLUTION
v-alq-msft
Community Support
Community Support

Hi, @santu1021 

 

Based on your description, I created data to reproduce your scenario.

Table:

b1.png

 

As-ls is text and Year is number. Then you may group by as follows and it appears normal.

b2.png

 

Please check the data type for the second column. If possible, please show us your sample data. Do mask sensitive data before uploading. Thanks.

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

4 REPLIES 4
v-alq-msft
Community Support
Community Support

Hi, @santu1021 

 

Based on your description, I created data to reproduce your scenario.

Table:

b1.png

 

As-ls is text and Year is number. Then you may group by as follows and it appears normal.

b2.png

 

Please check the data type for the second column. If possible, please show us your sample data. Do mask sensitive data before uploading. Thanks.

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Thank You !!!

Ashish_Mathur
Super User
Super User

Hi,

If the format of the second column in your raw data is a number, then the simple Group By feature of the Query Editor should work flawlessly.  For any more help, share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

It is showing "can not parse date value. This seem text,text or text,number values.

Ideally, Max(Year) should work. But In case there is data format issue.

Check the data format of year column, it should be text or Whole number.

 

Data Format.png

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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 Solution Authors
Top Kudoed Authors