We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

How to count the number of work days and the number of work days that have itens.

Answered
MARIO FRANCESCO VALENTINO CORREA CAVACIOCCHI asked on March 16, 2022

I have all the days of the month and I have if the day is a weekday or weekend.
With that, i need to calculate the number of week days in the month and then the number of days that have itens.
Exemple: https://jsfiddle.net/dsy4o2kz/27/
 

Attachments:
cr.JPG

3 answers

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster March 18, 2022

Hello, Mario,
Thank you for writing us and making the jsfiddle example.
If we understand the issue correctly, we want to suggest the following way to solve it.
Firstly, create a report filter for weekDays to see only workdays (or weekends) on the pivot table.
Then, simply use a distinct count of days.Day to calculate workdays.
Here's an example to illustrate our idea: https://jsfiddle.net/flexmonster/br0p83L9/
Hope it helps.
Regards,
Solomiia

Public
MARIO FRANCESCO VALENTINO CORREA CAVACIOCCHI March 18, 2022

I've tried that way but the problem happen's when I expand the hierarchy. I suppose that i will have to create dummy data with zeros for the count work.
Thanks for the asnwer. 
 

Attachments:
cr.JPG

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster March 23, 2022

Hello, Mario!
Thanks for the feedback. We are glad that our answer allowed you to move on with your research.
Regards,
Solomiia

Please login or Register to Submit Answer