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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.