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 working days of a month only until today

Dear Power BI Profs,
I am relatively new to Power BI and am currently facing a tough problem that I cannot solve on my own.

My boss wants me to calculate the expected number of billed orders for each month.

Example:
Today = 06/27/2022
Billed orders: 2000
Total working days June: 21
Working days up to and including today (June): 19 (this is my problem)
Calculated: 2000/19*21

I already have in Power BI:
- Data table with the orders
- Calendar table with date, weekday number, holidays
- Additional table only with the date of the working days (without weekends, without holidays)

Measure for working days in June I have already made:

 Countx(Filter(Workingdays;Workingdays[Month]="June");Workingdays[Day]))


I am now only missing a formula with which I calculate the working days for the respective month until today.

 

Very dear greetings from Germany

Bianca

 

National Holidays.jpgOnly Working Days.jpgCalender Table.jpg

9 REPLIES 9
ribisht17
Super User
Super User

@Anonymous 

 

Please check the working file here Parameter - Google Drive

1. Set the missing relationship

ribisht17_0-1656615640777.png

 

2. Make use of Parameters to pick the day, for example, you need to pick 27.

ribisht17_0-1656615008140.png

 

If we directly use Tag there to filter 27, it will give us the count on that day only

Regards,
Ritesh
Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !!Power BI for Tableau Users 
Anonymous
Not applicable

Dear Ribisht17,

thank you very much.

but how can I do now the Projection / Forecast to 21 working Days in June.

And why powerbi calculate numbers on 31. June?

June only have 30 Days 😄

 

Screenshot.jpg

ribisht17
Super User
Super User

or paste-like this , I just did copy paste

 

Row IDOrder PriorityDiscountUnit PriceShipping CostCustomer IDShip ModeCustomer Segment
18606Not Specified0.012.880.52Regular AirCorporate
20847High0.012.840.933Express AirCorporate
23086Not Specified0.036.686.153Express AirCorporate
23087Not Specified0.015.683.63Regular AirCorporate
23088Not Specified0205.992.53Express AirCorporate
23597Medium0.0955.4814.33Express AirCorporate
25549Low0.08120.9726.33Delivery TruckCorporate
20228Not Specified0.02500.98265Delivery TruckHome Office
19483Low0.086.486.815Regular AirHome Office
24782High0.0190.240.996Regular AirHome Office
24563Critical0.076.486.66Regular AirHome Office
ribisht17
Super User
Super User

Not feasible to do this without having access to data, I can just give an idea without data

Anonymous
Not applicable

How can I give you access to data?

You can drop your sample PBIX file to dropbox 

Anonymous
Not applicable

here it is https://www.dropbox.com/s/c3m3ofrqdolnqhg/Auftr%C3%A4ge%20in%20Abrechnung.pbix?dl=0

 

I am so really thankful for every help.

It isn't my first report in PowerBI but the hardest one.

ribisht17
Super User
Super User

@Anonymous 

 

You need to have this filter 

Month-Day Less than Today = DAY(TODAY()) >= day( 'Calendar Table'[Date])
ribisht17_0-1656349493763.png

 

 
Regards,
Ritesh
Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !!Power BI for Tableau Users 
Anonymous
Not applicable

Unfortunately it doesn't work or I don't know how to do it properly.

The filter i have already.

 

Screenshot.jpg

 

This I want to visualize in numbers:

to visualize.jpg

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.