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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply

Counts of Deactivated Counts

DateSourceAcc
07/01/2022 12:00AMA0111
07/01/2022 12:00AM B0101
08/01/2022 12:00AMA0111
08/01/2022 12:00AMB0101
09/01/2022 12:00AMA0200
09/01/2022 12:00AMB0211

 

I have to find the counts of deactivated Acc. 

 

Example, In Current Month September the account 0111 and 0101 is deactivated when comparing august. 

My current Month will change everymonth. So my DAX should be dynamic.

 

Help would be much appreciated

1 ACCEPTED SOLUTION

A bit strange, I have verified it actually. 

FreemanZ_0-1669302381909.png

the data sample

FreemanZ_1-1669302401437.png

 would you mind share the simplified file?

View solution in original post

5 REPLIES 5

@FreemanZ ,

When I add this formula I am getting blank. No Counts

A bit strange, I have verified it actually. 

FreemanZ_0-1669302381909.png

the data sample

FreemanZ_1-1669302401437.png

 would you mind share the simplified file?

FreemanZ
Super User
Super User

hi @SandhyaGiriraj 

i see you make a new post. i thought the missing account in the previous post reply is Deactivated Account, make sense?

 

CountMissing =

VAR AccListCurrent =  
    VALUES (TableName[AccNO])
VAR AccListLastMonth =
    CALCULATETABLE(
        VALUES(TableName[AccNO]),
        DATEADD(TableName[Date], -1, MONTH)
    )
RETURN
    COUNTROWS(
        EXCEPT( AccListLastMonth, AccListCurrent)
    )

@FreemanZ ,

 

This formula is not working as expected. Is there any other option to do it.

 

Please help

@SandhyaGiriraj 

what error or notification do you get?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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