Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
realme1
Regular Visitor

Trying to extract the first 6 digits of this column, without using power query, from this 10 digits

realme1_0-1699346013893.png

 

realme1_1-1699346098989.png

I have this is powerbi , the column is mentioned material, I only need the first 6 digit of that, not the last 4. How should I do it without powerquery 

 

How should I code this in DAX using measures/ columns

 

Thanks in advance

 

 

1 ACCEPTED SOLUTION
Idrissshatila
Super User
Super User

Hello @realme1 ,

 

use the following formula 

 

Column = LEFT('YourTableName'[Material],6)

Idrissshatila_0-1699346867500.png

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

1 REPLY 1
Idrissshatila
Super User
Super User

Hello @realme1 ,

 

use the following formula 

 

Column = LEFT('YourTableName'[Material],6)

Idrissshatila_0-1699346867500.png

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors