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 have a table in Power BI that contains the same values multiple times in a column, but I want to create a formula that says if any row in the column contains the same Control Name, and Status is equal to "Complete-Fail" and Discussed is equal to "Discussed with Mgmt" then make my new Effective/Ineffective column say "Ineffective", if not then "Effective" is returned. Keep in mind, every control will not have the same number of phases and not everything with a "Complete-Fail" status is Discussed with Mgmt. If you took, my sample data, I would only expect to see "Ineffective" for rows that say "Complete-Fail" and "Discussed with Mgmt."
Every control will have a Walkthrough phase while the other phases for each control will vary, so perhaps a formula can be built around if the control contains string "Complete" for the Walkthrough phase of a control, to find just one for that control that may contain "Complete-Fail" and "Discussed with Mgmt" for the Ineffective status.
Hi,
Please check the below picture and the attached pbix file.
It is for creating a calcualted column.
effective/ineffective CC =
VAR _condition = data[status] = "complete-fail"
&& data[discussed] = "discussed with Mgmt"
RETURN
IF ( _condition, "ineffective", "effective" )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
var controlName = datum[Control Name]
var ineffective =
FILTER(
ALL( datum ),
datum[Control Name] = controlName
&& datum[Status] = "Complete-Fail"
&& datum[Discussed] = "Discussed with Mgmt"
)
return
IF( ISEMPTY( ineffective ), "Effective", "Ineffective" )