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

Urgency to identify the Records/Id's whose status changed from Error to Ready(Based on PaRev)

I have below sample data, need to identify the records whose status changed from Error to Ready (Previous status should be Error, changed to Ready with highest PaRev Number). We need to count the these id's

PaRevidStatus
185dfError
385dfReady
285dfError
   
149dError
349dReady
549dReady
649dReady
449dReady
249dError
   
189b1Error
489b1Ready
289b1Error
389b1Error
   
Result  
   
385dfReady
649dReady
489b1Ready
1 ACCEPTED SOLUTION

8 REPLIES 8
Ahmedx
Super User
Super User

pls try

Screenshot_4.png

Anonymous
Not applicable

Hi Thanks for sharing the post,

I have tried the Dax query that you have given in our raw data, its partially working however,we found below scenario also found in the output. As per Requirement it shouldn't be counted. For below scenarios highesht PaRev is under Error state. 

PaRevidStatus
6f7a2Error
1f7a2Ready
2f7a2Ready
3f7a2Ready
4f7a2Ready
5f7a2Ready
   
3751Ready
5751Ready
7751Ready
6751Ready
8751Ready
9751Error
   
3700Ready
5700Ready
7700Ready
6700Ready
8700Error

 

 

pls try

 

Anonymous
Not applicable

Thank you for helping, i apologize if i am not clear with my requirement, for the below scenarios those id's should not be counted, when i use the dax query that you have sent below is the output
id  Status  PacRev
700 Ready 7
751 Ready 8
f7a2 Ready 5

Here , For f7a2, highest PaRev is 6, but status is Error, but i need Status should be Ready with Highest PaRev number. Similarly , For 751, Highest PaRev is 9 with status Error,So these ID,s Shouldn't be counted because the highest PaRev number is status is not Ready.

PaRevidStatus
6f7a2Error
1f7a2Ready
2f7a2Ready
3f7a2Ready
4f7a2Ready
5f7a2Ready
   
3751Ready
5751Ready
7751Ready
6751Ready
8751Ready
9751Error
   
3700Ready
5700Ready
7700Ready
6700Ready
8700Error

write the expected result

Anonymous
Not applicable

For Example,
Output should be only id 85df,
rest all id's shouldn't be counted because highest PaRev number for these id's f7a2,751,700 is "Error"

PaRevidStatus
6f7a2Error
1f7a2Ready
2f7a2Ready
3f7a2Ready
4f7a2Ready
5f7a2Ready
   
3751Ready
5751Ready
7751Ready
6751Ready
8751Ready
9751Error
   
3700Ready
5700Ready
7700Ready
6700Ready
8700Error
   
185dfError
385dfReady
285dfError
   
   
Result  
385dfReady

pls try

 

Anonymous
Not applicable

Thank you so much Ahmed, its working , you are  genius, thank you once again 

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
Top Kudoed Authors