Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 ..
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
21 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |