Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Dax function

Hello everyone,

i need a dax function that automatically calculates the days and divides them by a sum. example:

- start: 01.01.2020

- End: 31.12.2020

- Amount: 10 000 €

Today: 16.11.2020 days from 01.01.2020 - 16.11.2020 are 320 days


=10,000/320 (number of days to date)*45 (number of days to 31.12.2020) The number of days should be calculated automatically.

Many thanks! Nuri

Frequent Visitor

Unfortunately it did not work:
I have a date column. This column contains my start and end date. I want to calculate the number of days from 01.01.2020 to today with the help of a Dax-function.


I would like the number of days from 01.01.2020 to today and the number of days from today to 31.12.2020


Super User
Super User

@DagdasAlbag , not very clear, See if my attached file can help you .


Or the blog


Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin

Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
Super User
Super User


Hope you need a calculated measure, you need something like:


Amount = 



If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn



Did I answer your question? Mark my post as a solution! and hit thumbs up

Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors