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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
michaelpop
Regular Visitor

running total

I need a running total organisation body count for a Human Resources Report.

I have an employee name, date started and end date.

If an employee end date column is blank they are a current employee.

If I attribute a "1" to an employee with a start date and "-1" to an emplyee with a end date i can calculate the current body count.

What I can't figure out is a running total to watch the total body count fluctuate over time.

 

Any help would be appreciated !

 

1 ACCEPTED SOLUTION

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

Refer

https://community.powerbi.com/t5/Desktop/Calculating-a-monthly-employee-count-from-a-start-and-end-d...

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.

My Recent Blog - https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

Hi

 

Still not resolved, please assist. thanks

 

Can you explain how to do a cumulative or running sum of counts of text data between selected dates. For instance, I have multiple years of data by years and months. The data includes a column containing text, say “M”, “L” etc…. I need to draw a chart showing both counts and running counts by months. And use a slicer to select a year, once I select a specific year then I should be able to visualize the counts and running counts of text of the selected year. So running counts should be for a selected time say a year, we may use Min and Max date var for a selected year.

Hi,

I answered a similar question of yours here.  Did that not work?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks Ashish,

 

I managed to resolve by creating a Quick Measure from the variable of counts, for example, below DAX

 

Running count in Year =
CALCULATE(
    COUNTA('data1'[level]),
    FILTER(
        ALLSELECTED('data1'[Year]),
        ISONORAFTER('data1'[Year], MAX('data1'[Year]), DESC)
    )
)

@amitchandak thanks for this. Although I'm still trying to create a cumulative total such as the right hand column in the below example:

 

namestart dateend datestart countend countcount totalcumulative total
bob1/01/2018 1011
john1/01/20181/05/20181-101
bill1/03/2018 1012
fred1/05/2018 1013
sam1/05/20181/05/20181-103
david1/02/2019 1014
tony1/03/2019 1015
jane1/05/2019 1016
   8-26 

 

 

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.