Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
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 !!