Forum Discussion
rtUsmanKhan
9 years agoRegular Visitor
DATEDIFF - Calculate date difference from different tables
Hi, I have two related tables Products and Logs. I need to calculate difference of dates as
Products.Date_Entered and
Logs.Date_modified.
Unfortunately Power BI DATEDIFF does not allow me to use columns from different tables using New Column.
Please suggest me a way to achieve this without using any aggregate function on 1 column.
This is Error "A single value for column 'Date_Entered' in table 'Products' 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."
Your earliest response will be highly appreciated.
2 Replies
- PavelRSolution Specialist
- rtUsmanKhanRegular Visitor
Thanks it worked for me.