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.
Hello
I am trying to find the difference in days between the current date today() and the end of the current year. All the functions I am finding want a table field as an argument. But I am not concerned with my dataset for this purpose.
As an example, today is 02/19/2020. there are 316 days until the end of the year. I want a measure that will show 316 today, 315 tomorrow, etc. Then roll over to 365 on january 1st 2021.
Thank you for your help!
Solved! Go to Solution.
Try:
Measure =
DATEDIFF( TODAY(), DATE(YEAR(TODAY()), 12, 31), DAY)
Thank you, this works perfectly!
Hi @cmccully
Measure =
DATEDIFF( TODAY(), DATE(YEAR(TODAY()), 12, 31), DAY)
Incase you want it for your date column.
Measure =
DATEDIFF( min(Table[Date]), DATE(YEAR(min(Table[Date])), 12, 31), DAY)
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
If I resolve your problem Mark it as a solution and give kudos.
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 |
---|---|
10 | |
9 | |
9 | |
8 | |
8 |
User | Count |
---|---|
14 | |
12 | |
11 | |
11 | |
8 |