Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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 operator < to types List and Date.
Details:
Operator=<
Left=[List]
Right=2021-05-31
Solved! Go to Solution.
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
Proud to be a Datanaut!
Hi @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
Proud to be a Datanaut!
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
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
Proud to be a Datanaut!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
14 | |
13 | |
12 | |
12 | |
12 |