Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! 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:
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 65 | |
| 65 | |
| 45 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 115 | |
| 114 | |
| 38 | |
| 36 | |
| 26 |