Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Up Program - Visualize data with Power BI
Suggested answer

Another data relationship problem (past module 9)

(1) ShareShare
ReportReport
Posted on by 25
Hello, 
 
I have a strange problem. When data is not connected via relationship the report works:
Buf of course the matrix does not (made it for test purposes):
But when I make the connection like this (I already did correct the format to just date in power query):
 
The report breaks:
But the matrix works:
 
 
Can someone please explain to me why is this happening? This is the last thing I need to do, before submiting the challenge.
Thank you in advance.
 
 
Categories:
  • RT-22040501-0 Profile Picture
    90 on at
    Another data relationship problem (past module 9)
    Thanks for posting the picture of the relationship.
     
    Yes, the relationship exists and technically it is fine... but why then it does not provide any results
     
    if you check the values inside the InspectionDateTime column you will see that the values are something like 3/24/2025 17:00  and if you go and check the date on dimDate, you will see that the values are something like 3/24/2025 00:00  will those values match?  sorry, no they do not match because they are not equal.  It is one field, date and time together, it doesnt matter if the date matches, if the time does not match, then the relationship cannot put them together.
     
    hope this helps
    Rafael
  • CU05051043-1 Profile Picture
    25 on at
    Another data relationship problem (past module 9)
    Just to be clear - the date format is correct. Please see the relationship below:
     
     
  • Suggested answer
    RT-22040501-0 Profile Picture
    90 on at
    Another data relationship problem (past module 9)
    Hello
     
    the reason is the parking inspection datetime has a time stamp and the dimDate date has a time stamp of 12:00 or 00:00, so the system is trying to do an exact match of date (this part works) and time (this does not work) so there are no related records.
    To fix it, on the parking inspections create a new DATE only column based on the datetime, then make a relationship between this new column and the dimDate date column.
     
    This should work, it did for me as I had that same problem and yes, it took me a while to figure it out.
    Rafael

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Leaderboard >

Featured topics