Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.