Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join 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.

Reply
AroseT
New Member

Create table3 with rows where unique ID is not present in table1 (Extract rows based on condition)

Every month I get a new 'Actives' report containing all active employees and relative information. Occassionally, columns are added or removed from the report. Every month when I get the new report, I would like to create a new table that lists all of the Employee IDs from the previous months table that are not found in the current months table. 

 

I have tried using the EXCEPT function to create a new table, but since the column numbers are not always the same I get an error. I would like the new table to include all columns from the current months table. 

 

Example:

June Actives Table

Empl IDBonusProgram
110000Sales
25000Discretionary
36500Legally Required

 

July Actives Table

Empl IDNotesBonusProgram
4 10000Legally Required
2 5000Discretionary
3 6500Legally Required

 

New Table 1: 

new table = rows in June Actives Table that are not present in July Actives Table 

Empl IDNotesBonusProgram
1 10000Sales

 

Side note: I am hoping that this will make it easy for me to combine the "New Table" with the "July Actives Table" and note any employment changes. Eventually, I would like to have a table that keeps a running list of any changes, something like this:

 

New Table 2: updated July Actives

new table 2 = rows in June Actives Table that are not present in July Actives Table & includes all records from July Actives Table

Empl IDNotesBonusProgram
1Removed 10000Sales
2 5000Discretionary
3 6500Legally Required
4Added10000Legally Required

 

Any help would be greatly appreciated. Please let me know if I need to clarify anything. Thank you very much! 

1 REPLY 1
amitchandak
Super User
Super User

@AroseT ,

new table in DAX

Table1 = except(June, July)

 

Table2 = union(
Addcolumns(INTERSECT(june,july), "Note", ""),
Addcolumns(Except(june,july), "Note", "Removed"),
Addcolumns(Except(july,june), "Note", "Added"))

 

 

Assumed June and July are your table name

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.