Column Transformation Coding Help!

sanantonio

Board Regular
Joined
Oct 26, 2021
Messages
124
Office Version
  1. 365
Platform
  1. Windows
Hi All,

Not particularly experienced with Power BI. Any help would be greatly appreciated.

Our business has always worked with 6 digit basic "article" numbers, for example 123456; which are often displayed in their "long" form when extracting data from our system. EG: 123456001. For data analysis and reporting etc. any export that produces this long number is always shortened to it's 6 digit. In excel we'd use
Excel Formula:
=Left(A1,6)
for example.

Issue has arisen that some Product Groups have used up their assigned 6 digits so will begin using 7 digit numbers. In excel this isn't an issue for me, we've been using:
Excel Formula:
=LEFT(B1,LEN(B1)-3)
. However I'm now trying to reverse engineer some Power BI's that were built by someone no longer with the business.

What is the Power BI speak equivalent of
Excel Formula:
=LEFT(B1,LEN(B1)-3)
that I can insert into the query to replace the existing code?

1655903659952.png
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,223,649
Messages
6,173,580
Members
452,521
Latest member
bdough27

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top