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.
Hello,
I'm trying to create a calculated column with two conditions on IF.
First criteria: If column1 contains "rtb+"
Second criteria: if column2 doesn't contain "Deals_"
#"RTB+ Impressions_clm" =
Table.AddColumn(Hb_Impressions_clm, "RTB+ Impressions", each if (Text.Contains([#"Column1"], "RTB+")
and (not Text.Contains([#"Column2"], "Deals_")))
then [Impressions]
else null)
What i'm doing wrong?
Thank you,
Grigoris
Solved! Go to Solution.
@polman4 , seem fine
if (Text.Contains([#"Column1"], "RTB+") and ( not Text.Contains([#"Column2"], "Deals_"))
then [Impressions]
else null
but it is case sensitive , you can use Text.Upper, example
if (Text.Contains(Text.Upper([#"Column1"]), "RTB+") and ( not Text.Contains([#"Column2"], "Deals_"))
then [Impressions]
else null
@polman4 , seem fine
if (Text.Contains([#"Column1"], "RTB+") and ( not Text.Contains([#"Column2"], "Deals_"))
then [Impressions]
else null
but it is case sensitive , you can use Text.Upper, example
if (Text.Contains(Text.Upper([#"Column1"]), "RTB+") and ( not Text.Contains([#"Column2"], "Deals_"))
then [Impressions]
else null
User | Count |
---|---|
117 | |
73 | |
58 | |
49 | |
48 |
User | Count |
---|---|
171 | |
122 | |
60 | |
59 | |
56 |