Hi,
I'm trying to come up with a formula that compares two sets of data in the same table. For example here is some sample data:
Identifier1,Identifier2,Concatenate,Date,Unique ID
8.8.8.8,1234,8.8.8.81234,1/12/20,1
8.8.8.8,4321,8.8.8.84321,1/12/20,1
1.2.3.4,1234,1.2.3.41234,1/12/20,1
1.2.3.4,4321,1.2.3.44321,1/12/20,1
8.8.8.8,1234,8.8.8.81234,1/20/20,2
8.8.8.8,4321,8.8.8.84321,1/20/20,2
8.8.8.8,1234,8.8.8.81234,1/30/20,3
8.8.8.8,4321,8.8.8.84321,1/30/20,3
1.2.3.4,1234,1.2.3.41234,1/30/20,3
1.2.3.4,4321,1.2.3.44321,1/30/20,3
4.3.2.1,1234,4.3.2.11234,1/30/20,3
What I want to do I check and see if any of the concatenated values are duplicates but only from the previous date (Unique ID -1). Let me know if this makes sense.
I want to do this with Power BI bc I will be adding new files to the data every week, so my hope is that it will automatically add that calculations between weeks to see what's duplicate this week from last week, as well as what is new.
Solved! Go to Solution.
So I am thinking perhaps something like the following:
Column Duplicate =
VAR __UniqueID = 'Table'[UniqueID]
VAR __Table =
SELECTCOLUMNS(
FILTER('Table','Table'[UniqueID] = __UniqueID - 1),
"__Concatenate",'Table'[Concatenate]
)
VAR __Current = 'Table'[Concatenate]
RETURN
IF(__Current IN __Table,"Yes","No)
Proud to be a Super User!
So I am thinking perhaps something like the following:
Column Duplicate =
VAR __UniqueID = 'Table'[UniqueID]
VAR __Table =
SELECTCOLUMNS(
FILTER('Table','Table'[UniqueID] = __UniqueID - 1),
"__Concatenate",'Table'[Concatenate]
)
VAR __Current = 'Table'[Concatenate]
RETURN
IF(__Current IN __Table,"Yes","No)
Proud to be a Super User!
So basically:
Proud to be a Super User!
Featured Session: Drive Data Culture with Power BI- Vision, Strategy & Roadmap. Register here https://myignite.microsoft.com #MSIgnite #PowerPlatform #Power BI
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
User | Count |
---|---|
460 | |
176 | |
117 | |
61 | |
51 |
User | Count |
---|---|
446 | |
160 | |
130 | |
75 | |
73 |