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,
want to creating a measure if actual login of an emp > 48 hrs then its counts. how many emp for that supervisor as per result table..
Thanks in advance.....
EMP ID | Supervisor ID | Date | Week | Actual Login (Logn-Break) |
1 | 1234 | 26-Jun-22 | 26 | 08:05:00 |
1 | 1234 | 28-Jun-22 | 26 | 08:01:00 |
1 | 1234 | 29-Jun-22 | 26 | 08:08:00 |
1 | 1234 | 30-Jun-22 | 26 | 08:15:00 |
1 | 1234 | 01-Jul-22 | 26 | 08:44:00 |
1 | 1234 | 02-Jul-22 | 26 | 08:05:00 |
2 | 1234 | 26-Jun-22 | 26 | 08:21:00 |
2 | 1234 | 27-Jun-22 | 26 | 08:20:00 |
2 | 1234 | 28-Jun-22 | 26 | 08:25:00 |
2 | 1234 | 30-Jun-22 | 26 | 08:06:00 |
2 | 1234 | 01-Jul-22 | 26 | 08:25:00 |
2 | 1234 | 02-Jul-22 | 26 | 08:21:00 |
3 | 1234 | 27-Jun-22 | 26 | 08:17:00 |
3 | 1234 | 28-Jun-22 | 26 | 08:10:00 |
3 | 1234 | 29-Jun-22 | 26 | 08:12:00 |
3 | 1234 | 30-Jun-22 | 26 | 08:15:00 |
3 | 1234 | 01-Jul-22 | 26 | 08:20:00 |
Result table
If time greater then 48 hrs then its counts | ||
EMP ID | Supervisor ID | WK 26 |
1 | 1234 | 1 |
2 | 1234 | 1 |
3 | 1234 | 0 |
Grand Total | 2 |
Creating a measure to calculate as per logic..
Solved! Go to Solution.
I see, in this case you can use the condition as a filter. E.g.
The FILTER part will return table like this:
Then countrows couts the correct amount of rows.
Proud to be a Super User!
Hi,
Try using this kind of measure:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
Hi,
if login hours greater then >48 hrs then it's counts how many empid exceeds after 48 hrs.
hope this logic will clear to you..
Hi,
Thanks for this solutions !!
For >48 column total it is showing 1 instead of 2..
how can i fix this..
I see, in this case you can use the condition as a filter. E.g.
The FILTER part will return table like this:
Then countrows couts the correct amount of rows.
Proud to be a Super User!
Thank you so much ..
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 |
---|---|
18 | |
15 | |
12 | |
10 | |
8 |
User | Count |
---|---|
24 | |
17 | |
11 | |
11 | |
10 |