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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
v-divyava
Employee
Employee

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

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

 

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

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

 

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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.