Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I am trying to create the following DAX in a column and it's not working properly for me. I would appreciate some assistance.
If "Process Column" is BLANK and "Control Type Column" is "Control", then "1", if not, then "0"
Solved! Go to Solution.
Two options:
= IF( AND( ISBLANK([Process Column]), [Control Type Column] = "Control"), 1, 0 )
= IF( ISBLANK([Process Column]) && [Control Type Column] = "Control", 1, 0 )
regards
Phil
Proud to be a Super User!
NewColumn =
IF(
ISBLANK('YourTable'[Process Column]) && 'YourTable'[Control Type Column] = "Control",
1,
0
)
Hi,
Why did you accept solution on the latest post and not my first post when I wrote exactly the same?
Hi @mariussve1
Your code had errors. It didn't have [ ] around the column names and it was missing the closing " around the text string. If the OP tried that code it would have generated errors.
Regards
Phil
Proud to be a Super User!
Two options:
= IF( AND( ISBLANK([Process Column]), [Control Type Column] = "Control"), 1, 0 )
= IF( ISBLANK([Process Column]) && [Control Type Column] = "Control", 1, 0 )
regards
Phil
Proud to be a Super User!
Hi,
Could you try:
If ( and ( isblank ( Process Column ), Control Type Column = "Control ), 1, 0 )