Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |