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.
How do I modify the Enterprise DNA code date table to add a column like this. Here is the link for det m code
https://forum.enterprisedna.co/t/extended-date-table-power-query-m-function/6390
InsertTermin = Table.AddColumn(InsertMonth, "Termin", each if [Month] >= 1 and [Month] <= 7 then "Vår" else if [Month] > 7 and [Month] <= 12 then "Høst") else null
Solved! Go to Solution.
Say, if your original code is like this
InsertMonth = Table.AddColumn(InsertCompletedQuarter, "Month", each Date.Month([Date]), type number),
InsertStartOfMonth = Table.AddColumn(InsertMonth, "Start of Month", each Date.StartOfMonth([Date]), type date),
You change it as
InsertMonth = Table.AddColumn(InsertCompletedQuarter, "Month", each Date.Month([Date]), type number),
InsertTermin = Table.AddColumn(InsertMonth, "Termin", each if [Month] >= 1 and [Month] <= 7 then "Var" else if [Month] > 7 and [Month] <= 12 then "Host" else null, type text),
InsertStartOfMonth = Table.AddColumn(InsertTermin, "Start of Month", each Date.StartOfMonth([Date]), type date),
Additionally, This link is very popular and a video is posted for explanation on the same link.
Say, if your original code is like this
InsertMonth = Table.AddColumn(InsertCompletedQuarter, "Month", each Date.Month([Date]), type number),
InsertStartOfMonth = Table.AddColumn(InsertMonth, "Start of Month", each Date.StartOfMonth([Date]), type date),
You change it as
InsertMonth = Table.AddColumn(InsertCompletedQuarter, "Month", each Date.Month([Date]), type number),
InsertTermin = Table.AddColumn(InsertMonth, "Termin", each if [Month] >= 1 and [Month] <= 7 then "Var" else if [Month] > 7 and [Month] <= 12 then "Host" else null, type text),
InsertStartOfMonth = Table.AddColumn(InsertTermin, "Start of Month", each Date.StartOfMonth([Date]), type date),
Additionally, This link is very popular and a video is posted for explanation on the same link.
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 |
---|---|
55 | |
55 | |
54 | |
37 | |
29 |
User | Count |
---|---|
77 | |
62 | |
45 | |
40 | |
40 |