Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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" )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
97 | |
77 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |