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.
Hello everyone,
I want to create a Filter-Measure, that output "1", if two specific columns in my table have same values in the same row.
For example:
No. | Article | X | Y | output filter measure |
-----------------------------------------------------------------------------
1 | A | account 45 | account 70 | 0 |
2 | B | account 2 | account 2 | 1 |
3 | C | account 90 | account 500 | 0 |
4 | D | account 7 | account 7 | 1 |
In this example, my filter-measure should return "1" in line 2 and line 4 because the content in line 2 in column "X" is the same as well as in column "Y" (account 2). The same logic for line 4 (account 7)
Thanks for advice on how I can solve this.
Solved! Go to Solution.
@tim_m15 Well, try:
Column = IF([X] = [Y],1,0)
Measure = IF(MAX([X]) = MAX([Y]),1,0)
@tim_m15 Well, try:
Column = IF([X] = [Y],1,0)
Measure = IF(MAX([X]) = MAX([Y]),1,0)
@tim_m15 , a snew column this should work ?
if([X] =[Y],1,0)
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 |
---|---|
113 | |
97 | |
79 | |
73 | |
56 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |