Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I want to extract a different set of text from a column called "Description" when I used the Nested IF else statement in the custom column on power query it is not working or I could say the "OR" condition is not working.
Below is my complete query: The highlighted green color query is working but the remiaing part throwing an error
Error:
Expression.Error: 1 arguments were passed to a function which expects between 2 and 3.
Details:
Pattern=
Arguments=[List
Query:
if Text.Contains([Description],"Sptool identified") then Text.BetweenDelimiters([Description], "1.Exception: ", "2.Proce") as text
else
if Text.Contains([Description],"the exception being:") then Text.BetweenDelimiters([Description], "being:", "The impacted") as text
else
if Text.Contains([Description]="invoice" or [Description]="eRTY" or [Description]="EnGMT" or[Description]="buET" or [Description]="ECT") then "CPM" as text
else "Check"
Solved! Go to Solution.
Use below
if Text.Contains([Description],"Sptool identified") then Text.BetweenDelimiters([Description], "1.Exception: ", "2.Proce") as text
else
if Text.Contains([Description],"the exception being:") then Text.BetweenDelimiters([Description], "being:", "The impacted") as text
else
if List.ContainsAny({[Description]},{"invoice","eRTY","EnGMT","buET","ECT"},(x as text, y as text)=>Text.Contains(x,y)) then "CPM" as text
else "Check"
Use below
if Text.Contains([Description],"Sptool identified") then Text.BetweenDelimiters([Description], "1.Exception: ", "2.Proce") as text
else
if Text.Contains([Description],"the exception being:") then Text.BetweenDelimiters([Description], "being:", "The impacted") as text
else
if List.ContainsAny({[Description]},{"invoice","eRTY","EnGMT","buET","ECT"},(x as text, y as text)=>Text.Contains(x,y)) then "CPM" as text
else "Check"
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
17 | |
9 | |
8 | |
7 | |
7 |