Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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 ..
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 19 | |
| 11 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 20 | |
| 12 | |
| 10 |