Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I'm trying to break this data up into two columns that I can subtract from each other. So for example I'd like to change 1950/ 50 to 1950 - 1950 = 0
The problem is sometimes the number on the right of the / only has two digets. So for example 1940/60 should be 1940/1960.
I first seperated the number into two columns based on the / using split column button.
Next I'd like to create some logic that says if there are less than 4 characters in Face1.2, append the left two characters from Face1.1 to Face1.2. I'm having trouble doing this. I tried using the prefix option to do this and changed the face to LEFT([Face1.1],2) but I got an error.
Thanks for the help!
Solved! Go to Solution.
HIi @left4pie2 , the following can be used in the Face.1.2 column in the transformcolumns function.
Table.TransformColumns(#"Previous Step", [Face.1.2] , each if Text.Length(_) = 2 then "19" & _ else _ )
In the next step, you can convert both text columns to Numbers.
HIi @left4pie2 , the following can be used in the Face.1.2 column in the transformcolumns function.
Table.TransformColumns(#"Previous Step", [Face.1.2] , each if Text.Length(_) = 2 then "19" & _ else _ )
In the next step, you can convert both text columns to Numbers.
That worked, thanks!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.