Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
Hello! I am trying to write an IF statement that will look at multiple columns to determine the appropriate input.
I want the formula to see if that ad group (column 1) has a responsive search ad (column 2) that is active (column 3) then input yes, if not input no.
Thank you!
Solved! Go to Solution.
For the column syntax (not measure), try this:
Ad Group Contains Active Responsive Search Ad? =
var _AdGroup = 'Table'[Ad Group]
var _Conditon_check = CALCULATE( COUNTROWS('Table'), Filter(All('Table'), 'Table'[Ad Group] = _AdGroup && 'Table'[Ad Type] = "Responsive Search Ad" && 'Table'[Status] = "Active") )
RETURN IF ( _Conditon_check >= 1, "Yes", "No")
Output:
For the column syntax (not measure), try this:
Ad Group Contains Active Responsive Search Ad? =
var _AdGroup = 'Table'[Ad Group]
var _Conditon_check = CALCULATE( COUNTROWS('Table'), Filter(All('Table'), 'Table'[Ad Group] = _AdGroup && 'Table'[Ad Type] = "Responsive Search Ad" && 'Table'[Status] = "Active") )
RETURN IF ( _Conditon_check >= 1, "Yes", "No")
Output:
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 30 | |
| 28 | |
| 23 | |
| 21 | |
| 19 |
| User | Count |
|---|---|
| 41 | |
| 32 | |
| 18 | |
| 18 | |
| 15 |