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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.