Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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."
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
Hi,
Try this
=MAX('Details'[DueDate])-MAX('Details'[ASOFDATE])
Hope this helps.
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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 56 | |
| 40 | |
| 36 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 73 | |
| 73 | |
| 38 | |
| 35 | |
| 26 |