Forum Discussion

AG36912's avatar
AG36912
New Member
4 years ago
Solved

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.

 

 

5 Replies

  • Hi,

    This measure works

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

    Hope this helps.

    • AG36912's avatar
      AG36912
      New Member

      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?

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Icon for Super User rankSuper User

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