Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

count days<7 hours

I would like to  create a measure that would count the number of days by person that has less than 7 hours. I'm also looking at a specific time frame. 11/1/2020-10/31/21. 

 

Thank you

 

DateNameHours
2020-11-01Jan7.20
2020-11-01Jane0.10
2020-11-01Luke1.80
2020-11-01Mike4.30
2020-11-01Steve6.10
2020-11-01Tom3.40
2020-11-02Jan8.20
2020-11-02Jane4.70
2020-11-02Luke10.00
2020-11-02Tom30.00
2020-11-02Blake2.90
1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Picture1.png

 

Days count less than 7 hours : =
IF (
HASONEVALUE ( Names[Name] ),
COUNTROWS ( FILTER ( RELATEDTABLE ( Data ), Data[Hours] < 7 ) )
)

 

Link to the sample pbix file 

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

Picture1.png

 

Days count less than 7 hours : =
IF (
HASONEVALUE ( Names[Name] ),
COUNTROWS ( FILTER ( RELATEDTABLE ( Data ), Data[Hours] < 7 ) )
)

 

Link to the sample pbix file 

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.