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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
yush_amateur
Regular Visitor

Duplicate Dates in Date column

Hi !
My original Retail_Transactions[Date] column contains duplicate dates, and hence I created another Calendar table (Because when I created columns with startofmonth, it threw an error that my Retail_Transactions[Date] contains duplicate dates) with

Calendar =
CALENDAR(
    MIN(
        Retail_Transactions[Date]
    ),
    MAX(
        Retail_Transactions[Date]
    )
)

I joined these two tables in the model, but now when I'm creating line charts using this Calendar[Date] field, it doesn't show any result. If I use the field from Retail_Transactions[Date], it shows wrong results. When I turn off the relationship, and use Retail_Transactions[Date] field, it shows the correct result.

Can you tell me why I'm not able to use Calendar[Date] ?

Attaching screenshot for better clarity.date.PNG
1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @yush_amateur 
According to the lack of the calendar icon on your picture i see that "date" in the fact table is not date data type :

Ritaf1983_0-1699002650877.png

Please change it with PQ 

Ritaf1983_1-1699002728940.png

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

8 REPLIES 8
Ritaf1983
Super User
Super User

Hi @yush_amateur 
According to the lack of the calendar icon on your picture i see that "date" in the fact table is not date data type :

Ritaf1983_0-1699002650877.png

Please change it with PQ 

Ritaf1983_1-1699002728940.png

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

I have the same issued, but data type is already set to Date, but it still shows duplaciates and Calendar Icon not appearing at all.

Hi @Raveeshlokanath 

Please share link to the pbix and i 'll try to help.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Raveeshlokanath_0-1717565115346.pngRaveeshlokanath_1-1717565167360.png

 

Hi @Ritaf1983  I can't share the pbi as it contains sensitive data..   please check the Pics above and if you suggest on nex steps will be helpful. Thanks in advance.

hI @Ritaf1983  It is Direct query.

Hi @Raveeshlokanath 

First, I see that your data type is date/time rather than Date.

So, I would first try changing it to Date.

Unfortunately, I don't have any experience with direct query.

So, if the changes I suggested don't work, I recommend simply writing your question as a well-organized post with all the details.

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi @Ritaf1983 ,

Thank you for the solution. I had checked that in the PQ, and it correctly showed Date/Time, but this time I changed it regardless to Date, and then it worked.   
Thank you.

Happy to help 🙂

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.