Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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 MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
146 | |
75 | |
64 | |
52 | |
47 |
User | Count |
---|---|
218 | |
87 | |
71 | |
63 | |
60 |