cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MattScruggs Frequent Visitor
Frequent Visitor

Headcount By date and person (Taking ST/OT into account)

I need help with setting up a column to return 1 as a head count per person by date. The one issue is, with the data pulled, if someone got both straigth time and overtime on the same day, they would appear as 2 for that day. See attached. Any help would be greatly appriciated. 

Example1.png

3 REPLIES 3
MattScruggs Frequent Visitor
Frequent Visitor

Re: Headcount By date and person (Taking ST/OT into account)

I should have mentioned, I set up the example in Excel, But I am trying to get this to work in PowerBI using DAX and calculated columns

Community Support Team
Community Support Team

Re: Headcount By date and person (Taking ST/OT into account)

Hi @MattScruggs 


" if someone got both straigth time and overtime on the same day, they would appear as 2 for that day."

 

But the result in your excel is 1,0 , not 2. isn't correct? 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
MattScruggs Frequent Visitor
Frequent Visitor

Re: Headcount By date and person (Taking ST/OT into account)

Hello, The result in the excel is just text entered to show a desired result. I cannot figure out how to get it to calculate that desired result in DAX in Power BI. 

 

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 270 members 2,825 guests
Please welcome our newest community members: