Forum Discussion
Validate correlation
I have a table where there is the column containing the registration number and I want to add two new columns where one tells me if there was a numbering break and another that tells me how many numbers were skipped. Is it possible to do that?? Thank you very much for the help.
New columns
Skip =
var _max = maxx(filter(Table, [registration number] < earlier([registration number]) ),[registration number])
return
if(isblank(_max) || [registration number] -Max =1 ,"No", yes)
Skip number =
var _max = maxx(filter(Table, [registration number] < earlier([registration number]) ),[registration number])
return
if(isblank(_max) || [registration number] -Max =1 ,0, [registration number] -Max )
DAX- Earlier, I should have known Earlier: https://youtu.be/CVW6YwvHHi8
2 Replies
- amitchandakSuper User
New columns
Skip =
var _max = maxx(filter(Table, [registration number] < earlier([registration number]) ),[registration number])
return
if(isblank(_max) || [registration number] -Max =1 ,"No", yes)
Skip number =
var _max = maxx(filter(Table, [registration number] < earlier([registration number]) ),[registration number])
return
if(isblank(_max) || [registration number] -Max =1 ,0, [registration number] -Max )
DAX- Earlier, I should have known Earlier: https://youtu.be/CVW6YwvHHi8
- Syndicate_AdminAdministrator
Thanks for the help!!! Big hug and happy holidays!