Forum Discussion
Anonymous
4 years agoNot applicable
Operators in Power Query M
Hi, I can use the operators = and <> between two dates. But I get an error when I use <, >, >= or <=. I have both my fields are a Date data type. Expression.Error: We cannot apply operato...
- 4 years ago
Are you trying to apply this comparison across different tables? If you are then, yes, you will need to provide row context for the calculation for the remote table.
If you're making the comparison across two columns in the same table then the row context should be implicit, and there's another issue at play.
Pete
BA_Pete
Super User
4 years agoHi Anonymous ,
Power Query quite clearly thinks that one of your dates is actually a list:
You need to ensure that both columns only contain dates in every row.
Pete
Anonymous
4 years agoNot applicable
Every row only have dates.
I think I found my problem. Even if it's a table containing only one row, I still need to identify that row. Without identifying the row it reads it has a list.
Thanks