Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello again community.
I think this very simple, but I cannot reach this outcome using Power Query (Add Custom Column feature). Cal you help me?
In one table I have Columns:
DAY = 01;
MONTH = 01, 02, 03 and so on;
YEAR = 2016
Outcome: A Custom column that joins all three columns above and shows in date format DD-MM-YY (01-01-2016, 01-02-2016, 01-03-16
I have tried M lamguage = [DAY] & "-" & [MONTH] & "-" & [YEAR]
Result I got = Error
Thanks again in advance people.
Solved! Go to Solution.
I just tried this and it worked like a champ. I made sure that all of my columns were Text though so perhaps that is your issue?
[Day] & "-" & [Month] & "-" & [Year]
Here is the query I used:
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjBU0oEQRgaGZkqxsQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Day = _t, Month = _t, Year = _t]), #"Added Custom" = Table.AddColumn(Source, "Custom", each [Day] & "-" & [Month] & "-" & [Year]) in #"Added Custom"
I recently needed to create a custom column in Power Query that detected if an invoice was before July 6, 2020. This code works and looks a bit simpler than the previous answers.
= [InvoiceDate] < Date.FromText("7/6/2020")
I just tried this and it worked like a champ. I made sure that all of my columns were Text though so perhaps that is your issue?
[Day] & "-" & [Month] & "-" & [Year]
Here is the query I used:
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjBU0oEQRgaGZkqxsQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Day = _t, Month = _t, Year = _t]), #"Added Custom" = Table.AddColumn(Source, "Custom", each [Day] & "-" & [Month] & "-" & [Year]) in #"Added Custom"
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
66 | |
59 | |
49 | |
36 | |
35 |
User | Count |
---|---|
84 | |
70 | |
58 | |
45 | |
44 |