Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Victormar
Helper V
Helper V

Not able to use Calendar Table

Hi community,

 

I have been dealing for some days with a problem when connecting a calendar table I create to some data tables that I have within my model. I have never experienced this problem, so I don't really know what can be wrong.

 

I have several tables with data regarding vehicles, ranging from some parameters that we collect data from, to a list of delivered vehicles, to a table with Reading_ids. All of these tables have a timestamp.

 

What I am trying to do is to create a separate table for calendar/hierarchies purposes, but when I connect the date column with the tables, it won't display any data, like if the connection wouldn't work. 

 

I tried two different way to create the calendar table, and I never had problems before with them. One would be a pre-created formula like:


Optimum calendar =
VAR PrimeraFechaVentas = MIN(This I would change for the main date column) ---> Columna a cambiar
VAR AnoPrimeraVenta = YEAR(PrimeraFechaVentas)
VAR Fechas =
FILTER(
CALENDARAUTO(),
YEAR( [Date]) >= AnoPrimeraVenta
)
RETURN

ADDCOLUMNS(
Fechas,
"Año", YEAR([Date]),
"Trimestre", FORMAT([Date], "\QQ"),
"MesNumerico", MONTH([Date]),
"Mes de año", FORMAT([Date], "mmm"),
"Mes", FORMAT([Date], "mm"),
"DiaSemanaNum", WEEKDAY([Date],2),
"Dia Semana", FORMAT([Date], "ddd")
)

 

The other one would be just clicking on entering data to create a new column, manually putting which is the first date, creating another column using M language defining the last date, which would be today's date, and getting all the range of days between both dates.

 

My main problem is, why is not working when connecting both dates, from the calendar table to the other tables? Never happened before.

 

Thnaks in advance 🙂

1 ACCEPTED SOLUTION
moizsherwani
Continued Contributor
Continued Contributor

@Victormar I can't say exactly without looking at your data model but when I faced this issue in the past, it was because the date column were different (even though they looked the same). E.g. one might be coming through as a datetime and the other as a date so PowerBI doesn't understand that 1/1/2022 is the same as 1/1/2022 00:00. Let me know if this helps. If not please try to send over the data model with the two tables in question. 

Thanks,

Moiz
Was I able to answer your question? Mark my post as a solution to help others. Kudos if you liked the solution.

View solution in original post

2 REPLIES 2
Victormar
Helper V
Helper V

Indeed! That was actually the problem, in the Power Query one of the Date columns was marked as Date/Time, many thanks!

moizsherwani
Continued Contributor
Continued Contributor

@Victormar I can't say exactly without looking at your data model but when I faced this issue in the past, it was because the date column were different (even though they looked the same). E.g. one might be coming through as a datetime and the other as a date so PowerBI doesn't understand that 1/1/2022 is the same as 1/1/2022 00:00. Let me know if this helps. If not please try to send over the data model with the two tables in question. 

Thanks,

Moiz
Was I able to answer your question? Mark my post as a solution to help others. Kudos if you liked the solution.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.