Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
I need help in creating a Result column from the below table based on the condition that both Col1 and Col2 should atleast contain Yes for a Serial_Number. If yes, then the entire Serial_Number should have Yes in Result column.
Serial Number 200 and 400 contains "Yes" atleast once in both Col1 and Col2 , therefore it has "Yes" in Result.
Serial_Number | Col1 | Col2 | Result |
100 | Yes | No | No |
100 | No | No | No |
100 | No | Yes | No |
200 | Yes | Yes | Yes |
200 | No | No | Yes |
300 | No | Yes | No |
300 | Yes | No | No |
300 | No | No | No |
400 | No | No | Yes |
400 | Yes | No | Yes |
400 | Yes | Yes | Yes |
Solved! Go to Solution.
Result=IF(COUNTROWS(FILTER(Table,Table[Serial_Number]=EARLIER(Table[Serial_Number])&&Table[Col1]="Yes"&&Table[Col2]="Yes"))>0,"Yes","NO")
@prasadhebbar315
If you want to create this calculation in the table, go to data view, click on new column and type the below formula:
Result=IF(COUNTROWS(FILTER(Table,Table[Serial_Number]=EARLIER(Table[Serial_Number])&&Table[Col1]="Yes"&&Table[Col2]="Yes"))>0,"Yes","NO")
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |