Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi ,
I need Dax formula to calculate the Days in the year which is completed. Example : 2020 has 365 and as of today we have completed 43 days in year. I need a formula in DAX to calculate =43/365 =12 % of the days in the current year is completed
My below formula gives me days completed in a given month
Ex: Below one gives me the Rate of Month completion w r t Days
Solved! Go to Solution.
@smshetty Please try below measure to get the percentage
Measure =
VAR _currentdate = SELECTEDVALUE(Test[Date])
VAR _basedate = DATE(YEAR(_currentdate),1,1)
VAR _days = DATEDIFF(_basedate,_currentdate,DAY)
RETURN DIVIDE(_days,365,0)
@smshetty Please try below measure to get the percentage
Measure =
VAR _currentdate = SELECTEDVALUE(Test[Date])
VAR _basedate = DATE(YEAR(_currentdate),1,1)
VAR _days = DATEDIFF(_basedate,_currentdate,DAY)
RETURN DIVIDE(_days,365,0)
Can you help me how to get this for my measure?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
11 |