I have completed my B.Com and am currently working at a startup. I joined as an accountant but no...

I have completed my B.Com and am currently working at a startup. I joined as an accountant but now work as an HR Coordinator. I'm confused .I want to work as a data analyst, but I'm currently in the HR domain. Should I take a course in HR Analytics or SAP HR, or pursue an online MBA? Can anyone please suggest which would be better for my career growth, especially since AI is replacing many human jobs.