KajoData / Career & business
Does a data analyst need programming? Start with the task
I separate queries, scripts and BI work, then use one reporting scenario to choose a useful next skill and explain what a reliable result requires.

Does an analyst need programming? My first question is what the analyst must deliver and where the work happens. I would give different advice to someone preparing an Excel summary and someone maintaining a recurring file processing pipeline. A job title cannot specify the entire toolkit. A list of languages on a profile also cannot tell me whether I should trust the resulting numbers.
I would not judge professionalism solely by whether someone writes scripts. An analyst is responsible for a particular result, and the toolkit should fit both the task and the environment in which that result is produced. Programming can be extremely useful, but professional work also involves definitions, data quality, checks and communication. I want to explain how I choose a useful skill without turning the decision into a contest for the most technical sounding title.
Separate three different abilities
The first ability is using a tool, such as a spreadsheet, query editor or BI report. The second is expressing logic in a language, such as SQL, DAX or Python. The third is maintaining a solution that must run repeatedly and serve other people. These responsibilities may meet in one job, but they are different learning goals and should not be treated as interchangeable descriptions.
Someone who writes a database query does not automatically know how to build an application. A Power BI analyst may need DAX and Power Query without writing Python every day. Microsoft’s PL-300 profile describes data preparation, modelling and analysis, alongside proficiency in Power Query and DAX. I use it as an example of a defined role, rather than a universal description of every analyst position.
When someone asks about programming, I clarify the intended action. Do you want to read existing code, create small solutions independently, or take responsibility for a shared production process? Each requires different practice. Combining them into “I need to learn Python” makes the first step difficult to choose. It also makes progress hard to recognise, because the target keeps expanding whenever another tool appears.
One reporting task, several possible routes
Consider a synthetic scenario. Every month you receive an orders file containing an identifier, date, region, status and amount. The recipient wants completed order sales by region. Before choosing a language, I define the status and date being used. I also ask whether an amount represents a whole order or a single order line. Those answers establish the object being counted or summed.
If an identifier appears on multiple product lines, counting rows does not count orders. If cancelled orders retain positive amounts, summing every row includes them too. Moving the same misunderstanding into a script will not fix it. I first need a definition of the result and a way to recognise the underlying events. Only then can I compare tools against the same task and expectations.
Excel may support a source table and summary. Power Query may store repeatable transformations. SQL may retrieve the required records from a database. Python may express a file processing workflow and produce an output. These are possibilities, not promises that every company provides the necessary environment. I choose a route that fits the source, available access and people who will use the solution after its first delivery.
When I would start with SQL
SQL is a sensible next step when the relevant data lives in a relational database and you have appropriate access. The official PostgreSQL SQL tutorial covers selecting records, joining tables and aggregation. These operations express many analytical questions directly. I still check syntax for the engine used in the actual task, because database differences matter and familiar looking statements do not guarantee identical behaviour.
In the orders scenario, I would inspect a few records and identify the key first. Next I would select completed orders, then group by region. Each stage answers a separate question. Starting with a long query containing several joins may produce a number you cannot break into understandable parts. A clear sequence makes it easier to identify the stage where the answer changed unexpectedly.
I would not begin by learning every construction in the language. I need to understand columns, conditions, missing values and the relationship between detailed records and totals. Joins and more complicated calculations can follow. Explaining why an order lines join increased the row count is a useful demonstration of understanding. Remembering the word JOIN alone does not answer the question or reveal whether the total is still valid.
When I would use Power Query
Power Query stores data acquisition and transformation steps as a refreshable query. If the immediate problem is repeatedly cleaning similar exports, I would investigate that capability first. I do not need a separate script merely to change a few column types and filter a defined category. Understanding what the existing environment can do may avoid adding another system to maintain.
A graphical interface still requires reasoning about logic. Removing rows with missing statuses changes the population of orders being analysed. Converting a date field can reveal invalid values. The Advanced Editor exposes M code created by the query steps. It can provide a useful bridge from clicking to reading operations, provided you can explain what each step does to the records.
When the solution becomes hard to maintain, I write down the specific reason. Perhaps a required connector is unavailable, an operation needs a different approach, or execution must happen outside the author’s workbook. Those are concrete reasons to consider another tool. “A real analyst should code” gives me much less information about what needs to change or which alternative would actually solve the problem.
When I would add Python
I would consider Python when the process exceeds the practical scope of the current tool, or when a specific role requires it. That might involve files, an analytical library or integration with another service. I would not assume that the language alone makes everything faster. Performance depends on the task and implementation; a file extension is not a measurement of an entire reporting process.
The official Python tutorial assumes basic programming knowledge. For a complete beginner, I would first choose material explaining variables, conditions, loops and functions through small examples. Documentation then provides an authoritative account of language behaviour. Difficulty with the first chapter does not prove that someone is unsuitable for analysis. It may simply mean that the material expects a different starting point from the one they have.
The first script should have limited scope: one input, defined columns and one output. Learning syntax, a library, an external API and scheduling simultaneously makes it difficult to locate a problem. I reduce the number of unfamiliar things. First I want to understand an error message and identify which stage failed. I can add another dependency after that basic process is clear enough to explain.

Reliable results require deliberate checks
Our synthetic file could contain three orders: completed for 100, completed for 50 and cancelled for 80. A definition covering completed orders gives an expected total of 150. Changing the language does not change that answer. If a report shows 230, I check the status filter. If it shows 300 after adding details, I investigate multiplication of orders. A small example reveals the error category without hiding it inside a large dataset.
I also consider cases where the result should change. What happens with a new region, a missing amount or an order corrected after month end? I cannot predict every possible situation, but I can name a few boundaries and record the agreed treatment. Another person can then distinguish resolved rules from questions that still need an answer from the owner of the data or reporting process.
A technically successful run is separate from a meaningful result. A script can finish without an error and calculate the wrong period. A report can display an elegant chart while excluding some regions. After the technical work, I return to the recipient’s question. Does the number describe what we agreed to measure? That pause is useful in a manual spreadsheet as well as a fully automated workflow.
Automation includes handing over responsibility
A one off answer and a recurring process have different requirements. For recurring work, someone needs to know where the input comes from, how to recognise a failed run and who will investigate it. If only the author understands the workbook, apparent time savings may disappear during the first absence. One successful click is not enough evidence that a process is ready for other people to depend on.
For a handover, I describe the input, output and launch procedure. I include a situation in which the result should not be published. I keep passwords and confidential records out of the instructions and use the organisation’s agreed access process. You can practise the same habit with synthetic files: ask someone to reproduce the output using only a short description, without your live assistance filling in the gaps.
Maintenance affects the technology decision too. If a team already works in SQL and Power BI, a separate script may require additional ownership or learning time. If the shared process already uses Python, adding a manual workbook may make control harder. Neither choice is universally correct. The relevant question is how the proposed tool fits the actual people and process, rather than an internet ranking of languages.
Communicate the result and seek a counterexample
A result must reach the person making a decision. I start with a short explanation of what is compared, which period is covered and what remains unknown. The method comes next. The recipient should not need to know syntax before asking whether the number answers the business question. If the report heading and original request differ, I resolve that difference before presenting technical details.
I also look for a case that challenges my first interpretation. If sales rose, I ask whether the scope or number of days changed. If automation appears faster, I include checking and repair time in the comparison. This is a practical rule for limiting premature conclusions. Merely knowing that people can make mistakes does little unless it produces a question capable of revealing a mistake in this particular report.
These habits are available from the first spreadsheet. Add one limitation and one situation in which your recommendation would change. That makes the discussion more honest and useful. You show where your knowledge ends while identifying what to investigate next. It is more informative than describing yourself as a critical thinker without demonstrating how you would challenge a conclusion in the task at hand.
Choose a learning order that fits your next task
Look at several job descriptions for a role you genuinely want, and list the tasks and tools they mention. This small collection is not a study of the whole labour market. It supports a local decision about your next step. Repeated requirements for independent database queries justify SQL. An immediate Excel export project may justify tables and Power Query before opening five unrelated courses at once.
I finish each stage with something I can explain. For SQL, that might be a query with a stated key and aggregation rule. For Python, a small process with instructions and a recognised invalid input. For BI, a report with defined measures and filters. I then choose another skill because a capability is missing, rather than because a more impressive tool must surely be waiting around the corner.
For a simple starting project, try the Excel workout tracker. Describe which operations you would want to repeat and why. My article on choosing VBA automation offers another tool selection example. You do not need to complete every stage simultaneously. You need one next step that solves a defined problem and leaves a visible result you can inspect.
Reading code is a learning goal of its own
I do not expect beginners to write everything from memory. I do want them to locate an input, a condition and an output in a short example. A completed orders filter should let you explain which records disappear. A grouping step should prompt a question about the resulting level of detail. This way of reading works in graphical editors too: operations have an order and an effect that can be described plainly.
Copying a documentation example can support learning when you understand its assumptions. Change one thing and predict the consequence, such as selecting a different status. If even that change is unclear, return to a simpler version. When asking a more technical colleague for help, you can then identify where rows disappeared and what was expected. You can contribute a precise observation without pretending to understand every part of the system.
A task that makes your current level visible
Describe the monthly report on one page: the order definition, time range, treatment of cancellations and expected answer for three synthetic rows. Identify a tool in which you can produce that answer. Name the missing operation too, such as combining files, refreshing input or handing over the process. A specific gap gives you a better plan than the vague instruction to learn programming.
Finally, explain the result to someone who has never seen the project. If they understand the definition, recognise a limitation and know where the number came from, you have a useful foundation. Another language can extend your capabilities, but cannot replace those elements. That is how I approach professional analytical work: responsibility for the result, followed by a gradually broader toolkit when the task calls for it.
Key takeaways
Is Python compulsory in every analyst job?
There is no universal rule. Some tasks can be handled with Excel, SQL and a BI tool; other roles make scripts an important part of the work. Check the actual responsibilities and environment.
Is SQL the same as writing Python scripts?
No. SQL expresses operations such as selecting and aggregating database records, while Python is a general purpose language. Both require logical reasoning but serve different tasks.
How can I tell whether I know enough?
Try reproducing a small result, explaining its definition and predicting how it changes with different input. Compare that ability with a specific task or job requirement.
AI was used in an automated way while working on this article. If you want to learn how to do it too, check out this project.
