Forum Discussion
Employee Workload - Underlying data structure suggestions?
- 11 months ago
Hi FoolzRailer1
Option1:
Create a new Excel template with separate sheets:
Create Relationships:
Projects (1) ←→ (*) Workload_Data ←→ (*) Employees (1)
Employees (1) ←→ (*) Leave_Data
Date_Table (1) ←→ (*) Workload_DataIf you don't want the above then try below:
Step 1: Load Data into Power BI
- Get Data → Excel → Select your workbook
- In Power Query Editor, select your data table
Step 2: Unpivot Month Columns
- Select all month columns (Jan-22, Feb-22, etc.)
- Transform → Unpivot Columns
- Rename columns:
- "Attribute" → "Month_Year"
- "Value" → "Planned_Days"
Step 3: Clean and Transform
// Add Year and Month columns = Table.AddColumn(#"Unpivoted Columns", "Year", each Date.Year(Date.FromText("01-" & [Month_Year]))) = Table.AddColumn(#"Added Year", "Month", each Date.Month(Date.FromText("01-" & [Month_Year]))) = Table.AddColumn(#"Added Month", "Month_Name", each Date.MonthName(Date.FromText("01-" & [Month_Year]))) // Filter out null/empty values = Table.SelectRows(#"Added Month_Name", each [Planned_Days] <> null and [Planned_Days] <> 0) // Create Date column for better time intelligence = Table.AddColumn(#"Filtered Rows", "Date", each Date.FromText("01-" & [Month_Year]))Please let me know if this is what you expect?
Best Regards,
Hi FoolzRailer1,
Thank you for reaching out to the Microsoft Fabric Forum Community, and special thanks to sivarajan21 for prompt and helpful response.
Just following up to see if the Response provided by community member were helpful in addressing the issue.
If one of the response helped resolve your query, please consider marking it as the Accepted Solution. Feel free to reach out if you need any further clarification or assistance.
Best regards,
Prasanna Kumar