The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.