The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have 2 tables
the key record in both table is employee ID
I want to create a visual table having Available hours ans Work order actual hours per employee and month, like below
Month | Employee ID | Work order actual hours | Available Hours |
October | 123456 | 100 | 20 |
November | 321654 | 50 | 10 |
Hi @Moha_shanti ,
Thanks for the information you have given.
Please try the add Collum operation on 1st Table using the following DAX after checking the table name and column name:
Work order actual hours = SUMX(FILTER(all('Table_2'),'Table_2'[employee ID]=EARLIER(Table_1[employee ID])),'Table_2'[Work order actual hours])
An attachment for your reference. Hope it helps!
Best regards,
Community Support Team_ Joseph Ji
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
To create a visual table in Power BI that shows both available hours and work order actual hours per employee and month, you'll need to perform a series of steps that involve merging the two tables and then creating a table visualization. Here's a step-by-step guide:
Import Data:
Relationships:
Merge Queries:
Expand the Merged Table:
Create a Table Visualization:
Format the Table (Optional):
Filter (Optional):
Refresh Data:
By following these steps, you should be able to create a visual table in Power BI that displays both available hours and work order actual hours per employee and month based on the two tables you have.
User | Count |
---|---|
11 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
23 | |
14 | |
13 | |
10 | |
8 |