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
AG36912
New Member

Finding deleted names based on date column

Hello Everyone,

 

I have a table with 2 columns:

1. Account names and

2. Date (date when the list when generated, ).

 

The list is generated every month and appended to a master file. I then feed this masterfile to PowerBI desktop.

 

I want to find out all the Account names (that eventually got got deleted) hence are missing from the list generated in the following month.

 

Sample Data set (master file):

 

Acc NameDate
A2/25/2022
B 2/25/2022
C 2/25/2022
A3/25/2022
B 3/25/2022
A4/25/2022

 

Desired Result:

Acc NameDate
C 3/25/2022
B4/25/2022

 

What it means is C got deleted in March and B got deleted in April.

 

Appreciate any help or ideas.

 

 

1 ACCEPTED SOLUTION

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

This measure works

Max date = if(format(MAX(Data[Date]),"mmyy")=FORMAT(today(),"mmyy"),BLANK(),EDATE(MAX(Data[Date]),1))

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks much Ashish. I was able to create the new measure using your code but how do I project these counts (deleted accounts) on a PowerBI Visual month-on-month?

You are welcome.  Please show the expected result very clearly.

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

I'm trying to create a visualization wherein I can show a trendline for how many accounts got deleted every month. For eg (based on the sample quoted above): 1 acount ('C') got deleted in March and 1 account ('B') got deleted in April. I'm unable to drag this measure on the value field of the visualization.

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.

Top Solution Authors
Top Kudoed Authors