Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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)
Check out the July 2025 Power BI update to learn about new features.