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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Row for every day and every employee

Hi,

 

I want to create a table which contains one row per employee per day. (My end result is to show total available labour on any given day)

 

My existing tables are as follows

 

1. Date table (calendar auto)  

2. Employee Name / Employee ID table

 

Any ideas on how to achieve this?

1 ACCEPTED SOLUTION

@Anonymous , You are creating a measure. You need to create a new table.

 

Also you can use summarize or selectcolumns to reduce columns

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Cross Join between date and Employee table

Crossjoin(Date, Employee)

 

 

refer if needed

https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/

Anonymous
Not applicable

Thanks for your response. When adding this measure I get the below error?

Serdet_0-1631607640556.png

Please note my employees table also contains other columns such as employee ID, employee reference and so on...

 

 

@Anonymous , You are creating a measure. You need to create a new table.

 

Also you can use summarize or selectcolumns to reduce columns

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Kudoed Authors