Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
I'm trying to get the number of days between two dates. For that, I tried to use the DATEDIFF function but the date fields are not showing up in IntelliSense and if I try to enter it manually it shows an error that is in the figure below:
Please let me know what is wrong with this expression. Thanks in advance.
Solved! Go to Solution.
Hi @Ajaikumar ,
As checked your screenshot, what you are trying to create is a measure. That is the cause of problem. This errror can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result. You can review the following blog for more details.
DAX error messages in Power BI
And the solution is that you can create a calculated column as below to replace this measure...
R value = DATEDIFF ( calendar[Date], TODAY (), DAY )
In addition, you can refer the following blog to get the difference between two dates.
Best Regards
Hi @Ajaikumar ,
As checked your screenshot, what you are trying to create is a measure. That is the cause of problem. This errror can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result. You can review the following blog for more details.
DAX error messages in Power BI
And the solution is that you can create a calculated column as below to replace this measure...
R value = DATEDIFF ( calendar[Date], TODAY (), DAY )
In addition, you can refer the following blog to get the difference between two dates.
Best Regards
Thank you for the solution @Anonymous
Hi @Ajaikumar
perhaps you're trying to create a new Calculated Column but in fact you created a Measure instead
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
6 | |
4 | |
3 | |
3 |
User | Count |
---|---|
13 | |
11 | |
8 | |
8 | |
8 |