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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
MSiwek
Helper I
Helper I

Problem with dates in connected tables

Hello, I have a problem with connected tables which are connected by SVCCREATEDBY (TABLE 1) to Column1 (TABLE 3) and TABLE 3 is connected to TABLE 2 also by same thing like in TABLE 1. TABLE 3 was created as new query from TABLE 1 and TABLE 2 because there are duplicates (it's correct) so I made a table without duplicates to have a key to join tables, and that's working.

My problem is when I'm trying to use something from TABLE 1 with SVCCREATED and values from TABLE 2 the chart/table shows bad values. 

So I know there are something wrong with dates, maybe it's a problem because data in TABLE 1 is from Oracle data base but data from TABLE 3 is from Microsoft data base? Also you should know that "Data" Column in TABLE 2 is made from = Table.AddColumn(#"Niestandardowe1", "Data", each #date([YearNumber],[MonthNumber],[DayNumber])) and formatted as data in PQ.

MSiwek_0-1735547880713.png

 

6 REPLIES 6
bluedatenbrian
Advocate II
Advocate II


Look on table view (on Power BI Desktop) and on each fields proprieties. All 3 fields must be equal (date at this case). 

 

Why do you need your table 2? Is it a dimention? If it is, both relationship should be single direction (avoid bi-directional relationship every time you can). 
If you need to use some field from table 1 to summarize data from table 3, table 1 looks like a dimenson to table 3, why don't you relate then directly? I'd create a dimension based on this field to link to both tables.

As simple you can keep your model, easier it will be to create your measures and visuals, also you will have better performance on its data refresh and report usage.

As you can see in TABLE 1 key is SVCREATEDBY which have duplicates and it's correct, same thing is in TABLE 2 so i decided to made a TABLE 3 which contains only unique values from both tables. 

danextian
Super User
Super User

Hi @MSiwek 

 

Could you please provide a sample of your data along with the expected results, including the reasoning behind them? You may share a link to a non-confidential version that closely represents your data or a sanitized copy of your PBIX file.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Hi @danextian, I don't know why but I can't attach xlsx and pbix, Screen attached. So for example I would like to see the same data in two tables made in PowerBi using data from different tables. I know that in Table 3 I don't have any other month than december but it doesn't matter in that case, the results are the same even if I have 1:1 dates.

Table1:

MSiwek_0-1735561567502.png

Table 3:

MSiwek_1-1735561598764.png

Connection:

MSiwek_2-1735561664917.png

Niestandardowe means data from = Table.AddColumn(#"Niestandardowe1", "Data", each #date([YearNumber],[MonthNumber],[DayNumber])) and formatted as data in PQ.

Table made using SVCDATECREATED:

MSiwek_3-1735561740425.png

 

Table made using Niestandardowe:

MSiwek_4-1735561782000.png

As you can see first table is good but second is incorrect because all data are agregated to just december.

You may post a link to a file in the cloud.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Honestly, I'm unable to share on cloud due to organizational policy.

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.

Top Solution Authors
Top Kudoed Authors