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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Dnzcn
Regular Visitor

Data Modeling

Hi everyone,

 

I have two historical tables and I am converting these tables to day by day with dimdate table using sql storedprocedure.  My aim is to report in PowerBI the leave information of the employees according to the work place on the specified date or date range using a date filter.

What I want to ask is that

-it takes a long time to convert tables day by day in sql. Is there any other way besides this method ? 

-How should a model be built in such a historical structure, is the day-to-day conversion method correct ?

(I wrote the record examples and the number of records in the tables before and after the conversion below. )

 

Employee Absence Table (885.000 records)

EMPOYEEIDABSANCE_CODESTARTDATEENDATE
66936032018-01-07 00:00:00.0002018-01-10 00:00:00.000
66936012018-02-01 00:00:00.0002018-02-05 00:00:00.000

 

Employee Assignment Records (87.000 records)

EMPOYEEIDDEPARTMAN_CODESTARTDATEENDDATE
669363CCEC22018-01-26 00:00:00.0002018-02-27 00:00:00.000
669363CCHA22018-01-01 00:00:00.0002018-01-25 00:00:00.000

 

Day by Day Workplace (34.000.000 records)

DATEDEPARTMAN_CODEEMPLOYEEID DATEDEPARTMAN_CODEEMPLOYEEID
1.01.20183CCHA266936 1.02.20183CCEC266936
2.01.20183CCHA266936 2.02.20183CCEC266936
3.01.20183CCHA266936 3.02.20183CCEC266936
4.01.20183CCHA266936 4.02.20183CCEC266936
5.01.20183CCHA266936 5.02.20183CCEC266936
6.01.20183CCHA266936 6.02.20183CCEC266936
7.01.20183CCHA266936 7.02.20183CCEC266936
8.01.20183CCHA266936 8.02.20183CCEC266936
9.01.20183CCHA266936 9.02.20183CCEC266936
10.01.20183CCHA266936 10.02.20183CCEC266936
11.01.20183CCHA266936 11.02.20183CCEC266936
12.01.20183CCHA266936 12.02.20183CCEC266936
13.01.20183CCHA266936 13.02.20183CCEC266936
14.01.20183CCHA266936 14.02.20183CCEC266936
15.01.20183CCHA266936 15.02.20183CCEC266936
16.01.20183CCHA266936 16.02.20183CCEC266936
17.01.20183CCHA266936 17.02.20183CCEC266936
18.01.20183CCHA266936 18.02.20183CCEC266936
19.01.20183CCHA266936 19.02.20183CCEC266936
20.01.20183CCHA266936 20.02.20183CCEC266936
21.01.20183CCHA266936 21.02.20183CCEC266936
22.01.20183CCHA266936 22.02.20183CCEC266936
23.01.20183CCHA266936 23.02.20183CCEC266936
24.01.20183CCHA266936 24.02.20183CCEC266936
25.01.20183CCHA266936 25.02.20183CCEC266936
26.01.20183CCEC266936 26.02.20183CCEC266936
27.01.20183CCEC266936 27.02.20183CCEC266936
28.01.20183CCEC266936 28.02.20183CCEC266936
29.01.20183CCEC266936    
30.01.20183CCEC266936    
31.01.20183CCEC266936    

 

 

Day By Day Absence Table (6.000.000 records)

DATEABSANCE_CODEEMPLOYEEID
7.01.20180366936
8.01.20180366936
9.01.20180366936
10.01.20180366936
1.02.20180166936
2.02.20180166936
3.02.20180166936
4.02.20180166936
5.02.20180166936
1 ACCEPTED SOLUTION
2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

Hi @Dnzcn ,

 

Whether the advice given by @amitchandak  has solved your confusion, if the problem has been solved you can mark the reply for the standard answer to help the other members find it more quickly. If not, please point it out.


Looking forward to your feedback.


Best Regards,
Henry

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.