Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi, I have a custom column in Power Query that works in one pbix file, but when I copy the logic across to another pbix file, the formatting applies differently to expectation (the previous file is as expected). Source tables and data types are exactly the same between the 2 files, so it looks like it is only the way the formatting is being applied that's the issue.
For context, I am concatenating a date field ([ProfileStartDate]) with a text field ([Supplier]) and a number ([Rank]) to form a single text string that can be used as an identifier in the end report.
My expectation is that the "00" formatting in bold below, allows for the month and day to be (e.g.) 04 instead of just 4 to ensure consistent date length within the string. In the original file, I get a result like 2024/04/01 - Test - 1, whereas in the subsequent file, I am getting a result of 2024/4/1 - Test - 1. Has there been any update to PBI that may have caused this? Or are there any file settings I can check to ensure consistency between the 2 files? Any help most appreciated!
The Custom Column step for reference:
= Number.ToText ( Date.Year ( [ProfileStartDate] ) ) & "/" & Number.ToText (Date.Month ( [ProfileStartDate] ) , "00" ) & "/" & Number.ToText ( Date.Day ( [ProfileStartDate] ) , "00" ) & " - " & [Supplier] & " - " & Number.ToText ( [Rank] )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.