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.
How can i get the last digit of 89827460?
I wanto to check the last digit of the value of a column and if it is 0 return "A" if 1 return "B" if 3 return "C".
Solved! Go to Solution.
@Anonymous try this
let x = Text.End(Text.From([Column1]),1)
in if x="0" then 1 else if x="1" then 2 else if x="3" then 3 else -999
= if Text.End([Data],1)="0" then "A" else if Text.End([Data],1)="1" then "B" else if Text.End([Data],1)="2" then "C" else null
Please whether you need C for 2 as you are saying it is needed for 3.
@Anonymous try this
let x = Text.End(Text.From([Column1]),1)
in if x="0" then 1 else if x="1" then 2 else if x="3" then 3 else -999
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.