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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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/

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!