cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors