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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Measure to map Unique IDs Added and reduced to list

Hi All,

 

I'm working on a set of two tables, active users of a tool on April and May. I want to calculate the number of users who were added on the tool and those who stopped using it (i.e. left the org) based on their unique id.

How do i build a measure/s that helps calculate the additions and reductions to the list?

 

For eg. a measure that would show 1 for added for freddie.m and a measure that should 1 reducded i.e. ked.kal.

I will be build a matrix report comparing such metrics for each month.

 

April (Table)May (Table)
  
Unique IdUnique Id
s.rays.ray
bill.firstbill.first
ked.kalfreddie.m
j.lennyj.lenny

 

Thanks for your time!

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Have a look at this thread, it covers a similar scenario

 

https://community.powerbi.com/t5/DAX-Commands-and-Tips/Return-new-removed-values-within-a-data-set-c...

 

tldr; : use the EXCEPT() function both ways.

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

Have a look at this thread, it covers a similar scenario

 

https://community.powerbi.com/t5/DAX-Commands-and-Tips/Return-new-removed-values-within-a-data-set-c...

 

tldr; : use the EXCEPT() function both ways.

Anonymous
Not applicable

@lbendlin Thank you so much.

I will take the time to understand that solution.

 

Is it possible to have an easier workaround?

For example

1. Have a measure that counts unique IDs common between April and May

2. To find unique ids lost = Total count of April - Count  of unique IDs common for April and May

3. To find unique ids added = Total Count of May - Count of Unique IDs common for April and May

 

Would this potentially work?

 

That's basically what EXCEPT()  does.  All the other lines are just preparation.

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.