Forum Discussion

santu1021's avatar
santu1021
Icon for Helper II rankHelper II
6 years ago
Solved

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?

 

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

 

 
 
  • Hi, santu1021 

     

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

    Table:

     

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

     

    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.

     

4 Replies

  • 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.

     

  • 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.

  • v-alq-msft's avatar
    v-alq-msft
    Icon for Community Support rankCommunity Support

    Hi, santu1021 

     

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

    Table:

     

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

     

    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.