Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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:
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 38 | |
| 38 | |
| 28 | |
| 27 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 73 | |
| 66 | |
| 65 |