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

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
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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.