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 September 15. Request your voucher.
Hello guys,
i have a problem that is driving me nuts and I am coming to you for help.
I have two tables:
I would like to get two new columns in the second table specifying the employee schedule. I specify columns as I need to do further calculations and I need to visualize the date without the employee field displayed. Even though any idea is welcome.
Notice that both tables can have multiple times the same employee and the dates are not comparable!
Example:
Any recommendations? Thank you so much
Solved! Go to Solution.
We can do this in Power Query.
Starting with your 2 tables, go to your Order table and hit merge queries
Select your employee shift table to merge. Then select your keys (which will be Employee and date). Click Employee then hold ctrl and click date. It should put numbers next to your columns to show what order they're matching like this.
Hit okay and expand the shift table
as a dax column can also be solved this way:
as a dax column can also be solved this way:
We can do this in Power Query.
Starting with your 2 tables, go to your Order table and hit merge queries
Select your employee shift table to merge. Then select your keys (which will be Employee and date). Click Employee then hold ctrl and click date. It should put numbers next to your columns to show what order they're matching like this.
Hit okay and expand the shift table
So far I've been able to find this thread but unsuccessfully implemented it as it doesn't filter by two conditions. Plus I would like to have it in columns rather than measures.
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
20 | |
12 | |
10 | |
7 |