To be a data analyst, you typically need a bachelor's degree in data analytics, computer science, statistics, information systems, or a related field. Many schools may not have a specific degree for data analytics, but all of the aforementioned majors will give you the foundational technical skills that you will need as a data analyst.
Many aspiring data analysts will complete internships during their studies to help give them the necessary experience for finding their first positions. This is especially helpful for students who attend a university without a specific data analytics degree. A bachelor's degree is the minimum requirement for becoming a data analyst. This will qualify you for entry-level positions.
If you are looking to excel in the field and want to do more specialized work, obtaining a higher degree is recommended. This will qualify you for more positions that generally are paid better and require you to be highly specialized.