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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
rutujakadam_11
Frequent Visitor

Data modelling

I have a DIM_CALENDAR table in Power BI which is the master data for all dates from year 2020 to 2025. I am creating a relationship between this Dim_Calendar table with Fact_Sales table which has details of sales such as Invoice_Number, Invoice Date, Business_Unit,, etc. The relationship is created between Date column of Dim_Calendar & Invoice_Date column of Fact_Sales tables and is one to many. Few Invoice numbers are not matching with the relationship created due to which there is data discrepancy. Eg: Out of all the sales created on 1/4/2022, only the first one maps with Dim_Calendar table rest entries show blank. What is the cause for this error. I have also made sure that both columns have same data type & Date format.

 

In the below snap you can see that only the entry of INVOICE_NUMBER-241688 maps with Date column of Dim_Calendar, rest all show blank. 
Screenshot 2024-04-19 191938.png

2 REPLIES 2
Anonymous
Not applicable

Hi @rutujakadam_11 

 

Could you please provide more raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

 

Best Regards

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

PhilipTreacy
Super User
Super User

Hi @rutujakadam_11 

 

Download example PBIX file with data shown below

 

I can't reproduce your problem.  With my sample data if it is set up correctly with a Calendar that is marked as a Date Table  and you have a relationship between the calendar and your dim table, it should look like this

 

dimcal.png

 

Please supply your PBIX file or some sample data so I can check it for you.

 

Regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors