DEV Community

Harsh Goel
Harsh Goel

Posted on

Building Scalable Healthcare Data Workflows Lessons I Learned Using Power Query

****When I first started learning Power Query, I focused on the technical possibilities.
I found countless resources explaining how to build data connections, transform datasets, promote a row to headers, merge tables, filter records, and automate repetitive tasks. These tutorials were incredibly valuable. They helped me understand what Power Query could do and gave me the technical foundation to start using it.
But after working with Power Query in real-world situations, I began to realize that the most challenging problems were not necessarily the complicated transformations.
Often, it was the small decisions.
Where should a change be made? What happens when new data arrives? Should a report refresh immediately when the source changes? What happens when someone manually changes the output? How do you make sure the same logic is applied every time?
These questions became particularly important when working with healthcare-related data, where information can come from multiple sources and reporting often needs to be consistent and repeatable.
Healthcare reporting can involve provider information, operational data, claims, quality metrics, and other datasets that change over time. In that environment, building a scalable process is about more than producing a report that works today.
It is about creating a workflow that continues to work when tomorrow's data arrives.
Here are five lessons Power Query taught me about building more reliable healthcare data workflows.

  1. Data Refresh Is a Decision, Not Just a Process
    One of the biggest changes in how I think about data came from understanding that a refresh is not simply a technical action.
    A source system may change every day, but that does not necessarily mean every change should immediately appear in a reporting environment.
    For example, imagine a healthcare report that relies on provider information. A source system may be updated throughout the week as provider records change. However, the reporting process may depend on a specific reporting period, validation process, or trusted version of the data.
    Automatically pulling every change into the report may not always be the best approach.
    Sometimes stability is more important than immediacy.
    Power Query creates a transformation layer between the source data and the reporting output. This provides an opportunity to decide how data should be prepared before it reaches the final report.
    That changed how I think about refreshes.
    A refresh is not simply about getting the newest possible data. It is about getting the appropriate data into the reporting process at the appropriate time.
    This distinction becomes increasingly important as reporting processes grow more complex.

  2. Design the Data Around the Business Need
    I recently worked on a report that provided three different options for a particular task. From a technical perspective, having all three options available made sense. It gave the report flexibility and allowed it to support multiple scenarios.
    However, the stakeholder receiving the final output only needed one of those options.
    Instead of asking the user to work through unnecessary information or apply additional filters, I used Power Query to filter the dataset before it reached the reporting layer.
    The result was much simpler.
    The stakeholder received exactly what they needed without having to understand the underlying complexity.
    This reinforced an important principle: A scalable data model is not simply one that can handle more data. It is one that can deliver the right data in the right structure for the people who need it.
    In healthcare reporting, this can be especially important. Different teams may need different views of the same underlying information. A reporting solution should provide the necessary flexibility without forcing every user to navigate unnecessary complexity.

  3. Keep Manual Changes Separate from the Transformation Pipeline
    One of the first practical lessons I learned was how easy it is to unintentionally create a gap between automated data and manually entered information.
    Imagine a Power Query workflow containing provider information.
    Suppose the query applies a filter that excludes inactive providers or a particular provider ID. That transformation will consistently apply to the data flowing through the query whenever it is refreshed.
    Now imagine that someone manually enters additional information into the worksheet outside the Power Query output.
    That manually entered information is not part of the query's transformation pipeline.
    The query does not automatically know that the additional information exists, and its filtering and transformation logic will not automatically be applied to those manually entered values.

This can create inconsistencies.
If manual adjustments or exceptions are genuinely necessary, they should be treated as a separate and controlled part of the process.
Depending on the situation, the information could be:
• Added to the original source before the query runs
• Maintained in a separate controlled table that Power Query can incorporate
• Managed through clearly defined Excel-level controls when appropriate
The important lesson is not that manual data is always wrong.
The lesson is that manual intervention should be intentional and visible rather than accidentally becoming part of an automated workflow.

The more steps that occur outside a controlled process, the more opportunities there are for inconsistent results.

  1. Be Careful When Using "From Table/Range" This was another mistake I made early in my Power Query journey. In Excel, it is easy to select a table and choose Data → From Table/Range I initially thought of this as a way to return to the Power Query process associated with that table. It is not.

Instead, Excel can use the selected table or range as the basis for a new query.
If you are trying to modify an existing query, this can result in duplicate queries or unnecessary confusion. You may think you are editing the logic behind an existing report when you are actually creating a separate workflow.
When I want to work with an existing query, I now use: Data → Queries & Connections
From there, I can locate the existing query and open it in the Power Query editor.
This may seem like a small distinction, but understanding the difference between a query's source, transformation steps, and output is important when building repeatable workflows.
It also reinforced a broader lesson for me:
Understanding how a data process is structured is just as important as knowing which buttons to click.

  1. Think About Filtering as a Repeatable Rule Filtering data was another concept that changed the way I thought about working with Excel. In traditional Excel workflows, users often think about deleting rows. Power Query approaches the problem differently. Instead of manually deleting a record, you can create a transformation step that defines which records should remain in the dataset. For example, suppose a healthcare report should exclude a particular provider ID, such as FAC0001. Rather than manually deleting that provider from the spreadsheet every time the report is updated, the provider ID can be excluded within Power Query.

The query then stores that transformation as part of the workflow.
When new data arrives and the query is refreshed, the same rule can be applied again.
This is a small example, but it demonstrates an important difference between a one-time data correction and a repeatable data process.
The first approach says: Remove this record today.
The second approach says: This type of record should not appear in this reporting output.
The second approach is much more useful when building a process that needs to be operated repeatedly.
In healthcare reporting, where datasets may be refreshed regularly, that distinction can make a significant difference.

Building Processes, Not Just Reports
The biggest lesson I have taken from learning Power Query is that the tool is not simply about cleaning data.
It is about creating repeatable processes. The goal is to build a framework that can handle new data, changing requirements, and recurring reporting needs without requiring the same manual work to be repeated every time.
For me, that has been the most valuable lesson from learning Power Query.
Scalability is not only about handling more data. It is about creating reliable processes that continue to produce the right data, in the right structure, for the right purpose.
And sometimes, learning a technical tool is less about mastering every feature and more about learning to think differently about the problems the tool is helping you solve.

Top comments (0)