Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi..
Good afternoon,
I'm new in power bi.
i hope someone can help me out on this one.
i have 2 table. the first one is equipment record table
TimeStart | TimeEnd | Eqmt |
18/03/2020 7:30:00 | 18/03/2020 15:00:00 | S1 |
and second is employee login at equipment
TimeStamp_Login | Employee | Eqmt |
18/03/2020 7:30:00 | A | S1 |
18/03/2020 9:30:00 | A | S1 |
18/03/2020 9:40:00 | B | S1 |
18/03/2020 13:00:00 | A | S1 |
18/03/2020 14:00:00 | C | S1 |
i want to combine those table into one table as shown below
TimeStart | TimeEnd | Eqmt | Employee |
18/03/2020 7:30:00 | 18/03/2020 9:40:00 | S1 | A |
18/03/2020 9:40:00 | 18/03/2020 13:00:00 | S1 | B |
18/03/2020 13:00:00 | 18/03/2020 14:00:00 | S1 | A |
18/03/2020 14:00:00 | 18/03/2020 15:00:00 | S1 | C |
It would be great if anyone can suggest how I can achive this.
thank you
Solved! Go to Solution.
Hi @Mariusz
Wow..this is amazing!
this is what i want
by the way
i see a step of "grouped rows" in your file, how to do that actually?
is there a button in power query editor to do that? or we must write that formula?
Hi @dading
Yes, please see the below
The only thing that I have added is Group Kind as per below, this is to make sure it groups only values that are the same and next to each other and not alltogether
Try like
summarize(calculatetable(table2,table2[TimeStamp_Login]>=min(Table1[start_time]) && table2[TimeStamp_Login]>=max(Table1[end_time])
&& table2[Eqmt]>=min(Table1[Eqmt])),table2[Employee],table2[Eqmt],Table1[start_time],Table1[end_time])
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
82 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |