Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi there I have a series of custom columns example:
Concept (result is either pass fail or query)
Initiative (result is either pass fail or query)
Project (result is either pass fail or query)
Brief (result is either pass fail or query)
I need to then write a formula that tells me the following:
Overall Result = if any result of the 4 comes back a fail - its fail, if any result comes back a query - its query else Pass.
can you please help me? what is the best option for this formula?
thanks
🙂
Solved! Go to Solution.
Hi @Nikki ,
Create a Calculated Column
Status =
SWITCH (
TRUE (),
'Table'[Concept] = "Fail"
|| 'Table'[Initiative] = "Fail"
|| 'Table'[Project] = "Fail"
|| 'Table'[Brief] = "Fail", "Fail",
'Table'[Concept] = "Query"
|| 'Table'[Initiative] = "Query"
|| 'Table'[Project] = "Query"
|| 'Table'[Brief] = "Query", "Query",
"Pass"
)
Regards,
Harsh Nathani
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!
Hi @Nikki ,
Create a Calculated Column
Status =
SWITCH (
TRUE (),
'Table'[Concept] = "Fail"
|| 'Table'[Initiative] = "Fail"
|| 'Table'[Project] = "Fail"
|| 'Table'[Brief] = "Fail", "Fail",
'Table'[Concept] = "Query"
|| 'Table'[Initiative] = "Query"
|| 'Table'[Project] = "Query"
|| 'Table'[Brief] = "Query", "Query",
"Pass"
)
Regards,
Harsh Nathani
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!
Hi Again
my formula worked:
Maybe try something like this:
Status =
VAR FinalString =
CONCATENATEX (
FILTER ( Nikki, Nikki[Num] = EARLIER ( [Num] ) ),
[Concept] & [Initiative] & [Project] & [Brief]
)
VAR LowerString =
LOWER ( FinalString )
VAR PassIncluded =
SEARCH ( "pass", LowerString, 1, 0 )
VAR QueryIncluded =
SEARCH ( "query", LowerString, 1, 0 )
VAR Result =
SWITCH ( TRUE (), QueryIncluded > 0, "Query", PassIncluded > 0, "Pass", "Fail" )
RETURN
Result
thanks so much !!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
126 | |
113 | |
69 | |
59 | |
46 |