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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors