Skip to content

Instantly share code, notes, and snippets.

@brunotdantas
Created November 19, 2021 01:03
Show Gist options
  • Save brunotdantas/58fe9180ec4c5528e5318516877ac503 to your computer and use it in GitHub Desktop.
Save brunotdantas/58fe9180ec4c5528e5318516877ac503 to your computer and use it in GitHub Desktop.
POWER BI - Tabela calendário DAX
dCalendario =
ADDCOLUMNS(
CALENDARAUTO();
"Ano";FORMAT([Date];"yyyy");
"Trimestre";FORMAT([Date];"q");
"Mês Nome";FORMAT([Date];"mmmm");
"Mês Abrev";FORMAT([Date];"MMM");
"Mês Num.";MONTH([Date]);
"Dia";DAY([Date]);
"Dia Nome";FORMAT([Date];"dddd");
"Dia Abrev";FORMAT([Date];"ddd");
"Número do Dia";WEEKDAY([Date])
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment