Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi all,
Problem Statement:
I need a clean table of employee leave application with the following adjustments:
Current:
We're currently doing the above (and more) using VBA, which the file size and time to run grows every time we run it due to increased data size. Currently it takes 2 hours to run it once. Hence, I'd like to seek advice from the community the ideal way to move it onto Power Query.
I'm more than a beginner in Power Query, not necessarily looking for specific steps. But would like to know at a conceptual level, how can I do this.
Data
Table 1: Leave Application Data
Table 2: Paid Leave Data (Payroll)
Table 3: Leave Application - rebuilt (desired output)
Example on Cleaned Leave:
Thanks in advance!
It might help to break down the problem. To start with, what's the simplest thing you're trying to do? (Ideally this would just be a single step in the process.)
1st challenge is to compare Table 1 and Table 2
Table 2 is payrol report and leave data is conclusive.
If there is no record of a Table 2 row in Table 1, append a row. Otherwise, create a row from Table 2
Thanks Ehren, you're right, a Left/Right Anti join type will solve this challenge after ensuring both table structures are the same.
Problem 2: Adjusting the Leave Start and End date to the year, quarter, and month; factoring in Public Holidays (and rosters, but I can use the solution for public holiday for this)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.