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.
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?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
25 | |
20 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |