Forum Discussion

asp_nizcovich's avatar
asp_nizcovich
New Member
5 years ago

Detect changed value in a column compared to the previous entry for the same id.

Hey Team,

 

I have a dataset that has numerous features, but for indexing purposes

globalideditdateflag_latestcounter

previous

editdate

rest of features

globalid - user_id, can appear numerous times.

editdate - date of modification to any of the features

previous editdate - lag (editdate)

flag_latest - latest editdate = 1, everything else =  0

counter - number of times the globalid has appeared

 

Data changes through operational use, but we are also doing a lot of "cleaning" of the data, and I want to be able to measure change in features in order to evaluate what it is exactly that we are cleaning.

For example:

I know feature 1 is a status, so I'm ok with it changing based on different operational events.

But feature 5 is an initial value and it should be alarming if that changes.

 

So I would be able to create a visualization of this sort:

 

For that, I understand that what I'm after is the "change in a feature".

For this, I'd need an if statement that identifies a change in the feature against the previous value of the same globalid.

My question is if I have a way with DAX measures to not have to go through an if statement for every single column (feature).

1 Reply