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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
rolf1994
Helper II
Helper II

percentage of completion of current month

Hello,

 

I need to create custom forecasts. To create custom forecasts I need to have a percentage of completion of the month and year so far. 

 

so for example, I need a measure that can do the following for me: Current date is 21st of february, I want a measure that calculates the percentage of completion of the month so far so i want it to calculate (21/28). 

 

I tried using the end and startofmonth function but that did not help because the functions need to be specified by a column and cannot be specified by 'Today()'

 

Does anyone know which measure i should use?

 

4 REPLIES 4
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @rolf1994,

 

In this scenario, I would suggest you to create an individual Calendar table(using CALENDAR DAX function) first if you don't have one yet.

 

Date1.PNG

 

Then you should be able to use the formula below to create a measure to calculate percentage of completion of current month.

percentage of completion of the month = 
CALCULATE (
    DIVIDE ( DAY ( TODAY () ), DAY ( LASTDATE ( 'Date'[Date] ) ), 0 ),
    FILTER (
        ALL ( 'Date' ),
        YEAR ( 'Date'[Date] ) = YEAR ( TODAY () )
            && MONTH ( 'Date'[Date] ) = MONTH ( TODAY () )
    )
)

result01.PNG

 

Regards

Anonymous
Not applicable

I'm looking to do something similar, but I need the precentage of year complete. 

 

I can build a CALENDAR Table, but could somebody give me the Column Code that I would need to get the precentage. 

 

Thanks.

Hi @v-ljerr-msft,

 

I am using DirectQuery and cannot add a table. Is there another way to do this?

Hi @rolf1994,

 

What's your data source? Is it possible for you to add the Date table from the data source side(For example, if your data source is SQL, then you should be able to add the table within SQL).Smiley Happy

 

Regards

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors