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.
Hello,
I would like to create a calendar table where for every single date there is a row for every employee ID.
I already have a calendar table and a separate Employees table in a SQL database. I would like next to the column Calendar[Date] to have a column Calendar[EmployeeID]
Would you like to tell me how to do that?
Solved! Go to Solution.
I am making for employee attendance where I need every date by every employee in order to make a relationship with the clock ins and clock outs.
What I did is to make a simple query in SQL.
Another way that I was told in Global Power BI User Group @ Facebook was to add a column with value of "1" in each table and merge them. Very simple and clean.
Thank you, I will accept your recommendation as a solution without trying. I believe it works.
Have a look at the GENERATE function:
https://msdn.microsoft.com/en-us/library/gg492196.aspx
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |