- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
cannot find date value
Hello All,
This is my first try of Power BI, trying to figure out many new things, and get stuck with calcuating the datediff field.
The issue is that it won't read my date field automatcially from the table, and I checked the field "ASOFDATE" and "DUEDATE" are both the date type. so I manually entered the two but recived the below warning message. ( I watched some introduction vedio online, in theroy, the field options will pop up when entering the formula, but I don't see any option... )..
Anything critical I am missing here? Any help is apperciated.
Thank you,
Flora
DayDiff = DATEDIFF( 'Details'[ASOFDATE],'Details'[DueDate],day)
"A single value for column 'ASOFDATE' in table 'Details' cannot be determined. This 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."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Anonymous,
Could you please mark the proper answer as solution or share the solution if it's convenient for you? That will be a big help to the others.
Best Regards!
Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Try this
=MAX('Details'[DueDate])-MAX('Details'[ASOFDATE])
Hope this helps.
Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are trying to create a measure, so you need to use an aggregation of MAX or MIN, for example around your date columns ASOFDATE, DueDate.
Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!: Power BI Cookbook Third Edition (Color)
DAX is easy, CALCULATE makes DAX hard...

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
12-14-2023 06:13 AM | |||
08-10-2023 01:10 AM | |||
04-08-2024 10:53 AM | |||
02-03-2022 06:58 AM | |||
02-28-2023 02:45 PM |
User | Count |
---|---|
141 | |
117 | |
80 | |
65 | |
47 |