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
10168
Helper I
Helper I

Issues with One to Many relationship and Duplicates from a specific column

Please bear with me as I'm extemely new to PowerBI modeling and wiritng DAX

I have created a one to many relationship between these two tables below (One of them is Date table and other one has all kinds of dates related to scheudling). The relationship is between taskFinishDate(Many) and Cal Date(Unique). FiscalYear is a column in CalDate and whenever I bring in this column into the Visual it starts creating duplicates. I'm trying to avoid this. Can someone shed somelight on why is this happening. Please! 

 

10168_0-1699652878700.png

 

10168_1-1699652910502.png10168_2-1699652960698.png

 

 

Also I'm trying to write some DAX based on a different column in TaskActivity_fact and it didn't seem to return what I am expecting 

 

Planned to Date =
CALCULATE(COUNT('taskactivity_fact'[task_baselinefinishdate]), FILTER('DimDate_BWL','DimDate_BWL'[FiscalYear] = 2024 && 'DimDate_BWL'[FMCategory] IN {"PREVIOUS PERIOD","PREVIOUS"}))
 
I'm expecting that DAX is going to filter as I have a relationship that exists
 
Please help and also let me know if I can provide anything more to be specific. thank you again!!
3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

While in the first image both date columns are right aligned (which provied that the date types of those columns is Date) bu in the second image, i see that the finish date is left aligned (thereby proving that the Date type is text).  In the Query Editor, please ensure that the Date type of the Finish date column is Date.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you Ashish, I made sure that both the columns are the same data type - Date, however I'm still having the same problem, the FiscalYear column is a whole number. Any thoughts please? thank you

Cannot help without seeing the file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.