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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Diportee97
Helper I
Helper I

My calendar date and fact data date are conflicting

 

IMG_0961.jpeg

Hello guys,i ran into a slight issue concerning my calendar function..the month function on my y axis are blank and do not return any value,and also my calendar table date and fact data date are not corresponding,my  fact data date only has 2023 dates while my calendar date has 2023 and 2024 dates which has been causing a great conflict in my visuals,what do you think is the best way forward to this?

 

https://drive.google.com/file/d/1B4evZsPDqjQ7zyLrEty4bZJBUEC63Qdt/view?usp=drivesdk 

 

Thats the link to the data set for better understanding 

1 ACCEPTED SOLUTION
xifeng_L
Super User
Super User

This happens because the data types of the two fields of the join relationship do not match.

 

In this case, the date of the fact table is with time, while the date of the date table is without time, so the two don't match, causing the DAX engine to automatically add empty rows.

 

xifeng_L_0-1742959802327.png

 

You can go into PowerQuery and change the data type of the date field in the fact table to Date instead of DateTime.

 

xifeng_L_1-1742959996505.png

 

Or, just change the data type to "Whole Number", then change back to datetime type.

 

xifeng_L_2-1742960164562.pngxifeng_L_3-1742960174964.png

 

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

View solution in original post

2 REPLIES 2
xifeng_L
Super User
Super User

This happens because the data types of the two fields of the join relationship do not match.

 

In this case, the date of the fact table is with time, while the date of the date table is without time, so the two don't match, causing the DAX engine to automatically add empty rows.

 

xifeng_L_0-1742959802327.png

 

You can go into PowerQuery and change the data type of the date field in the fact table to Date instead of DateTime.

 

xifeng_L_1-1742959996505.png

 

Or, just change the data type to "Whole Number", then change back to datetime type.

 

xifeng_L_2-1742960164562.pngxifeng_L_3-1742960174964.png

 

 

 

Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

 

Thank you~

Deku
Super User
Super User

  • Go to PowerQuery and set the dates in your fact table to Date type
  • Ensure relationship between date and fact table

Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 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.