Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I have stored a certain PastThreshold date from Excel named range like this. As you can see the final value is already formatted as date:
Next, I want to filter a certain Date column from a table to be AFTER PastThreshold
I get the "We cannot apply operator < to types DateTime and Date" error.
However both of the values are already formatted as date.
Can somebody help me?
Solved! Go to Solution.
Hi @freelensia
Are you sure PastThreshold is stored as date and not DateTime? In the first pic you show, the icon seems to have a clock, which would indicate DateTime. The result shown at the top also shows the time (2016/01/01 12:00:00)
Hi @freelensia
Are you sure PastThreshold is stored as date and not DateTime? In the first pic you show, the icon seems to have a clock, which would indicate DateTime. The result shown at the top also shows the time (2016/01/01 12:00:00)
Thanks that was indeed the problem. I converted the variable using DateTime.Date(xxx) and that fixed the problem.