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
Anonymous
Not applicable

Detect precise status change

Hi everyone,
I found different topic about detecting or counting status changes but it didn't help me.

Screen Shot 10-30-19 at 01.47 PM.PNGI have this table. Usually, an item goes from "resolved" to "closed"over time, but what I want, is to detect when an item goes from "resolved" to "Active" like the example given above with the item #14440. I simply want the list of Item ID that respect this condition. Maybe with a measure but I can't find/create one that works... 
Can someone help me on this?
Thank you in advance !

3 REPLIES 3
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

You can create measure Filter1 like DAX below, then put the Filter1 in the Visual Level Filter of table visual which displays the field [Work Item Id] , setting Filter1 as "is not blank".

 

 

Filter1 =
VAR d1 =
    CALCULATE (
        COUNT ( Table1[State] ),
        FILTER (
            ALLSELECTED ( Table1 ),
            Table1[Work Item Id] = MAX ( Table1[Work Item Id] )
                && Table1[State] = "Resolved"
        )
    )
VAR d2 =
    CALCULATE (
        COUNT ( Table1[State] ),
        FILTER (
            ALLSELECTED ( Table1 ),
            Table1[Work Item Id] = MAX ( Table1[Work Item Id] )
                && Table1[State] = "Active"
        )
    )
RETURN
    IF ( AND ( d1 > 0, d2 > 0 ), 1, BLANK () )

 

 

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi! Thank you for your answer.
I supposed that :

Table1[Work Item Id] = "Active"

 was meant to be :

Table1[State] = "Active"

because my id would never be a string, but even with this changed it doesn't works. I don't know how we could detect a precise status change from one day to another without writing something with my date column  

Hi @Anonymous ,

 

I am not sure what desired result would you want, could you please share your sample data and desired output screenshots for further analysis? You can also upload sample pbix to OneDrive and post the link here. Do mask sensitive data before uploading.

 

Please read this post to get your answer quickly: How to Get Your Question Answered Quickly.

 

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

Top Solution Authors