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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Misha
Helper II
Helper II

Filling with zero values in each cell so they all have the same 4-digit-format

I want to create a link between two tables but therefor onze of the cell's of table 1 should be figured as "0001", "0020"... iso '1", "20"... Anyone that can help me?.. Tx in advance!

 

- in table 1 i have the year '2017' the book "OP" and the documentnummer '1', '20',...

- in table 2 i have the bookingdocument "2017OP0001", "2017OP0020",...

 

I wanted to ad the excelfile and PBI-file but i do not know how to manage that... 😞

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

since you would need to do this is M, you could do something like:

 

=Text.End(000 & [documentnumber], 4)

View solution in original post

Anonymous
Not applicable

@Misha,

You can also create calculated columns using DAX below.

Column = FORMAT(Table[document number],"0000")
Combined column = Table[Year] & Table[Book] & Table[Column]

1.PNG

Regards,
Lydia

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Misha,

You can also create calculated columns using DAX below.

Column = FORMAT(Table[document number],"0000")
Combined column = Table[Year] & Table[Book] & Table[Column]

1.PNG

Regards,
Lydia

Anonymous
Not applicable

since you would need to do this is M, you could do something like:

 

=Text.End(000 & [documentnumber], 4)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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