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

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.

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

v-yuezhe-msft
Employee
Employee

@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

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yuezhe-msft
Employee
Employee

@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

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.