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.
Hi,
I want to create a column to check both two column values are match. Plesae see example below:
Name | Country | Item# |
A | A | 1 |
B | A | 2 |
C | B | 1 |
D | B | 3 |
E | C | 2 |
I want to create a column to return "y" if there is other row has same Item# but with different Country, return "n" if there is no other row that has same Item# with different Country.
Desired Result Below:
Name | Country | Item# | _Check |
A | A | 1 | y |
B | A | 2 | y |
C | B | 1 | y |
D | B | 3 | n |
E | C | 2 | y |
Thanks!
Solved! Go to Solution.
@Anonymous
pls try this
_check =
VAR result=maxx(FILTER('Table','Table'[Item#]=EARLIER('Table'[Item#])&&'Table'[Country]<>EARLIER('Table'[Country])),'Table'[Country])
return if (result="","n","y")
Proud to be a Super User!
@Anonymous
pls try this
_check =
VAR result=maxx(FILTER('Table','Table'[Item#]=EARLIER('Table'[Item#])&&'Table'[Country]<>EARLIER('Table'[Country])),'Table'[Country])
return if (result="","n","y")
Proud to be a Super User!
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 |
---|---|
105 | |
97 | |
75 | |
63 | |
62 |
User | Count |
---|---|
137 | |
105 | |
104 | |
80 | |
63 |