Forum Discussion
power query formula needed
- 4 years ago
Hi, lsustaita
You can try the following methods.
Judgment = IF([Data 1]=[Data 2],1,0)Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Your criteria for Data1 and Data2 are unclear. Please explain the logic again.
Data 1 and Data 2 columns are results for Name column. Data 1 and Data 2 columns will either have 1 or 0.
There may be up to 15 rows for the same data in the Name column. The Data 1 and Data 2 columns for the 15 rows may be the same or have different values. If Data 1 and Data 2 are the same for a number of rows I want to know if they match for the value in the Name column.
Example:
| Name | Data 1 | Data 2 |
| Name 1 | 1 | 0 |
| Name 1 | 1 | 0 |
| Name 1 | 0 | 0 |
| Name 1 | 0 | 0 |
| Name 1 | 1 | 0 |
| Name 1 | 1 | 1 |
| Name 1 | 1 | 1 |
| Name 1 | 1 | 1 |
| Name 1 | 1 | 1 |
| Name 1 | 0 | 1 |
| Name 2 | 1 | 0 |
| Name 2 | 1 | 0 |
| Name 2 | 0 | 0 |
| Name 2 | 0 | 0 |
| Name 2 | 1 | 0 |
| Name 2 | 1 | 1 |
| Name 3 | 1 | 1 |
| Name 3 | 1 | 1 |
| Name 3 | 1 | 1 |
| Name 3 | 1 | 1 |
| Name 3 | 1 | 1 |
| Name 3 | 1 | 1 |
| Name 3 | 1 | 1 |
| Name 3 | 1 | 1 |
| Name 3 | 1 | 1 |
| Name 3 | 1 | 1 |
- v-zhangti4 years agoCommunity Support
Hi, lsustaita
You can try the following methods.
Judgment = IF([Data 1]=[Data 2],1,0)Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.