Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
hello,
got time attendance machine and sales and I would like to see which employee was in office during the particular sale.
here is screen how i see it.
Solved! Go to Solution.
Sorry about that
Change the calculated column as under
Hi @gkalandadze
There is overlap of timing between the two employees.
So do you want show the names of both the sales person at the time of sale ??
Cheers
CheenuSing
Exactly
Hi @gkalandadze ,
Here are the steps I followed
1. In the Attendance Table set the IN and OUT as TIME(HH:MM)
2. Sorted the Attendance Table by Employee
3. In the Sales Table set the TIme as TIME(HH:MM)
Added a calculated Column SalesMen In SalesTable as
Salesmen =
VAR CurrentTime =
FORMAT ( Sales[Time], "HH:MM" )
VAR SalesPerson =
CALCULATETABLE (
SUMMARIZE (
UNION (
CALCULATETABLE (
SUMMARIZE ( Attendance, Attendance[Employee] ),
FORMAT ( ( Attendance[IN] ), "HH:MM" ) >= CurrentTime
),
CALCULATETABLE (
SUMMARIZE ( Attendance, Attendance[Employee] ),
CurrentTime <= FORMAT ( ( Attendance[OUT] ), "HH:MM" )
)
),
[Employee]
)
)
RETURN
CONCATENATEX ( SalesPerson, [Employee], "," )
Atttached the Pbix
Cheers
CheenuSing
thanks!
but seem to be a little error. George shouldn't be in sales before 11:20 (time he came) and in your list he appears from the start (((
Sorry about that
Change the calculated column as under
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
142 | |
75 | |
64 | |
52 | |
47 |
User | Count |
---|---|
219 | |
89 | |
73 | |
66 | |
60 |