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 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss 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:
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Check out the July 2026 Power BI update to learn about new features.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 30 | |
| 25 | |
| 23 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 50 | |
| 32 | |
| 19 | |
| 19 | |
| 17 |