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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
pfederica
Frequent Visitor

date column must contain unique values

Hi everyone,

i'm new on Power Bi.

i have sales data: i have a row for each sale at any time for different customers. So, my column timestamp is not univoque.

I'm tryng to mark a DateTable using my datetime column, but Power Bi tells me that that column must contain unique values.

How can i resolve it? 

 

Thanks very much!

1 ACCEPTED SOLUTION

Hi  @pfederica,

 

For your scenario, you could use MIN and MAX function because you have duplicate date which FIRSTDATE is not supported..

 

calendar.PNG

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @pfederica

 

You could create a calculated table with CALENDAR function or CALENDARAUTO function.

 

Then you could create the relationships between the Calendar table and your original table.

 

If you need further help, please share some data sample and you desired output.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-piga-msft

when i use the CALENDAR function the result is this: 

Datetable.PNG

The error message says that a date column has been specified with date duplicate.

 

And my data type is like that: 

DataID.PNG

 

How can I do?

Thanks a lot

Hi  @pfederica,

 

For your scenario, you could use MIN and MAX function because you have duplicate date which FIRSTDATE is not supported..

 

calendar.PNG

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Still getting error

 

Interkoubess
Solution Sage
Solution Sage

Hi @pfederica,

 

Yes you must create a calendar table with unique values ( there are lot of examples on the forum).

 

Because PB uses these uniques values to process time intelligence functions.

 

Let us know if you are experiencing some difficulties we can help.

 

Ninter.

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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