Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have a table below - And I need a calculated column that gives me the information for Code A, whether the Id already exists or not in code B
ID | Code |
100 | A |
102 | A |
103 | A |
100 | B |
101 | B |
So the final table should look like this:
ID | Code | Exist or Not? |
100 | A | Exist |
102 | A | New |
103 | A | New |
100 | B | |
101 | B |
Solved! Go to Solution.
X =
VAR _1 =
COUNTX (
FILTER ( Table, [ID] = EARLIER ( [ID] ) && [Code] < EARLIER ( [Code] ) ),
[ID]
) + 0
RETURN
IF ( _1 > 0, "Old", "New" )
X =
VAR _1 =
COUNTX (
FILTER ( Table, [ID] = EARLIER ( [ID] ) && [Code] < EARLIER ( [Code] ) ),
[ID]
) + 0
RETURN
IF ( _1 > 0, "Old", "New" )
User | Count |
---|---|
102 | |
91 | |
87 | |
79 | |
71 |
User | Count |
---|---|
113 | |
105 | |
101 | |
75 | |
64 |