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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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